Two way communication using nRF24LO1+

To whom it may concern,

I am totally new to Arduino programming. I do have some experience in Assembly programming on the 8051 microcontroller.

I have the need for an RF link to monitor the position of a switch (on or off). On the receiver side there has to be a relay to mimic the switch on the transmitter.

The receiver also has to monitor the RF link for any loss of communication and sound a buzzer when it happens.

I downloaded some simple software from the internet that sends a simple message across the RF link using two nRF24LO1+ modules and two Arduino Nano's. It works perfectly. I just need help to change the software to do the rest.

Can someone please help?

Transmitter and Receiver software.doc (31 KB)

The RF24 modules don't care what you send between then (up to a limit of 32 bytes) so you could just send a single byte holding the status of the switch.

What have you tried so far ?

Please do not attach .doc files as many people will not or cannot open them. Please look at Read this before posting a programming question and follow the advice on posting code

Have a look at this Simple nRF24L01+ Tutorial.

Wireless problems can be very difficult to debug so get the wireless part working on its own before you start adding any other features.

The examples are as simple as I could make them and they have worked for other Forum members. If you get stuck it will be easier to help with code that I am familiar with. Start by getting the first example to work

Examples 2 and 3 illustrate 2-way communication.

There is also a connection test program to check that the Arduino can talk to the nRF24 it is connected to.

A common problem with nRF24 modules is insufficient 3.3v current from the Arduino 3.3v pin. The high-power nRF24s (with the external antenna) will definitely need an external power supply. At least for testing try powering the nRF24 with a pair of AA alkaline cells (3v) with the battery GND connected to the Arduino GND.