Line follower

i have look through the line follower programs. i have modify it instead of using 5sensors to 3sensors, the robot able to move follow the line but the problem is i want it to move for a distance like 10cm and stop, i dont know how to program it.
do you all have any ideas?


The 3pi doesn’t have any way of knowing far it has traveled, so I suggest use timing instead. You can figure out how long it takes your 3pi to drive for approximately 10 cm and program it to stop after that time period has elapsed.

- Ben