
www.colmac.ie
42
NOTE:
The speed of rotation of the motor can be slowed by
not pushing up the slider control fully
up or down
. Beware of having motors rotate at different speeds as this will cause the robot to veer
off line.
Tick the ‘
and’
box to open the
second expression.
This instructs the program to
compare both readings from A0
and A1 to see if they are more
than 190.
If they are, then the robot is
still on the white surface and
continues forward.
If they are less than 190 the
robot has encountered the
black line and stops.
the program in operation.