This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF52 <-> 24L01+ ESB sample code

Does anyone have any sample code for two-way ESB comms between an nRF52 and nRF24L01+ being controlled by an Arduino (or similar), please?

I can get two nRF52s to talk to each other, and I can get two 24L01+s to talk to each other, but I just can't get the comms working between the different modules.

Parents
  • Hi Steve,

    Q1: Could you try using an RF address which is equal regardless of endianess, like E7 E7 E7 E7 E7?

    Q2: If the above does not work, could you post your settings?

    Cheers, Håkon

  • Hi Håkon,

    I've tried the first many times!

    Here is my setup which I initially took from an example on NDZone, which worked for the poster. I've tried swapping the address used for the reading and writing pipes with no success.

    The nRF52 is using the esb_ptx example with the channel set to 2.

    Thanks,

    Steve.

    int64_t pipe_address[2] = {0xC2C2C2C2C2, 0xE7E7E7E7E7};
    

    void setupRadio() { radio.begin(); radio.setRetries(15, 15); radio.setChannel(2); radio.setDataRate(RF24_250KBPS); radio.setPALevel(RF24_PA_LOW); radio.enableDynamicPayloads(); radio.enableDynamicAck(); radio.enableAckPayload(); radio.setCRCLength(RF24_CRC_16); radio.openReadingPipe(1, pipe_address[1]); radio.openWritingPipe(pipe_address[0]); radio.startListening(); radio.printDetails(); }

Reply
  • Hi Håkon,

    I've tried the first many times!

    Here is my setup which I initially took from an example on NDZone, which worked for the poster. I've tried swapping the address used for the reading and writing pipes with no success.

    The nRF52 is using the esb_ptx example with the channel set to 2.

    Thanks,

    Steve.

    int64_t pipe_address[2] = {0xC2C2C2C2C2, 0xE7E7E7E7E7};
    

    void setupRadio() { radio.begin(); radio.setRetries(15, 15); radio.setChannel(2); radio.setDataRate(RF24_250KBPS); radio.setPALevel(RF24_PA_LOW); radio.enableDynamicPayloads(); radio.enableDynamicAck(); radio.enableAckPayload(); radio.setCRCLength(RF24_CRC_16); radio.openReadingPipe(1, pipe_address[1]); radio.openWritingPipe(pipe_address[0]); radio.startListening(); radio.printDetails(); }

Children
No Data
Related