www.colmac.ie
40
Readings on black line:
A0 = 180
A2 = 184
NOTE:
Depending on
number of batteries used
and ambient lighting
conditions your readings
may be significantly
different.
The data gathered in this example shows:
LDRs read a max of approx. 231 on the white surface
LDRs read a max of approx. 184 on the black line
For the purposes of this line follower we can summarise by saying that once the LDR readings go
above 190 then they have definitely moved away from the black line and into the white area.
This allows a little tolerance for ambient lighting, battery power etc.
We can now use this information to create a simple program to stop the robot from driving over
the black line.