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


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:

Danny van den Brande

Programmer, Game Designer, 3D Designer, Web Designer, Graphic Designer. Jup this website looks crappy.. :) But enjoy the projects! Everything you need is here.

12 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 =, 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.

    1. I had the same problem. However found that I also needed the library RF24-master installed as well. As soon as I installed that library the error disappeared

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

  3. Hello
    can you help me.

    The radio transmitter is easy to compile

    But I get the message when compiling the receiver.

    done =, 1);

    What could be the problem

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.