Line Follower

Date: June, 2009
Location: Robosapiens India.
Team Size: 2
Details:
This robot is used to follow a black line by using two IR sensors placed a little in the front of the robot. The robot uses an ATmega16 micro-controller. The micro-controller is programmed using Embedded ‘C’ in AVR Studio and the code is burned onto the ATmega using Burn-O-Mat and a USB Programmer.

The robot follows a black line placed on a white/lighter colored floor. When it detects a black color on the left sensor, it rotates the right DC-motor forward and its attached wheel, so that the center line between the two sensors always remains on the black line. If the right sensor detects a black color, the left DC-motor is made to rotate forward. The robot keeps moving forward, by turning its motors, till the time both the sensors are on white surface. So no matter which way the black line turns, the robot’s sensors quickly detect the line and rotate the wheels accordingly till both the sensors are on white surface. The width of the black line is taken such that it is just less than the distance between the IR-sensors.

Line Follower:

Embedded ‘C’ Code can be found here.