Description
This example details controlling a servo using feedback from the Cerebellum buttons. A servo is connected to port D2, and the buttons drive the servo clockwise and counterclockwise. The servo power bus is jumper-configured to use the main input battery voltage. Check out the
power bus section for more information on configuring the servo power bus.
Materials
To try this at home, you will need:
- A Cerebellum
- A power source capable of providing at least 200 mA of current at between six and eight volts. The provided DC adapter will not be sufficient to power a servo.
- One standard servo
Code
You will need the following to compile this program:
References
Check out the following pages in the manual for more information: