Connect robot servo to RPi and use Java Embedded to program it (Part 1)
By hinkmond on Jan 25, 2013
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: