Getting Started Guide
CLASS 3
42
Coding Line Follower
Coding a Line Follower
Code line followers. Line followers will use infrared sensors to find black lines.
The infrared sensor can tell if the car is on the line. The program will use the following logic to move the car
along the line.
1. If the infrared sensor is on the black line,
the car will activate the right motor and break
it to the left.
2. If the infrared sensor is not on the black
line, the car will drive the left motor and
break it to the right.
Right
motor
Left
motor