You are reading a single comment by @jakedempsey and its replies. Click here to read the full conversation.
  • I am having all kinds of trouble today lol.

    I am trying to get these two radios working again. I had them working in the past but have not been successful today even when trying the most basic example.

    https://www.espruino.com/NRF24L01P

    I have one espurino attached to a macbook pro USB plugged into the web ide with the following code:

    SPI1.setup({sck:A5, miso:A6, mosi:A7});
    var nrf = require("NRF24L01P").connect( SPI1, B0, B1 );
    function onInit() {
      nrf.init([0,0,0,0,1], [0,0,0,0,2]);
    }
    onInit();
    setInterval(function() {
      nrf.slaveHandler();
    }, 50);
    

    On another macbook pro I have an espurino plugged into the usb with the web ide open. On that one I have the following code:

    SPI1.setup({sck:A5, miso:A6, mosi:A7});
    var nrf = require("NRF24L01P").connect( SPI1, B0, B1 );
    function onInit() {
      nrf.init([0,0,0,0,2], [0,0,0,0,1]);
    }
    onInit();
    setInterval(function() {
      nrf.masterHandler();
    }, 50);
    

    On the master once I pushed the code I then try the following from the console:

    nrf.sendCommand("1+2", function(r) { print("=="+r); });
    

    When I do that I get the error:

    TX not received 30
    

    If I swapped the two pieces of code and make the first the master I get this error:

    TX not received 255
    

    I have checked my wiring at least 10 times on both NRF24L01P. I used the pin instructions found here https://www.espruino.com/NRF24L01P for my two original espruino boards.

    Any insight or tips to debug would be really appreciated.

About

Avatar for jakedempsey @jakedempsey started