-
• #2
Looks to me like you've wired up SPI MOSI and MISO around the wrong way - see http://www.espruino.com/ReferenceESPRUINOBOARD.
Just swap B4 and B5 and you should be sorted...
-
• #3
Hello Gordon,
you rock!! I've review the wiring in this particular part and now it works great for me! I'm now able to plug the NRF24L01+ in on my Espruino with a bunch of female-to-female-wires.
One additional question: What are your experiences with range of NRF24L01+? How can you increase it?
Thank you very much,
Stefan
The correct wiring:
NRF24L01+ Name Espruino Type 1 GND GND GND 2 3.3V 3.3 3.3v 3 CE A0 GPIO Out 4 CSN A1 GPIO Out 5 SCK B3 SPI SCK 6 MOSI B5 SPI MOSI 7 MISO B4 SPI MISO 8 IRQ unused GPIO In
-
• #4
Great!
If I'm honest range is not fantastic (with the simple on-board aerial modules). If I put one in the middle my my house I can pretty much do every room, but it won't really go outside.
By default, the boards run at full power transmit already, but you can increase the timeout and also the number of retries, and you can also decrease the transmit speed - all of which will help. I've actually just updated the driver to increase timeout and retry (I'd done it here for some tests), and I also added a setDataRate function so you can do:
nrf.setDataRate(250000);
-
• #5
Thank you Gordon! I'll try it out!
Hello everybody,
the tutorial on "NRF24L01+" is not working for me:
http://www.espruino.com/NRF24L01P
It's driving me crazy, because I always get the following message on the master:
Any suggestion are welcomed very much, as I need an working NRF24L01+ for a futur project!
Thank you very much,
Stefan
My connections:
My testcode:
Slave:
Master: