NRF24L01 and MIRF/RF24

I contact you because I am trying to programm the NRF24l01 on arduino IDE. The thing is I need to use MIRF library or RF24 Library. Do you know wich one I have to use? And where I can get it to put it on the IDE?

Have a look at this Simple nRF24L01+ Tutorial.

Note that the examples use the TMRh20 version of the RF24 library

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

There is also a connection test program to check that the Arduino can talk to the nRF24 it is connected to. If the first example does not work be sure to try the connection test for both of your Arduinos. Nothing will work if the connection test fails.

A common problem with nRF24 modules is insufficient 3.3v current from the Arduino 3.3v pin. This seems to be a particular problem with the nano. 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.

If you are using the high-power nRF24s (with the external antenna) it may help to have a distance of about 3 metres between the two nRF24s so that the signal does not overwhelm the receiver. However someone on the Forum has had them working without that separation - I don't have any personal experience with them. If you are new to nRF24s it may be better to start with a pair of low power modules with the pcb antenna.


I will second the suggestion of using the TMRh20 version of the RF24 library and Robin2's tutorial. His tutorial really makes learning to use the rf24 radios easier.