Pololu Robotics & Electronics
My account Comments or questions? About Pololu Contact Ordering information Distributors

Zumo 32U4 line follower start and stop on timer


Attempting to make my line follower run for a minute, stop for a minute, and repeat. Any ideas on how to get that accomplished?



You could use a millis() timer in the same loop that includes your line following code, then use delay() to stop for a minute. The Arduino website has a few good tutorials on how to use the millis() timer, like this one, which has an example sketch, or this one, which explains why millis() works in cases like yours, but uses pseudocode instead of sharing example sketches.