nRF24L01 6TXA_1RXA network + 6TXB_1RXB network with arduino

How to build nRF24L01 network shown above with arduino ? SPI pins are shared between RXA,RXB and separate pins for both CE, CSN, IRQ.

Which nRF24L01 library supports my requirements ?

  • 1
    You can share the SPI (MISO, MOSI and SCK) pins but need separate pins for IRQ, CE, CSN. – Kwasmich May 3 '19 at 12:30
  • @Kwasmich This is all the information that the OP requires, but please write an answer too. – MichaelT May 3 '19 at 12:32
  • @MichaelT My comment was meant to be an obvious generality to let zastereo improve on his/her question. I don't think the raw pin connection is what was asked about. So I hope for more details on the actual problem. – Kwasmich May 3 '19 at 12:37
  • @Kwasmich Off-course I need separate pins for IRQ, CE, CSN – zastereo May 3 '19 at 12:45
  • Answer below is definitely correct, but just to be sure: are you aware you probably don’t actually NEED two masters? The 6 peers limitation of the nRF24 doesn’t apply unless you are using databurst protocol – Roberto Lo Giacco May 3 '19 at 19:43

You can use the RF24 library that you can install right away from the Arduino IDE. It provides you all you need. Just use two instances of RF24 with different CSN and CE pins assigned to get started.

RF24 radioA(7, 8); // CE, CSN
RF24 radioB(5, 6); // CE, CSN

Use the simple ping sketch as a starting point and add a second radio to it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.