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)

Comments:

hinkmond - is it possible to write an article to explain how to set up a development env. on PC and RPI? thanks in advance. tony

Posted by tony on January 27, 2013 at 09:44 PM PST #

Good suggestion, Tony! Will do. I'll spend several blog posts to talk about the development environment of a Windows PC to the RPi target device using Java Embedded as the programming language. I'm also thinking of showing how to do that with Mac and/or Linux also. But, what is the preference out there?

Host system for RPi development:
1. Windows
2. Mac
3. Linux

Does that sound good to everyone?

Posted by Hinkmond Wong on January 27, 2013 at 11:00 PM PST #

Linux!

Posted by JohnF on January 28, 2013 at 05:52 AM PST #

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