Hardware Reference
In-Depth Information
Figure 3-18. Most servos have 180 degrees of rotation. When using the Ar-
duino servo library, 0 degrees positions the axle in the fully counter-
clockwise position. 180 degrees positions the axle in the fully clockwise po-
sition. 90 degrees sets the axle in the middle.
To start experimenting with servos and try the servo library, first connect a
servo to your Galileo.
For this exercise, you'll need:
• Analog hobby servo (There are many types, but any of the following
should work: Makershed.com part number MKMSERVO, Adafruit.com
part number 169, Sparkfun.com part number 09065)
• Jumper wires (Makershed.com part number MKSEEED3, Adafruit.com
part number 758, Sparkfun.com part number 08431)
Wiring up and testing the servo won't be difficult:
1. Using a jumper wire, connect the black wire from the servo to ground on
the Galileo. You can connect the jumper wire directly from the Galileo to
the servo wires, or you can use a breadboard. You'll need to insert male
header pins into the servo plug so that they can be inserted into a bread-
board.
2. Connect the red wire from the servo to the VIN pin on the Galileo. This
pin is connected to the positive voltage of your power source.
Search WWH ::




Custom Search