Page 1 of 1

Does ESP WROOM 32 works withRF24 Libary and NRF24L01 module?

Posted: Wed Jan 08, 2020 2:38 pm
by Harmen1991
Hello ESP fellows :) ,

The question in short: Can i use the RF24 libary together with an ESP wroom 32 MCU and an NRF24L01 communication module?
The link to this Libary is:
I see in the github file directory: "fix build issues against ESP 32 Wroom" so i expected this libary was suitable to use.

I would like to communicate between two "esp wroom 32" microcontrollers.
For the communication i want to use two "NRF24L01" communication modules.
See attachment for simple diagram.

I followed this tutorial on: ... -tutorial/
I used the same code for receiver and transmitter with exception that i changed this line:

Code: Select all

RF24 radio(7, 8); // CE, CSN

Code: Select all

RF24 radio(4, 2); // CE, CSN
The reason for this is that CE and CSN are respectively connected to GPIO pin 4 and GPIO pin 2.
The MCU hardware SPI bus is used.

The result is that there is no text showing up in de serial monitor at the reveiving MCU.

Thank you in advance:)

Re: Does ESP WROOM 32 works withRF24 Libary and NRF24L01 module?

Posted: Wed Mar 25, 2020 3:40 pm
by warren
I was able to make this work last night, using the following GPIOs:

Code: Select all

RF24 radio(12,5);  // CE, CSN
And the following GPIOs:
  • MOSI - 23
  • MISO - 19
  • SCK - 18
  • SS(CSN) - 5
  • CE - 12
These appear to be the ESP32 driver defaults (except for CE, CSN provided in the constructor). To use other GPIOs may require some fiddling with macros/API for this library, which I didn't attempt.