-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example for I2C sensor reading #54
Comments
Could you describe the parts of your setup in detail? Eg are you using AutobahnJS or AutobahnPython on the Yun? What library to talk to the Arduino side of the Yun. etc etc Ideally, also post some code - even non-working. |
Mainly I go through the detailed setup described at the crossbar.io website (The Quick Setup makes problems with the SD card). For using sysex commands I add to Firmata (in the sysexCallback function):
I called it with node at the command line with:
This code works and let the led 13 blink. I thought that I can call the I2C commands in the same way:
I'm sure that the I2C sensor is working, because I tested it with another yun with standard setup. Here is the code with which I succesfully work without firmata (standard yun setup with bridge.h wire.h yunserver.h yunclient.h etc.)
Thank you for your help |
Thanks for the detailed info!
Yes, this is actually a question. I don't have an answer as I haven't played with I2C stuff. I'd ask in the Firmata community / mailing list about that. Because this question/issue isn't related to Autobahn/Crossbar.io If you have working code to talk to I2C from Firmata/node, adding that to the AutobahnJS/Firmata example will be trivial. The real question hence is: "How do I talk I2C using Firmata from Node on the Yun?" |
Yes, this sounds like the real question. |
Closing this as an issue, as it's not directly related to Crossbar.io itself. @adrianardu - If you come up with a solution, then we'd be grateful if you could tell us about it (maybe with a minimal working example). We won't investigate this ourselves at the moment, but we'd certainly want to add it to the cookbook if you get it working. |
Hi,
finally after the whole installations and configurations I am able to run you examples like the yun_potentiometer. They run great and I love the fast response which is without crossbar/autobahn not possible.
Now I want to implement my I2C sensors. Unfortunetely I completly failed with this target.
I tried it with sysex commands, but due to lags of information which (and how) parameters I have to use to read for example the address 0x58, I can't continue.
Thanks for your help.
The text was updated successfully, but these errors were encountered: