Recent activity
Subscribe to this feed
lucas asked a question in ThingM on October 16, 2009 22:59:
funnel io blinkm/maxm integration ?anyone succeeded in making funnelio working w/ either blinkm or maxm ?
trying to plug stuff on funnel io analog 2,3,4,5 port doesn't seem to behave like arduino diecemila/duemilanove board ... any hint ?
lucas replied on August 18, 2009 09:11 to the question "How to get BlinkM color values with RXTX Java lib ?" in ThingM:
hi,
sorry it was really a crap reply of my very own I'm afraid ;-)
The architecture is :
Host Machine : USB (rxtx java) <-> Arduino + BlinkMCommunicator w/ BlinkMs plugged.
This is really like BlinkMSequencer example for Arduino except I use a Java framework of my own emulating BlinkM/MaxM commands frames posting to the USB Arduino Serial port (19200, 8-N-1)
In my case I'm trying to get RGB values thx to the BlinkMCommunicator lib deployed on Arduino Board from a particular BlinkM LED of address '0x09' back to the host.
To do so, I first post the get RGB color as usual, in a same form as the BlinkMSequencer, then I was supposing it could be ok to post the modified frame back to the Serial from the Arduino board and decrypt it back w/ RGB values.
For the moment, I just don't succeeded in getting the values from the BlinkMCommunicators APIs or had a 2 ways RXTX comm issue.
I gave up this some days ago and have to dive into that again.
So, my first question is :
Is there some java Rxtx code sample somewhere than can achieve the get RGB color w/ architecture I mentioned (eg: no Processing nor Arduino IDEs, just plain old java).
Second question :
I saw an interesting project called firmata (firmata.org). Maybe, it could be cool to directly deal w/ the Arduino hardware description from the host and some blended access to I2C bus thi sway. Okay, I just didn't dig really into it yet but in case if you know something about it, I take it.
best,
- Lucas
lucas replied on August 18, 2009 07:14 to the question "How to get BlinkM color values with RXTX Java lib ?" in ThingM:
Hi Tod,
I just post commands to Arduino Board in the same vein as BlinkMCommunicator from an OSGi/USB application.
Coming from that, I thought it would be possible to send a getColor cmd and then get the modified byte refs back trough Serial comm using RXTX.
In the other hand, I understand going directly to an I2C solution would be more elegant in this case.
As well, ever heard about firmata ? Sounds like it could be possible to trick some nice host to Arduino/ThingM equipements communications with that.
Pb : I just code in plain Java/Eclipse, no Processing/Arduino stuff ...
Any idea is welcome.
BTW thanks for the good ThingM stuff
regards,
lucas asked a question in ThingM on July 22, 2009 08:07:
How to get BlinkM color values with RXTX Java lib ?Did someone succeeded in reading RGB color value of a blinkm thanks to RXTX java lib ?
I'm stucked ... I post a get color frame to the serial ['0x01']['0x02']['4']['0x00']['g']['0x00']['0x00']['0x00'] then I don't know how to read the values back after 100 ms wait.
Is there any stuff I can do to notify the "wire/serial" I request the values from the BlinkM register ? And then is it enough to rely on the number of available bytes in return if any ?
anyone ?
thx
lucas started a conversation in ThingM on August 03, 2008 17:00:
Adding convenience API for HSB loversWhat about adding a BlinkM_getHSBColor func to BlinkM_funcs.h ?
Loading Profile...
