This robot was built as a line following robot. The motors, gears and wheels of the robot is from the scarab beetle robot I built with my 7 year old.
|Image from The Automata Blog on the scarab beetle|
|The H-bridge on a protoboard running a 3V motor.|
The H-bridge is controlled from an homemade Arduino board. The Arduino controlls the direction of the engines and collects sensor inputs from a set of photo diods and and IR-LED. The IR-led is turned on and off and the photo-diode captures the difference in amount of reflected light. That way the Arduino board can figure out the reflectivity of the surface under the robot.
I put two sets of reflectivity sensors in the front of the robot on a breadboard so I can add and remove stuff. The robot starts by calibrating the sensors so it turns left and turns right and back to center in order for both sensors to capture the maximum and minimum reflective of the dark line versus the floor.
The robot could follow a line on the floor in a roughly circular pattern, it had to be driven quite slowly in order to not miss the line and run away. The code was very simple, if a sensor encounters the black line, turn in the opposite direction a bit.
|The robot in all its glory, lots of cable-mess|
This was built around a year ago, now I really want work on my Robot mapping project or I will when I'm finished with redecorating the workshop.