nRF24L01 Pin Configuration
|Pin Number||Pin Name||Abbreviation||Function|
|1||Ground||Ground||Connected to the Ground of the system|
|2||Vcc||Power||Powers the module using 3.3V|
|3||CE||Chip Enable||Used to enable SPI communication|
|4||CSN||Ship Select Not||This pin has to be kept high always, else it will disable the SPI|
|5||SCK||Serial Clock||Provides the clock pulse using which the SPI communication works|
|6||MOSI||Master Out Slave In||Connected to MOSI pin of MCU, for the module to receive data from the MCU|
|7||MISO||Master In Slave Out||Connected to MISO pin of MCU, for the module to send data from the MCU|
|8||IRQ||Interrupt||It is an active low pin and is used only if interrupt is required|
- 2.4GHz RF transceiver Module
- Operating Voltage: 3.3V
- Nominal current: 50mA
- Range : 50 – 200 feet
- Operating current: 250mA (maximum)
- Communication Protocol: SPI
- Baud Rate: 250 kbps – 2 Mbps.
- Channel Range: 125
- Maximum Pipelines/node : 6
- Low cost wireless solution
How to Use the NRF24L01
The NRF24L01 module works with the help of SPI communications. These modules can either be used with a 3.3V microcontroller or a 5V microcontroller but it should have an SPI port. The complete details on how to use the module through SPI is given the data sheet below. The circuit diagram shows how the module should be interfaced with a microcontroller.
Here I have shown how for a 3.3V microcontroller, but it applies the same for a 5V MCU as well. The SPI Pins (MISO<MOSI and SCK) are connected to the SPI pins of the Microcontroller and the signal pins (CE and CSN) are connected to the GPIO pins of the MCU.
If you are interfacing the module with Arduino, then there are ready made libraries available like the R24 Library. With the help of these libraries you can easily interface the nRF24L01 with Arduino with few lines of code. If you are using for some other microcontroller then you have to read through the datasheet to understand how to establish the SPI communication.
The nRF24L01 module is a bit tricky to use especially since there are many cloned versions in the market. If you are having any problem with getting it work, try adding a 10uF and 0.1uF capacitor in parallel to the Vcc and Ground pins. Also make sure the 3.3V supply is clean and does not have any noise coupled in it.