Skip to content

This repo will contain schematics, code and tips to achieve effective communication between NRF24 Transceiver and different microcontrollers such as ESP32 and NodeMCU

Notifications You must be signed in to change notification settings

timndichu/Radio-Communication-using-NRF24L01-Transceiver

Repository files navigation

Radio-Communication-using-NRF24L01-Transceiver

This repo will contain schematics, code and tips to achieve effective communication between NRF24 Transceiver and different microcontrollers such as ESP32 and NodeMCU

Getting Started

Downloading Arduino

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.

Installing ESP32 Add-on in Arduino IDE

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:

  1. In your Arduino IDE, go to File > Preferences

step1

  1. Enter the following into the “Additional Board Manager URLs” field:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

Then, click the “OK” button: step2

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
  1. Open the Boards Manager. Go to Tools > Board > Boards Manager…

step3

  1. Search for ESP32 and press install button for the "ESP32 by Espressif Systems":

step4

Give it some seconds or minutes to complete downloading all the required resources, depending on your internet connection.

  1. Aaand... That’s it.😀

step5

Connection between ESP32-S(Nodemcu32S) and NRF24LO1-Transceiver

ESP32-S Pinout

esp32

NRF24LO1-Transceiver Pinout

nrf24

Connections

nrf24-esp32

Connection between ESP12E(Nodemcu v1) and NRF24LO1-Transceiver

NodeMCU Pinout

Nodemcu

NRF24LO1-Transceiver Pinout

nrf24

Connections

nrf24-nodemcu

Code

Installing NRF Library

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”.

Transmitting Device

tx
Get code here

Receiving Device

rx
Get code here

Output

If everything has gone well (which I hope it did), you should see "Hello World" displayed in your Serial Monitor.

About

This repo will contain schematics, code and tips to achieve effective communication between NRF24 Transceiver and different microcontrollers such as ESP32 and NodeMCU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages