Line Follow Robot Tutorial
MOBOT 2007 Robot Competition
Without further ado, watch the official competition video! You can find me at 4:17 (count up timer), or 1:01 (count down timer). The loser robot of mine decided to turn around and go back through the start gate . . . lol . . .
So MOBOT is really really hard . . . but me being a bit crazy and only starting a few days before, I decided to accomplish the line following with one photoresistor. Yes, just one! I also decided to use the exact same edge-detecting algorithm as that used on my Stampy robot. I could do the course with a single non-scanning photoresistor, but decided the scanning servo will allow it to work a bit better.
Now for the video on building the robot and various demonstrations on what it can do:
Design in CAD
Feel free to drag around the CAD file:
You may download the MOBOT 2007 DWF here.
And more images for your viewing pleasure:
In the back you will notice my AVR programmer mounted by use of velcro, wedged right between two long spacers. I left it out of CAD from laziness and last minute planning . . . Also, obviously I didnt CAD in the wiring, but when you CAD, always make sure the wiring fits. Its often a mistake I make . . .
Looking at the side view in CAD was very important. This is how I managed to get the ground height to be perfect.
Microcontroller and Source Code
I have zipped up my source code for anyone to use and modify here. Remember, please give credit and link back if you use this code! To install and use the code, follow the directions as described in the programming section of The $50 Robot. Just rename the folder and filename to 'Mobot_2007_v1'.
Line Follower Source Code (April 26th, 2007)
On the bottom of the robot you can see the scanning servo and the color sensor used to detect the line. Wiring was passed through holes I drilled through the base. You can also see the 6V NiMH battery velcroed to the bottom of the robot base. Its ideal to keep the heaviest parts as low to the ground as possible.
In all honesty I'd say this robot wasn't very effective. The scanner was just too slow and inaccurate, and the photoresistor had too slow of a response rate. If I were to do the scanning idea again I would use an infrared emitter/detector sensor instead.
Sun and Rain Shielding
For the sides of the umbrella, around the large black plastic sheet mounted on the robot, I duct taped on several layers of garbage bag.
As a stiffener, and to make sure the bags were opaque, I put an additional layer of duct tape on the inside.
Time Spent on This Robot
Thats an estimated 36 hours.
Has this site helped you with your robot? Give us credit -
link back, and help others in the forums!
Society of Robots copyright 2005-2013