Arduino and Radio/Wireless Transceivers NRF24L01
Intro: Arduino and Radio/Wireless Transceivers NRF24L01
You will be able to comunicate Arduinos wireleslly with this nRF24L01 module. The range is from 50 to 200 feet.
STEP 1: Step 1: Where to Get NRF24L01
Ebay:
2 nRF24L01 modules - ~$6
2 Socket Adapters- ~ $2
Amazon:
2 nRF24L01 modules - ~$10
2 Socket Adapters - ~$6.50
-Plus shipping-
STEP 2: Step 2: Let's Connect
You need to make the connection with your Arduino and the module. Here is a chart to help you.
*Tip: Connect VCC to 5V instead of 3.3V if you are using this socket, you won't mess up your module because this socket have a 3.3V regulator built in. You will need to do this if you get some inconsistency with what you receive and get this will happen 3.3V doesn't give enough current.
STEP 3: Step 3: Code, But First the Library.
You need to download the library.
You can find it here: RF24 Library.
Add it to yor libraries, if you don't know how I hope this picture help you.
STEP 4: Step 4: Now the Code
Get to this page: Time to add the code.
Because you are trying to communicate you need a receiver and a transmiter, to set this you need to change the radioNumber in the code. 0 to transmit and 1 to receive.
After this upload the code to your arduinos.
STEP 5: Step 5: Arduinos Communicating
Open both serial ports change the baudrate to 115200.
The one that you set with 0, the transmitter will show you this message: PRESS 'T' to begin transmitting to the other node.
Type T and send it.
It will start transmitting to the receiver.
In the transmitter serial port the message will be: Now sending.
In the receiver serial port the message will be: Sent response
Now your Arduinos are communicating, this is just a simple setup to start creating and searching more and more about your nRF24L01 modules.
4 Comments
HristoB 6 years ago
Thank you for sharing
braulio777 7 years ago
Thank you for this project.
braulio777 7 years ago
Thank you for this prtoject.
Swansong 7 years ago
Thanks for sharing :)