Configure an mbot to follow an object at a fixed distance. This project makes use of the motors, the ultrasonic sensor, and the on-board button.
The Doxygen documentation for this project is available online at http://oddbit.com/avr-mbot-backoff.
TIMER0
is used for motor PWMTIMER2
is used for millis/micros (TOIE2
) and for driving the ultrasonic sensor (OCIE2A
).