User manual
Controlling a Servo with IR
Setting up the Example
In this example we will control the servo using an IR remote. We can adjust the speed that the servo
moves and we can select individual preset angles for positioning the servo.
Here is an illustration showing how to wire up the devices. As usual we have an IR receiver
connected to +5v, ground, and pin 11. We also have a servo with three wires. The red wire is +5v.
The black or dark brown wire is ground and the remaining wire usually yellow is the signal wire
which we have connected to pin 9 although it could be any digital output pin.
© Adafruit Industries https://learn.adafruit.com/using-an-infrared-library Page 14 of 23