Skip to main content

Posts

Showing posts with the label Line Follower

Line Follower using EV3

Ahhh the classic challenge of following a black line!  Of course this can be achieve quite simply by using the zig zag method but if you want a high performance line following robot you're going to need a little more math! Line Following with a PID Controller Image by:  Miguel Angel Blanch Lardin Luckily Miguel the guy behind The Technic Gear blog has recently published a fantastic tutorial explaining in details how to create a PID controller line following robot using LEGO MINDSTORMS EV3.   I invite you to follow his tutorial found here http://thetechnicgear.com/2014/03/howto-create-line-following-robot-using-mindstorms/ With the help of his pseudo code you can write your own line following program or try his program thanks to the supplied EV3 source code.  Remember to give credit to his work if you use part or all of his code in a program for one of your competition or school work. Also do leave a comment here or on his own website about y...

Interfacing the LEGO MINDSTORMS NXT and Android Phone: Camera Line Follower

Now that we're on break, I had some time to do another demo in the series; this video shows a robot using the Android phone's camera to locate the line and follow it. The connection is based on Bluetooth, and all that is sent is the line's distance from "the center" of the received image. Around near 0:57, you can see the yellow dash that marks the position of the line. This is subtracted from the center of the screen (width/2) and sent to the NXT, which adjusts the motor speeds proportionally using the steering function. The bright light that creates a glare in the screen is actually the flash on the camera, which I turned on in order to eliminate outside lighting conditions. The phone is almost as good, if not better, as a light sensor! Enjoy, and happy building! Richard

Line Following Tutorial

Here's a short and informative tutorial to creating a line following robot. This is a lot simpler than most PID control Line Followers, and still a lot smoother than simple Switch (left-right) Line Followers. Thanks for sharing Stefan!

Follow the Line, workshop

Last Tuesday I gave a workshop at a group of 15 7-9 year olds at the school Wittering.nl . The kids already participated in the FLL and won places for the country final on February the 6th. The asked if I could help them in doing more with sensors, in their FLL robot. So we did a workshop in building and programing the 5 minute robot from NXTprograms.com . we also added an Ultrasonic sensor to detect the end of the line (actually the wall of the playing field) in the Smartmove mission. It was great fun and all groups build and programmed a good working robot, with the new color sensor, some even adapted the smooth line follow program to an old style lightsensor. Martyn

NXT 1.0 Line Following and Light Sensor Calibration

I have updated the original NXT 1.0 Line Follower project at nxtprograms.com to improve the original programs a bit and include a new "proportional" line following program. I also included some separate light sensor calibration utility programs and some discussion of light sensor calibration, as calibration can be a somewhat confusing concept in practice (although it can simplify your programs and/or make your robot more flexible once you understand how to use it). Comparing this to my new NXT 2.0 Line Follower , with essentially the same program, I notice that it doesn't perform as well. I think this is for two reasons: NXT 2.0 programs execute faster than 1.x, and my older 1.x robot design is inferior. In particular, I think the light sensor is too far ahead of the wheels. Making the wheel track (left-to-right) wider would probably also help. Give a try at making it better!

Line Following with NXT 2.0

I have received a lot of questions and requests about line following over the last several months. Some requests are coming from the FLL direction and such, but also users of the NXT 2.0 retail kit are wondering how to do line following using the color sensor, which is somewhat harder and/or less obvious than with the (NXT 1) light sensor. So I have posted this NXT 2.0 Line Follower project to show two ways to do this (there are many other approaches), a simple "Two State" line follower program, and a more complex "Proportional" line follower, which is smoother and faster. In addition, the Proportional version includes an automatic calibration sequence, where the robot automatically scans the line and surface to determine the minimum and maximum expected brighness values on its own. These programs will only work on NXT 2.0. I will follow up with some info and programs for NXT 1.0 users later. Although under good conditions you can make a simple line follower using ...