What is NRF24L07 module
The nrf24l01 is a wireless transceiver module, meaning that each module can send and receive data. They operate at 2.4 GHz and belong to the ISM band, so they are legal for engineering applications in almost all countries. These modules can cover a distance of 100 meters (200 feet) during efficient operation, making it the best choice for all wireless remote control projects. At another words, nRF24L01 is Single Chip 2.4GHz Transceiver.
The module operates at 3.3V, making it easy to use in 3.2V or 5V systems. Each module has an address range of 125, and each module can communicate with the other 6 modules, so multiple wireless units can communicate with each other in a particular area. Therefore, this module can be used by mesh networks or other types of networks. So if you are looking for a wireless module with the above properties, this module will be your ideal choice.
We will use a table to explain the nrf24l07 pinout as following.
|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|
- Wireless PC Peripherals
- Mouse, keyboards and remotes
- 3-in-1 desktop bundles
- Advanced Media center remote controls
- VoIP headsets • Game controllers
- Sports watches and sensors
- RF remote controls for consumer electronics
- Home and commercial automation
- Ultra low power sensor networks
- Active RFID • Asset tracking systems
NRF24L07 Key Features
- Worldwide 2.4GHz ISM band operation
- 250kbps, 1Mbps and 2Mbps on air data Rates
- Ultra low power operation
- 11.3mA TX at 0dBm output power
- 13.5mA RX at 2Mbps air data rate
- 900nA in power down • 26μA in standby-I • On chip voltage regulator
- 1.9 to 3.6V supply range
- Enhanced ShockBurstTM
- Automatic packet handling
- Auto packet transaction handling
- 6 data pipe MultiCeiverTM
- Drop-in compatibility with nRF24L01
- On-air compatible in 250kbps and 1Mbps With nRF2401A, nRF2402, nRF24E1 and nRF24E2
- Low cost BOM • ±60ppm 16MHz crystal
- 5V tolerant inputs
- Compact 20-pin 4x4mm QFN package
How to use nRF24L01
The nrf24l01 module works with the help of spi communication. These modules can be used with a 3.3V microcontroller or a 5V microcontroller, but it should have an SPI port. The full details of how to use the module via spi are given below. The circuit diagram shows how the module should interface with the microcontroller.
Here I have demonstrated how to use a 3.3V microcontroller, but it also works with 5V microcontrollers. The spi pins (miso<mosi and sck) are connected to the spi pin of the microcontroller, and the signal pins (ce and csn) are connected to the gpio pins of the microcontroller.
If you are interfacing your module to the Arduino, there are ready-made libraries available, such as the R24 library. With the help of these libraries, you can easily interface nrf24l01 with arduino with a few lines of code. If you are using another microcontroller, you must read the datasheet to learn how to set up spi communication.
The nrf24l01 module is a bit tricky to use, especially since there are many cloned versions on the market. If you have any problems getting it working, try adding a 10uf and 0.1uf capacitor in parallel to the VCC and ground pins. Also make sure that the 3.3V power supply is clean and that no noise is coupled to it.