Does ESP WROOM 32 works withRF24 Libary and NRF24L01 module?

Harmen1991
Posts: 1
Joined: Wed Jan 08, 2020 1:23 pm

Does ESP WROOM 32 works withRF24 Libary and NRF24L01 module?

Postby Harmen1991 » Wed Jan 08, 2020 2:38 pm

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:
https://github.com/nRF24/RF24
I see in the github file directory: "fix build issues against ESP 32 Wroom" so i expected this libary was suitable to use.


Situation:
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:

https://howtomechatronics.com/tutorials ... -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
to

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:)
Attachments
mjaa.PNG
mjaa.PNG (16.36 KiB) Viewed 1557 times

warren
Posts: 15
Joined: Thu May 02, 2019 3:16 pm

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

Postby warren » Wed Mar 25, 2020 3:40 pm

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.

Who is online

Users browsing this forum: No registered users and 24 guests