Qu-Bot, A Quickly Programmable Robot User’s Manual
Page
50
of
52
8.6. Line Follower using three sensors
This code uses 3 bottom sensors to make Qu-Bot follow a dark color line on light
color surface.
•
When the bottom center sensor is on the dark line the value is 0. This means the
robot is on the line. It will move forward in this condition.
•
If the bottom center sensor goes off, either left or right sensor will encounter the
line. If left sensor senses the line, left motor stops and right motor runs at full
speed so robot takes a left turn and comes back on line.
•
If Right sensor encounters line right motor stops and left goes on full speed so
robot takes right turn and comes back on line.