Difference between revisions of "NRF24L01 Wireless Transceiver Module"

From Wiki
Jump to: navigation, search
Line 1: Line 1:
Introduction
+
==Introduction==
 +
[[File:Nrf-1.png]][[File:Nrf-2.png]]<br><br>
  
 +
nRF24L01+ is a single-chip radio transceiver for the worldwide 2.4-2.5 GHz ISM band. The radio transmitters and receivers include frequency generator, enhanced ShockBurst mode controller, power amplifier, crystal oscillator modulator and demodulator. You can select the output power channel and protocol by setting through the SPI port. The current consumption for the nRF24L01+ is extremely low - under the transmitter mode, when the transmitting power is 0dBm, the current consumption is only 11.3mA; under the receiving mode, it is 13.5mA; under the power down and idle mode, the consumption is even lower. As for application, it's widely used in many devices such as wireless mouse and keyboard, game handle, remote control set, industry sensor,toys,etc.
 +
<br>
 +
The pin functions of NRF24L01 are as shown:<br>
 +
{|class="wikitable"
 +
|-
 +
|Pin
 +
|Name
 +
|Description
 +
|-
 +
|1
 +
|GND
 +
|Ground (0V)
 +
|-
 +
|2
 +
|VCC
 +
|Power Supply (3.3V)
 +
|-
 +
|3
 +
|CE
 +
|Mode Enable Activates RX or TX mode
 +
|-
 +
|4
 +
|CSN
 +
|Chip Select
 +
|-
 +
|5
 +
|SCK
 +
|Serial Clock
 +
|-
 +
|6
 +
|MOSI
 +
|Master Output, Slave Input
 +
|-
 +
|7
 +
|MISO
 +
|Master Input, Slave Output
 +
|8
 +
|IRQ
 +
|Interrupt Request. Under wireless communication, MCU communicates with NRF24L01 by IRQ
 +
|}
  
 +
The schematic diagram of the module is shown as below:<br>
  
 +
==Features==
 +
1. nRF24L01+ is a single-chip radio transceiver for the worldwide 2.4-2.5 GHz ISM band, suitable for Arduino and Raspberry Pi.<br>
 +
2. Supports 6-channel receiving, with a transmission speed of up to 2Mbps.<br>
 +
3. Multi-frequency point: With 125 frequency points, it can meet multipoint communication and frequency hopping communication requirements.<br>
 +
4. Ultra-small: 24*15mm, with built-in 2.4GHz antenna. <br>
 +
5. Easy to develop: the link layer is fully integrated on the module, making it easy for development.<br>
  
 
+
==Test Experiment==
 
+
'''Step1. Wire'''<br>
 
+
nRF24L01+ is a single-chip radio transceiver for the worldwide 2.4-2.5 GHz ISM band. The radio transmitters and receivers include frequency generator, enhanced ShockBurst mode controller, power amplifier, crystal oscillator modulator and demodulator. You can select the output power channel and protocol by setting through the SPI port. The current consumption for the nRF24L01+ is extremely low - under the transmitter mode, when the transmitting power is 0dBm, the current consumption is only 11.3mA; under the receiving mode, it is 13.5mA; under the power down and idle mode, the consumption is even lower. As for application, it's widely used in many devices such as wireless mouse and keyboard, game handle, remote control set, industry sensor, toys, etc
+
The pin functions of NRF24L01 are as shown:
+
Pin Name Description
+
1 GND Ground (0V)
+
2 VCC Power Supply (3.3V)
+
3 CE Mode Enable Activates RX or TX mode
+
4 CSN Chip Select
+
5 SCK Serial Clock
+
6 MOSI Master Output, Slave Input
+
7 MISO Master Input, Slave Output
+
8 IRQ Interrupt Request. Under wireless communication, MCU communicates with NRF24L01 by IRQ.
+
 
+
The schematic diagram of the module is shown as below:
+
+
 
+
Features
+
1. nRF24L01+ is a single-chip radio transceiver for the worldwide 2.4-2.5 GHz ISM band, suitable for Arduino and Raspberry Pi.
+
2. Supports 6-channel receiving, with a transmission speed of up to 2Mbps.
+
3. Multi-frequency point: With 125 frequency points, it can meet multipoint communication and frequency hopping communication requirements.
+
4. Ultra-small: 24*15mm, with built-in 2.4GHz antenna.
+
5. Easy to develop: the link layer is fully integrated on the module, making it easy for development.
+
 
+
 
+
Test Experiment
+
 
Wire the NRF24L01 to the SunFounder Uno board (the same to Mega2560) as follows.
 
Wire the NRF24L01 to the SunFounder Uno board (the same to Mega2560) as follows.
 +
{|class="wikitable"
 +
|-
 +
|nRF24L01 Module
 +
|SunFounder Uno (SunFounder Mega2560)
 +
|-
 +
|GND
 +
|GND
 +
|-
 +
|VCC
 +
|3.3V
 +
|-
 +
|CE
 +
|D9
 +
|-
 +
|CSN
 +
|D10
 +
|-
 +
|SCK
 +
|D13
 +
|-
 +
|MOSI
 +
|D11
 +
|-
 +
|MISO
 +
|D12
 +
|-
 +
|IRQ
 +
|Not Connect
 +
|}
  
nRF24L01 Module SunFounder Uno (SunFounder Mega2560 )
+
'''Step 2. Compile'''
GND GND
+
Connect the SunFounder Uno R3 and the SunFounder Mega2560 to your computer, open two files under NRF24L01. For the SunFounder Mega2560, run the ''nrf_distance_test_RX.ino'' file; for the SunFounder Uno R3, run the ''nrf_distance_test_TX.ino'' file.<br>
VCC 3.3V
+
CE D9
+
CSN D10
+
SCK D13
+
MOSI D11
+
MISO D12
+
IRQ NC
+
+
 
+
Step 3. Compile
+
Connect the SunFounder Uno R3 and the SunFounder Mega2560 to your computer, open two files under NRF24L01. For the SunFounder Mega2560, run the nrf_distance_test_RX.ino file; for the SunFounder Uno R3, run the nrf_distance_test_TX.ino file.
+
  
Step 4. Test
+
'''Step 3. Test'''
 
Open Serial Monitor on the IDE window for Mega2560, and you can see the received data printed, that is, Value 1 :1  Value 2 :1
 
Open Serial Monitor on the IDE window for Mega2560, and you can see the received data printed, that is, Value 1 :1  Value 2 :1
 
It indicates both NRF24L01 modules work.
 
It indicates both NRF24L01 modules work.

Revision as of 07:49, 24 February 2017

Introduction

Nrf-1.pngNrf-2.png

nRF24L01+ is a single-chip radio transceiver for the worldwide 2.4-2.5 GHz ISM band. The radio transmitters and receivers include frequency generator, enhanced ShockBurst mode controller, power amplifier, crystal oscillator modulator and demodulator. You can select the output power channel and protocol by setting through the SPI port. The current consumption for the nRF24L01+ is extremely low - under the transmitter mode, when the transmitting power is 0dBm, the current consumption is only 11.3mA; under the receiving mode, it is 13.5mA; under the power down and idle mode, the consumption is even lower. As for application, it's widely used in many devices such as wireless mouse and keyboard, game handle, remote control set, industry sensor,toys,etc.
The pin functions of NRF24L01 are as shown:

Pin Name Description
1 GND Ground (0V)
2 VCC Power Supply (3.3V)
3 CE Mode Enable Activates RX or TX mode
4 CSN Chip Select
5 SCK Serial Clock
6 MOSI Master Output, Slave Input
7 MISO Master Input, Slave Output 8 IRQ Interrupt Request. Under wireless communication, MCU communicates with NRF24L01 by IRQ

The schematic diagram of the module is shown as below:

Features

1. nRF24L01+ is a single-chip radio transceiver for the worldwide 2.4-2.5 GHz ISM band, suitable for Arduino and Raspberry Pi.
2. Supports 6-channel receiving, with a transmission speed of up to 2Mbps.
3. Multi-frequency point: With 125 frequency points, it can meet multipoint communication and frequency hopping communication requirements.
4. Ultra-small: 24*15mm, with built-in 2.4GHz antenna.
5. Easy to develop: the link layer is fully integrated on the module, making it easy for development.

Test Experiment

Step1. Wire
Wire the NRF24L01 to the SunFounder Uno board (the same to Mega2560) as follows.

nRF24L01 Module SunFounder Uno (SunFounder Mega2560)
GND GND
VCC 3.3V
CE D9
CSN D10
SCK D13
MOSI D11
MISO D12
IRQ Not Connect

Step 2. Compile Connect the SunFounder Uno R3 and the SunFounder Mega2560 to your computer, open two files under NRF24L01. For the SunFounder Mega2560, run the nrf_distance_test_RX.ino file; for the SunFounder Uno R3, run the nrf_distance_test_TX.ino file.

Step 3. Test Open Serial Monitor on the IDE window for Mega2560, and you can see the received data printed, that is, Value 1 :1 Value 2 :1 It indicates both NRF24L01 modules work.

Resource code datasheet.PDF