Connect robot servo to RPi and use Java Embedded to program it (Part 2)

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).





Then you need to connect the black, blue, and yellow jumper wires to the GPIO pins on your RPi. Refer to the GPIO pinout photo here to see which pins to use.

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:
Connect robot servo to RPi and use Java Embedded to program it (Part 1)
Connect robot servo to RPi and use Java Embedded to program it (Part 2)
Connect robot servo to RPi and use Java Embedded to program it (Part 3)
Connect robot servo to RPi and use Java Embedded to program it (Part 4)
Connect robot servo to RPi and use Java Embedded to program it (Part 5)

Comments:

Post a Comment:
Comments are closed for this entry.
About

Hinkmond Wong's blog on making Machine to Machine (M2M) and the Incredible Internet of Things (IoT) smarter with Java Embedded Technologies

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
2
3
4
5
6
7
8
9
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today