8. Controlling a servo
- 8.a. Controlling a servo with an Arduino Uno
- 8.b. Controlling a servo with an Arduino Leonardo or A-Star 32U4 Prime
This section explains how to control a hobby RC servo from an Arduino Uno, Arduino Leonardo, or A-Star 32U4 Prime that is connected to the Zumo Shield. The Arduino IDE includes a Servo library that generates the pulses needed to control an RC servo. However, this servo library conflicts with the ZumoMotors library in that both rely on Timer 1. Instead, you will need to do something special to get servo control working.