nRF24l01 module is in fact a radio transceiver module and it operates on 2.4 GHz frequency. This module has the capability to send and receive data simultaneously and this can be used for your various IOT projects . By display it is a very small size module but it’s features are astonishing.
This module can be used for two way communication purposes and in this tutorial we setup a one way communication between two Arduino uno.
Before beginning we have to download some Arduino libraries in order for the smooth running of the program. You can download the the library files here.
Pinout diagram for nRF24lL01Connect the nRF24L01 and servo moter to the arduino as per the above diagram.
Important note: Input voltage is of 1.9V~3.6V, do not exceed this voltage, otherwise it will fry your module.
- Arduino-------------nRF24L01
- Pin 9 -----------CE
- Pin 10 --------- CS(N)
- Pin 11 ---------- MOSI
- Pin 12 --------- MISO
- Pin 13 ---------- SCK
- Pin3-------------Servo signal pin
- 3.3v ------------- VCC
- GND ------------ GND
Now upload the receiver code given below to the first Arduino.
Transmitter CircuitConnect the nRF24L01 and servo moter to the arduino as per the above diagram.
Important note: Input voltage is of 1.9V~3.6V, do not exceed this voltage, otherwise it will fry your module.
- Arduino-------------nRF24L01
- Pin 9 -----------CE
- Pin 10 --------- CS(N)
- Pin 11 ---------- MOSI
- Pin 12 --------- MISO
- Pin 13 ---------- SCK
- Pin5-------------Button
- 3.3v ------------- VCC
- GND ------------ GND
Now upload the transmitter code given below to the second Arduino.
Now power both the Arduino boards and press the button and find that the servo rotates.
Thank you and hope that the tutorial helped you...
Comments