Connect robot servo to RPi and use Java Embedded to program it (Part 2)
By Hinkmond-Oracle on Feb 06, 2013
Now that you have the arm you want connected to the servo, you need to connect the servo to the GPIO pins on the Raspberry Pi.
Here you see 3 jumper wires connected to the servo. Connect a jumper wire to the black (ground), red (power), and yellow (signal) connector jacks on servo. I used a black jumper wire to the black connector, blue jumper wire to the red connector, and yellow jumper wire to the yellow connector (see photo).
For our project, we will connect the black jumper wire to ground Pin #6 GND, blue jumper wire to power Pin #2 +5V, and yellow jumper wire to Pin #18, GPIO24.
That's it. Now we're ready to write the Java Embedded application to drive the servo to make it move.
See the full series of blogs posts for this demo: