NRF24 to communicate between Espruino and Arduino #1041
Replies: 5 comments
-
Posted at 2014-06-11 by @gfwilliams I'm not sure anyone got it working, which does seem particularly strange. What was the BASE_CONFIG change you made? It'd be good to update the NRF24 initialisation to bring it more in line with Arduino's (and maybe automatically set the channel on startup). Just wondering, are the payload sizes the same? Looks like Arduino's is 16 and Espruino's is 32? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-11 by DrAzzy RX_PW_P1 is 0x20 (32) on arduino, that's 32 byte payload by my understanding? I had tried it with 16 bytes as well. My modified version of the module
BASE_CONFIG was 8, is now 12 Difference in the minified code is the two setReg(0,11) calls are now setReg(0,15), and setReg(0,10) changed to setReg(0,14) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-22 by kazmikro did you manage to link the modules? If yes, is there an example? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-23 by Robin Fri 2019.11.22 @kazmikro it appears the minified code shown in #3 is what would be used on the Espruino side using the examples at: The source for Arduino is at the GitHub link provided in #1 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-01 by DrAzzy I never made it work back then. Never had much luck with the nrf's |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-11 by DrAzzy
Has anyone managed to make this work?
I'm using the RF24 arduino library from here:
https://github.com/TMRh20/RF24
Espruino:
My version of the NRF module was modified to change the BASE_CONFIG to use 2-byte CRC, since the arduino library wants that; no other changes.
Code on Arduino side (hacked up from an example)
Serial output is this - which all looks right:
On the Espruino, I try to do:
I remember reading a post by someone else doing this - I can't seem to find it now though. I'm wondering if they ever got it working.... The NRF24 should be a great way to do simple communications between an Espruino and one or more less-capable Arduino-like devices tucked into corners, or located outdoors, etc.
Beta Was this translation helpful? Give feedback.
All reactions