Getting Started Guide
CLASS 3
44
Coding a Line Follower
The program will check whether the infrared sensor is on the line or not and move accordingly. Check the flowchart
below and think of the program as having repetition.
Is the IR sensor
on line?
Is the infrared
sensor outside the
line?
Program
start
Program
end
Go right
Go left
Yes
Yes
Coding Line Follower