Hi Michael,
On Mon, May 12, 2008 at 7:14 AM, Michael Caughey <
michael@...> wrote:
> Ok I've taken about 6m onths off from this project, but I'm back at it
> again. When I left off I was stuck at how to get my application running on
> a Verdex under JamVM to communicate ot a Servo. I have a robostix which I
> plan to use to communicate to a number of servos. When I last emailled this
> group about this problem someone suggested I use i2c-io. how ever this
> looks to be a command line application, which means that the communication
> from a Java aplication would be slow. So controlling servos at a high rate
> would be cumbersome The servos will be controlling a UAV Throtle, Airelons
> left and right, rudder, elevator, camera pan and tilt. The pan an tilt
> might only see a few instructions a second but the others would see between
> 1 and 50 a second. At the very least each would be seeing a couple per
> second.
>
> 1) So my first question has anyone come up with a better solution in the
> past 6 months?
You could also use serial.
> Next if the anwser is no then how about this:
>
> 2) I have not yet flashed the robostix with the i2c-io.hex. I'm assumming
> this application listens to the i2c interface for a set of commands and a
> seperate i2c-io application runs on the verdex, which when executed passes
> some message over i2c interface to the robostix that then executes the
> command on the robostix. Ff this is the case then could I use java to
> communicate over th i2c interface directly.
You should be able to talk over i2c using java. I'm not a java person,
so I have no idea if java supports this directly or if it requires
writing some custom code to allow this to happen.
> 3) If so how easy is that?
Not sure.
> 4) Are there any examples of how to do this?
>
> 5) Is the command set for the i2c-io that runs on the robostix itself
> defined anywhere?
The robostix/Shared/i2c-io.h file describes the commands and data
which are passed over the i2c bus. Personally, I just created i2c-io
as an example of how you might use i2c and it was never really
intended to be used as a final application. I was expecting people
would create their own commands which they would send over i2c.
--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users