Objectives:
Line following is a classic controls problem in robotics
A line is detected using a light sensor
Using 1 sensor, an edge can be detected
Using 2 sensors, a line can be detected
To not overshoot the line, the motor speed and turning rate needs to be limited
In place of light sensors, the compass sensor can be used to follow a heading
Below: Linefollower2