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.
TIMER0is used for motor PWM
TIMER2is used for millis/micros (
TOIE2) and for driving the ultrasonic sensor (