NRF24L01 2.4Ghz Wireless Relay Switch

NRF24L01 2.4Ghz Wireless Relay Switch
Hello world! Today i made a Wireless switch with the NRF25L01 2.4ghz Wireless Module. I used a nano in the video for the transmitter but you can change it to a uno if you don’t have a nano.

Schematic Transmitter:
NRF25L01 2.4ghz Wireless

Schematic Receiver:
NRF25L01 2.4ghz Wireless

Wire it up like the above schematics, The Schematic with the NANO is for the TRANSMITTER and the Schematic with the UNO is for the RECEIVER.

MAKE SURE that you have installed the following libraries. Download RF24.h Here

SPI.h
nRF24L01.h
RF24.h

Parts list:
Arduino UNO for receiver
Arduino Nano for transmitter ( You can use 2 nano’s, or 2 Uno’s to if prefered.. i just used a nano cuz its nice and small)
NRF24L01 2.4 Ghz Wireless Module.
KY-019 1 Channel relay
Jumper Wires Set MM/FF/MF
Perfboard / prototype board for buttons (or just a Solderless BreadBoard)

Code Transmitter:

Code Receiver:

facebook-profile-picture
Danny van den Brande

http://www.arduinosensors.nl

<p>I like to code electronics, do 3D Design, Webdesign and Graphic Design.</p>

7 thoughts on “NRF24L01 2.4Ghz Wireless Relay Switch”

  1. Hii,
    Sender is OK. But receiver receiver compiler shows following error. How to solve it. Please help.
    Arduino: 1.8.2 (Windows 10), Board: “Arduino/Genuino Uno”

    C:\Users\NSP\Documents\Arduino\nRF24L01-Relay-Receiver\nRF24L01-Relay-Receiver.ino: In function ‘void loop()’:

    nRF24L01-Relay-Receiver:26: error: void value not ignored as it ought to be

    done = radio.read(DataMgs, 1);

    ^

    exit status 1
    void value not ignored as it ought to be

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

  2. Hi Danny, I am an Arduino beginner and trying to use your code and schematics to conect two Arduino 1. Radio module is NRF24L01+ with amplifier and antenna. Doing what you propose I can’t connect both of them.

    I have read that with these modules I would a 3.3v external source but I am using 6v one. Could be this the problem?.

    I have changed pin 9 and 10 for 7 and 8 which are the correct ones for this module.

    I wuld appreciate a lot your help in order to connect both Arduino

    Thank you very much in advance..

Leave a Reply

Your email address will not be published. Required fields are marked *