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:
>nrf.sendCommand("1+2", function(r) { print("=="+r); }); TX not received 255 TX not received 255 TX not received 255 =undefined
Any suggestion are welcomed very much, as I need an working NRF24L01+ for a futur project!
Thank you very much,
Stefan
My connections:
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 B4 SPI MOSI 7 MISO B5 SPI MISO 8 IRQ unused GPIO In
My testcode:
Slave:
SPI1.setup({sck:B3, miso:B4, mosi:B5}); var nrf = require("NRF24L01P").connect( SPI1, A1, A0 ); function onInit() { nrf.init([0,0,0,0,1], [0,0,0,0,2]); } function toggle1(){ on1=!on1; digitalWrite(LED1,on1); } onInit(); setInterval(function() { toggle1(); nrf.slaveHandler(); }, 50);
Master:
SPI1.setup({sck:B3, miso:B4, mosi:B5}); var nrf = require("NRF24L01P").connect( SPI1, A1, A0 ); function onInit() { nrf.init([0,0,0,0,2], [0,0,0,0,1]); } onInit(); setInterval(function() { nrf.masterHandler(); }, 50);
@Stefan started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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: