www.colmac.ie
43
9. Using the LDRs to follow a line
Before beginning work on programming the line follower to follow a line you should firstly set up a
line course/track for it to follow. The program that follows is based on the
COLMAC GP
course as
used in competition. The GP course consists of a black line track on a white background as shown
below.
This track is available to purchase from
and measures approx. 2400mm x 1200mm.
You can create your own track with a roll of standard 20mm wide black
insulating tape and using it to create a track on a lighter coloured floor.
Don’t make the track too difficult initially – keep corner radius large.
In Section 10 we will look at how to deal with difficult tracks.
NOTE:
The following program is designed to instruct the line follower follow the black line and
correct itself when it moves on to the white area. It is also possible to program it to stay in the
white each side of the black line and correct itself if it moves on to the black line.