This repo will contain schematics, code and tips to achieve effective communication between NRF24 Transceiver and different microcontrollers such as ESP32 and NodeMCU
If you haven't already, we'll start with downloading the Arduino IDE.
Make sure you have the latest version of the Arduino IDE installed in your computer.
If you don’t, uninstall it and install it again. Otherwise, it may not work.
Having the latest Arduino IDE software installed from arduino.cc/en/Main/Software, continue with this tutorial.
If you are not using the ESP32 or if you've already installed ESP32, you can skip this section.
To install the ESP32 board in your Arduino IDE, follow these next instructions:
- In your Arduino IDE, go to File > Preferences
- Enter the following into the “Additional Board Manager URLs” field:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Note: if you already have the ESP8266 boards URL, you can separate the URLs with a comma as follows:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
- Open the Boards Manager. Go to Tools > Board > Boards Manager…
- Search for ESP32 and press install button for the "ESP32 by Espressif Systems":
Give it some seconds or minutes to complete downloading all the required resources, depending on your internet connection.
- Aaand... That’s it.😀
Once we connect the NRF24L01 modules to the Arduino boards we are ready to make the codes for both the transmitter and the receiver.
First we need to download and install the RF24 library which makes the programming less difficult. We can also install this library directly from the Arduino IDE Library Manager. Just search for “rf24” and find and install the one by “TMRh20, Avamander”.
If everything has gone well (which I hope it did), you should see "Hello World" displayed in your Serial Monitor.