Friday Jan 25, 2013

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

So, you've got your Arduino Compatible LS-0006 Servo. Now, we want to prepare it to connect to the Raspberry Pi GPIO pins to drive it to move with a Java Embedded app.

To prepare the servo, we want to add one of the plastic arms that comes in the package. Find one of the arms that you'll use to glue paper to. We'll put a graphic on the paper so that it can be easily seen for this demo. Just take one of the screws included with the LS-0006 and attached one of the plastic arms of your choice to the main axle of the servo (see photo).

When you have that ready, we'll next connect the servo to some of the GPIO pins of the RPi. The GPIO will be driven by a Java app to pulse current to the different leads to the servo. This will drive the motor either clockwise or counter-clockwise by 10 degree increments for a 90 degree range of motion. Other servo models have more motion, but for this demo we'll just keep it simple.

In the next Web post we'll map out which pins to connect to which wires...

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)

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
« January 2013 »
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
8
10
12
13
14
15
17
18
19
20
21
22
23
24
26
27
29
31
  
       
Today