natevw / node-nrf

Pure-JavaScript nRF24L01 driver library
117 stars 31 forks source link

Arduino example #25

Open tomzi1 opened 9 years ago

tomzi1 commented 9 years ago

Hello Nate!

I've been struggling for days now to get the communication working between raspberry pi and arduino, found almost all the issues listed here, but something still didn't work properly. Downloaded the latest lib from here: http://tmrh20.github.io/RF24/index.html. Can you please provide a working arduino example? I've been trying to get it work with your test.js, so if you have an updated version of it that would be appreciated too.

Thanks in advance.

andreabellucci commented 9 years ago

I have been struggling for over a week with a the library too. At first I tought the problem was in different DYNPD/FEATURE values in RPi and Arduino. But it wasn't that. The solution for me was to enable dynamic payloads on the Arduino sketch. For instance you can try to use the pingpair example from the RF24 Arduino library and instead of radio.setPayloadSize(8); use radio.enableDynamicPayloads();

tomzi1 commented 9 years ago

Hello andreabellucci!

Thanks for the answer! Can you please check out the new version of the RF24 arduino lib (link in the previous post)? It doesn't have the old pingpair anymore, but pingpair_ack, pingpair_dyn and pingpair_irq. Tried all of them with no success. I could also imagine that something changed in the lib itself that breaks the communication between arduino and raspberry. Are you using the IRQ pin on the arduino?

andreabellucci commented 9 years ago

No IRQ pin. Tomorrow I can send you the version of the library I am using and the node.js code for the rpi.

Andrea

tomzi1 commented 9 years ago

Thank you, that will be really helpful.

andreabellucci commented 9 years ago

Send me your private email.

kieferm commented 9 years ago

Could you please post the library version and node.js code? I am interested in seeing this too.

tomzi1 commented 9 years ago

szemuvegesindian [at] gmail