Great video thank you so much! I just wanted to bring to your attention that the 2 of the 3 green wires at 2:32 for the arduino nano are incorrect. MOSI is correct. But you have SCK running to 12 when it should be 13. And MISO is running to 10 when it should run to 12
Go for the NRF, I also got my wifi-module today and it's terrible. If you're going for the wifi module buy one which is build in into an arduino, like the Wemos!
Thank you for posting this tutorial! I was at a wireless data communication bottle neck on a robotic arm project and you just saved the day! Great job my friend! So happy!
Noticed one small error in the drawing that I'm sure has already been mentioned but not recently maybe. On the Nano in the picture the green wires are running to 10, 11 and 12 rather than 11, 12 and 13. 13 is on the other side of the board. Only I would follow the picture and miss that the numbers everywhere have it correctly. Don't want to say how many hours I messed that up and I've used SPI before and actually was bummed because it uses my little flashing LED pin 13. Not at my best today. Really great video and your link to your page really helped. Super. I don't know I could have linked them without it. Many thanks.
Huh, here's my story. I was fixing it and fixing it, and Was unable to get it to work, not even the basic transmission, and kept trying everything, everyone's code, everyone's library, all lead to failure. I was stubborn and didn't want to give up on them. And then I finally decided to try and replace one of the modules with the 3RD one I had lying around, and wola! it worked. -I was struggling so hard, and didn't want to test the other module because I was kinda lazy and kept thinking that there is some interference in the wires, or that my Arduino 3.3V was insufficient so I ordered 3.3V linear stabilizers and the outcome was the same, then I tried wrapping the ground wire around the Miso, still nothing, not working.. and then for the last resort I swapped one of the modules, and luckily enough I swapped the broken one on the first try and the Transmission began, So let everyone know, if you're unable to get it to work, not even any transmission,and you checked everything, then perhaps you really have a faulty module, and it isn't the bypass capacitor nor the insufficient arduino 3.3 power supply.
I bought 3 Pa LNA modules and only 2 works, but even to get those two to work I had to attach 3.3 ams1117 regulators and 1000uf capacitors. But now they work perfectly with that addition.
I think I will have to refer the datasheet to actually check , but I've noticed some modules don't have all 4 resistors connected while others have ( they are the 4 resistors along with one capacitor all parallel in the middle of the board,) on some modules all the resistors are there but in some others they are not there. Either ways all those modules work.
Nice introduction to the NRF24L01. The diagram of the Arduino Uno/Nano at 2:30 seems wrong but the arduino mega seems correct. Would of been nice to see the demonstration at the beginning with a clear view of the wiring. Thanks for the tutorial.
I believe I just discovered a small mistake in the video (with the Nano/Uno at least, I am using 2 Uno's) that was causing me some headache in figuring out what I was doing wrong. If you're having trouble like I was maybe this will help you (for me, the receiving end was getting a flood of blank input and eventually getting some weird characters before outright stopping (viewing with the serial monitor). At 2:30, you list the CSN as being connected to Pin 8 and CE to 7, for the Nano/Uno. However, if you look at the code at 2:40, you have the line: RF24 radio(7, 8); // CNS, CE Which I assume implies that you have the CSN connected to 7 and CE to 8, in their respective order. This is reversed from the list 10 seconds earlier. All I had to do was swap which wire was going to which pin and suddenly everything is working fine. Just swapping the lines in the code should have worked too.
I ran into the same problem as well. I think the comment should have stated RF24 radio(7,8) //CE,CNS...... that's the set up that worked for me. Eventually switching them around just like you did. Instead of switching the wires, i just switched the number on Arduino
Just finished testing your code, it works! thanks. I add "radio.setChannel(0)" after "radio.begin" at both transmiter and receiver sketch. It is to make sure both receiver and transmeter in the same channel. Since it is 125 channels altogether then i use 0 at both. Thanks again.
Hi people, i think i may have found the problem some of you are facing...on 2:26, the connections of MOSI, MISO and SCK are in the pins 10, 11 and 12....buuuuut, the pins for the SPI connection are 11, 12 and 13...and actually on the description below the Nano pin numbers are right, its the image that fools us...
@@davidporras761 Thanks for the quick response. 85m are perfect. I just need to transmit over about 30m, but within my house, so through a few walls of concrete
@@felixbaum2180 Mmmm concrete walls could make the signal loose too many packages, 15-20m should be fine if there are no more than 3 walls, but with 30m im not sure... In that case you could use a module with antena (anthena?) as transmitter and a normal one as receiver, thats what i always do actually, just to be sure haha...
Hi. I am using web editor and I have tried desperately again and again to get the NRF24L01 to work. I keep getting either no messages or weird encrypted text on the serial monitor. I need help.
Nice tutorial but there are a couple of things that I needed to correct in order to get both examples to work. First, the wiring diagram for the Nano is incorrect. Use the written pin assignments at 2:33 in the video. Second, in order to get the second example to work, I had to change this line in the transmitter code - while (!radio.available()); to if (!radio.available()); Thank you for all the help in getting this project working. Now to add more servos!
@Mateo M wrong, you can use same pins as on Nano board, 11, 12, 13 and 7,8 or whatever pins you decide to use as CE and CSN pins. Nano, Uno and Pro Mini board have the same pins for SPI.
If anyone gets blank output in serial monitor......then You must check the connection..... actually pin 11,12,13 in the diagram is incorrect.......13 is the opposite side...... Better see the pins and connect it yourself....... Anyway great video...
Am sorry but there is a mistake in the way the Arduino nano is hoocked up for SPI (the 3 green wires are wrong and the pin 13 is used). Great otherwise :)
just something I noticed, in the video your comment when you created the radio object you have it read as CSN, CE but on your website its the other way around CE, CSN
Thank you so much, you are the one who's sketch and connection works. But I still have a question. Why nothing works when I change power supply. It works only from 3.3 v Arduino output. Other power supplies (batteries, MB-102...) Don't provide possibility to work properly for nrf24l01
@@dadigitechman You don't have to use pins 7 and 8. I used pins 9 and 10 and it worked fine but you have to define the pins you are using in the code. The code here defines pins 7 and 8 for CE and CSN so you need to modify the code. This does work.
@@dadigitechman It's reasonably straight forward. The only line of code you have to change is this one "RF24 radio(7, 8); // CE, CSN" just type in (9,10) if you plan on using those pins on the arduino. I agree that using pins 9 and 10 for CE and CSN makes the overall wiring much neater. Follow the link in the video description to the tutorial for the full code as it is good and all of that code works. You may need to modify the code for your own application depending on what your project is and what you are trying to achieve but that is up to you to do some research and play around to figure out what part of the code you need to modify. It is very possible that your wireless modules are faulty and I have seen faulty ones from China in the past. If you follow the tutorial in this video exactly right and it doesn't work then it may be your modules.
Thank you for your tutirial it was very good as I am setting up an RC module now, but having trouble with noise as I can't read what is xmitted? baud rates are set to 9600 and I still have not found the problem? Rick
OUTSTANDING VIDEO! Thank you very much. Not only did this completely explain the subject matter, I enjoyed the precise articulation which compresses a rather large amount of information into an efficient time line. I did have one question. Instead of only 6 receivers, I need to expand this. So, would you have ideas to share for, say, adding a second group of 4 receivers? One group of 6 and another set of 4? If you have a blog, I'd be happy to continue this conversation in that manner. Thanks.
To make it easy for Newbies Note in i.e Getting Started Program find code RF24 radio(7,8); alter to reflex say RF24 radio(9,10); //CE, CSN Please note CSN on Mega should be on 53 if not then add pinMode(53,OUTPUT); First line in void setup()........ Due does not mind as it expects pin 4,10,53 to be CSN. Uno only pin 10 for CSN This then conforms to ARDUINO SPI Library MY Colour Coding and pin out for nRF24L01 Pin 1 Brown 0v Ground Pin 2 Red +V 3.3v Pin 3 White CE Pin 4 Black CSN Pin 5 Purple SCK Pin 6 Grey MOSI Pin 7 Blue MISC Pin 8 Orange IRQ Uno Colour Mega Due Due Header SPI 9 Any pin White 9 Any pin 9 Any pin CE 10 Black 53 4,10,53 CSN/SS 11 Grey 51 51 ISP-4 MOSC 12 Blue 50 50 ISP-1 MISO 13 Purple 52 52 ISP-3 SCK
I'm confused, on the picture of Nano you have connected ports 10, 11, 12 to nrf2401, but you have written in the script ports 11,12, 13. I don't know what to use, and my experiment doesn't work! What could I do next?
Hello, thx for this tutorial. I have a problem, I uploaded the exact same code on my Arduino Mega and my Uno, but it's not working. I use my mega as a recepter and It justs write some squares and '?'. Have you got any idea ?
I'm 4 years late on this but I was getting something very similar. Try swapping the 7/8 pins for the CSN/CE wires going to the nRF24L01. If you look, at 2:30 and 2:40 he has the pins reversed between the explanation/code.
lol, i am using arduino and RF transceivers for the first time, and was thinking i would have to do some crazy 8 bit encoding and decoding between the different duinos, this is so much simpler xD
Thanks, with your very informative videos I am learning a lot of things. And everything I build with arduino following your tutorials works well. Thanks
i did everything you said and showed in the video but i can't manage to do it i only receive weird stuf I also changed the connections to what you put under the drawing instead of copying the drawing.
Thank you for the video! simple and easy:) GUYS ALL OF YOU WHO CANT GET IT TO WORK! I spent days and night to bring it to life, I tried all projects and all examples but haven't succed. The problem was i had to add a capacitor between the gnd and 3.3v pins on rf24, it solved the problem:) and try to set pa level on max. U need to add 1-100 microF capacitor.
I think if you use signal modulation rather than simply the channels to pair transmissions with receivers you can probably have many more than 125 devices within range of each other
I've got in the serial port monitor message like this but upturned question mark -->>> "????????????????????" What is the problem? I've done everything like in this video :O
great video. I am just begginer and I did not manage to make this project. can anyone tell me what pins i should replace when using arduino uno in the place of leonardo. thanks.
I was wondering if you used the Mega Arduino for a particular reason like it being more powerful , I have two pro minis I am going to experiment with and was also wondering if just wiring them identically shouldl work for them communicating?
No. The Arduino Mega will not supply more power and will not increase range. It will work identically with Pro Minis as long as you power the Pro Minis with a decent power supply.
Hello. Thanks for the excellent video but I am puzzled by your Tx code in the bi-directional example. It seems that the loop will freeze if the receiver does not send any message. What's the reason for the line of code, "while (!radio.available());" ??????
Very good video, but I am having "Noise" problems, and I saw others are having similar problems. Any suggestions or improvements that you would recommend?
I tried the tutorial to display 'hello world' on the receiver module but nothing happens, can you suggest a fix? There was no error and the library was correctly downloaded, but nothing is happening.
Try swapping your wires for the 7/8 pins (CSN and CE), or swap the numbers in the code when you create the radio. If you notice, at 2:30 and 2:40 he has the pins reversed between the explanation and the code. Just a small mistake in the video I believe, I was getting the same thing until I figured it out.
Congratulations! excellent project. It would be great if you make a wireless project using Xbee modules. I know these devices are expensive, however, you can consider this project for the future.
I'm using the same code as yours and same connections, but still not working, nothing appears on the serial monitor of the receiver, what could be the problem? I'm using UNO as transmitter and NANO as receiver.
How to use SPI and Servo lib together on the Uno? From my understanding by using Servo lib pin 9 and 10 are not usable anymore because of the timer used by the lib. At the same time pin 10 ist the CS.
nice video! is there a way to turn on/off a led remotely when the temperature reaches a certain level (provided a temp. probe is attached to the arduino)?
i want to have several arduinos communicating in parallel. e.g. a can send a message to b and c, which receive the message at the time time, and b can send a message to a and c and they receive at the same time, etc. Do you think this type of architecture is the best way to do this?
Interesting videos, thank you. The first sketch worked for me. I used the Nano IPSP rather than the numbered SPI pins. For the second sketch, I also used IPSP with identical hookup of the wires for the receiver/transmitter. Also, I used a potentiometer instead of a joystick. I ran the servo side off battery and the led side off computer. I verified multiple times that wiring was correct and that send and receive channels were appropriately reversed on the 2 Nanos. Nothing I could do succeeded in making the second sketch run. Presumably the error is mine and not in the sketch, but I cannot find it. It is tedious to do the wiring and then have the project fail, but maybe I've overlooked something obvious and will eventually find it.
Why doesn’t my sketch upload to my arduino uno it says “can not compile the sketch to arduino uno” and every project that includes nrf radio module does the same error while compile the sketch
Simplemente se equivocó en la conexión, cuando conectés esos 3 pines (SPI), hacelo tomando de referencia la descripción que viene bajo la imagen del Nano
Hii Dejan!! Thanks for the tutorial. Had a small doubt .. like you said the nrf has 125 channels and if I am not wrong each channel can have 6 address pipes. So the lib which you have used in this tutorial has any function for setting the channel freq? What if I want to connect 10 devices on 10 diff freq and all the 6 address pipes in each channel/ freq have to be dedicated to that specific device.. Is it possible??
hello, thank you very much for this tutorial, I connected everything as in the diagram, it works, there is communication, unfortunately the SG90 servo dances, vibrates constantly, there is no stable operation, there are interferences, I added 10uF capacitors, where do these interferences come from, why is this happening?
Great tutorial. The simple sketch in the beginning help me a lot. One question though. The line const byte address[6], is the 6 referring to the pipe being used. Nobody seems to explain what the number in brackets is referring to. Thanks again for the great tutorial. Jeff
My nrf modules don't want to communicate with each other, I tried your test code as well as bidirectional communication code, they upload successfully to board but nothing happens. I tried changing nrf modules and my Arduino but still no any output in serial monitor as well as servo outputs
@@arhamthowheed9471 thank you very much for your reply but I have soldered them directly on board and I am using a Arduino mega board which at 50ma output current at 3.3v and I am also using a 220uf capicitor directly on nrf board. After fraustations I quit with loss of time and money. Any help will be appreciated.
@@AmateurInventor Ok all you need is 2 arduino boars, 2 nrf24l01 modules without a capacitor soldered on them and 2 breakout boards, assuming you already have 2 arduinos, 2 nrf24l01 modules and breakout boards should cost you about £5, when wiring them wire teh 5v pin on the arduino the the nrf24l01 breakout board input vcc. if you need more help add me on discord___> snakeviper123#2297
@@arhamthowheed9471 But unfortunately the place where I live, I can't import these from any international sellers like Amazon or eBay. Please suggest me another way.
Wait so if I have to transceivers do they HAVE to both be set as a transmitter and a receiver or can they change their tasks whille running? I want to make a simple wireless morse beeper so the beeper needs to be able to both receive and transmit data.
Awesome work. You have saved me a LOT of time.
Glad I could help and thanks for the support!
Great video thank you so much! I just wanted to bring to your attention that the 2 of the 3 green wires at 2:32 for the arduino nano are incorrect. MOSI is correct. But you have SCK running to 12 when it should be 13. And MISO is running to 10 when it should run to 12
And in the code you need to swap ce and csn pins around ( 8csn , 7 ce )
yoo
i need your help
I literally got my 3 NRF24L01 modules today and was trying to find a good tutorial, and now you uploaded this, thanks!!
i was lost between using wifi or xbee or RF and what do you know our friend decided to upload a video !
Go for the NRF, I also got my wifi-module today and it's terrible. If you're going for the wifi module buy one which is build in into an arduino, like the Wemos!
I love being 4 years later
Thank you for posting this tutorial! I was at a wireless data communication bottle neck on a robotic arm project and you just saved the day! Great job my friend! So happy!
Noticed one small error in the drawing that I'm sure has already been mentioned but not recently maybe. On the Nano in the picture the green wires are running to 10, 11 and 12 rather than 11, 12 and 13. 13 is on the other side of the board. Only I would follow the picture and miss that the numbers everywhere have it correctly. Don't want to say how many hours I messed that up and I've used SPI before and actually was bummed because it uses my little flashing LED pin 13. Not at my best today.
Really great video and your link to your page really helped. Super. I don't know I could have linked them without it. Many thanks.
Yeah, thanks for the remark.
yeah I struggled with them hours too small mistakes
What do you think, Can I use this module with just AtMega328 (without Arduino)?
@@plebaniaurydzyka8356 Yes you can. I have used the Atmega 328 on its own for use in model aircraft. Works great.
@@HowToMechatronics Man, just mark it in your video and on your website... you cost many people plenty of time...
Huh, here's my story. I was fixing it and fixing it, and Was unable to get it to work, not even the basic transmission, and kept trying everything, everyone's code, everyone's library, all lead to failure. I was stubborn and didn't want to give up on them. And then I finally decided to try and replace one of the modules with the 3RD one I had lying around, and wola! it worked.
-I was struggling so hard, and didn't want to test the other module because I was kinda lazy and kept thinking that there is some interference in the wires, or that my Arduino 3.3V was insufficient so I ordered 3.3V linear stabilizers and the outcome was the same, then I tried wrapping the ground wire around the Miso, still nothing, not working.. and then for the last resort I swapped one of the modules, and luckily enough I swapped the broken one on the first try and the Transmission began, So let everyone know, if you're unable to get it to work, not even any transmission,and you checked everything, then perhaps you really have a faulty module, and it isn't the bypass capacitor nor the insufficient arduino 3.3 power supply.
I bought 3 Pa LNA modules and only 2 works, but even to get those two to work I had to attach 3.3 ams1117 regulators and 1000uf capacitors. But now they work perfectly with that addition.
I think I will have to refer the datasheet to actually check , but I've noticed some modules don't have all 4 resistors connected while others have ( they are the 4 resistors along with one capacitor all parallel in the middle of the board,) on some modules all the resistors are there but in some others they are not there. Either ways all those modules work.
clear and helpful tutorial, I like that you go in depth on what you are doing unlike many other tutorials, thanks
Thanks, this was a huge relief, because I've watched several other tutorials, and it didn't work then. I really appreciate you
Nice introduction to the NRF24L01. The diagram of the Arduino Uno/Nano at 2:30 seems wrong but the arduino mega seems correct. Would of been nice to see the demonstration at the beginning with a clear view of the wiring. Thanks for the tutorial.
I believe I just discovered a small mistake in the video (with the Nano/Uno at least, I am using 2 Uno's) that was causing me some headache in figuring out what I was doing wrong. If you're having trouble like I was maybe this will help you (for me, the receiving end was getting a flood of blank input and eventually getting some weird characters before outright stopping (viewing with the serial monitor).
At 2:30, you list the CSN as being connected to Pin 8 and CE to 7, for the Nano/Uno. However, if you look at the code at 2:40, you have the line:
RF24 radio(7, 8); // CNS, CE
Which I assume implies that you have the CSN connected to 7 and CE to 8, in their respective order. This is reversed from the list 10 seconds earlier. All I had to do was swap which wire was going to which pin and suddenly everything is working fine. Just swapping the lines in the code should have worked too.
I ran into the same problem as well. I think the comment should have stated RF24 radio(7,8) //CE,CNS...... that's the set up that worked for me. Eventually switching them around just like you did. Instead of switching the wires, i just switched the number on Arduino
Just finished testing your code, it works! thanks.
I add "radio.setChannel(0)" after "radio.begin" at both transmiter and receiver sketch. It is to make sure both receiver and transmeter in the same channel. Since it is 125 channels altogether then i use 0 at both. Thanks again.
Finally it works. Don't use breadboards to make the connections because the breadboard turn into a small capacitor.
Hi people, i think i may have found the problem some of you are facing...on 2:26, the connections of MOSI, MISO and SCK are in the pins 10, 11 and 12....buuuuut, the pins for the SPI connection are 11, 12 and 13...and actually on the description below the Nano pin numbers are right, its the image that fools us...
Can confirm, I found out the hard way. The picture is wrong, but the description is correct. (at least on the Nano)
how much is the range of them?
@@felixbaum2180 About 85 meters in open space, there are some other models with antenas that can go up to 900m...
@@davidporras761 Thanks for the quick response. 85m are perfect. I just need to transmit over about 30m, but within my house, so through a few walls of concrete
@@felixbaum2180 Mmmm concrete walls could make the signal loose too many packages, 15-20m should be fine if there are no more than 3 walls, but with 30m im not sure...
In that case you could use a module with antena (anthena?) as transmitter and a normal one as receiver, thats what i always do actually, just to be sure haha...
Hi. I am using web editor and I have tried desperately again and again to get the NRF24L01 to work. I keep getting either no messages or weird encrypted text on the serial monitor. I need help.
i have the same problem, did you fix that?
@@barakyona Yes! i fixed it a long time ago
@@barakyona Do you need me to help you?
Blink yes bro do you have a discord? Or Facebook? So we can talk
@@barakyona I do! Add me @ Andrew Bejger on facebook
Finally I got it working after two days of attempts trying to find out what was wrong, I replaced the Nano board with Uno board.. Thank you very much.
Did you have problems with both demos, or just the second one? I'm using two Nanos. I got the first demo to work, but not the second.
Nice tutorial but there are a couple of things that I needed to correct in order to get both examples to work.
First, the wiring diagram for the Nano is incorrect. Use the written pin assignments at 2:33 in the video.
Second, in order to get the second example to work, I had to change this line in the transmitter code - while (!radio.available()); to if (!radio.available());
Thank you for all the help in getting this project working. Now to add more servos!
@Mateo M wrong, you can use same pins as on Nano board, 11, 12, 13 and 7,8 or whatever pins you decide to use as CE and CSN pins. Nano, Uno and Pro Mini board have the same pins for SPI.
@@daliborbaricevic685 he was right. the wiring diagram is incorrect.
If anyone gets blank output in serial monitor......then You must check the connection..... actually pin 11,12,13 in the diagram is incorrect.......13 is the opposite side...... Better see the pins and connect it yourself.......
Anyway great video...
Am sorry but there is a mistake in the way the Arduino nano is hoocked up for SPI (the 3 green wires are wrong and the pin 13 is used). Great otherwise :)
Excellent point. Hardware SPI is really important for this module due to the high bandwidth if you want low latency
@@WungoBungo Quick question. Do you know roughly what the latency is?
@Allan Thiago I hacked her account also and she wants to meet up with me again.
just something I noticed, in the video your comment when you created the radio object you have it read as CSN, CE but on your website its the other way around CE, CSN
Thank you so much, you are the one who's sketch and connection works. But I still have a question. Why nothing works when I change power supply. It works only from 3.3 v Arduino output. Other power supplies (batteries, MB-102...) Don't provide possibility to work properly for nrf24l01
Great Video, the only one I've seen so far that has Send and Receive functions on both ends.
Glad you found it useful. Cheers!
@@HowToMechatronics On another video of yours, you used a breadboard to assist soldering headers to Arduino's...Great Idea, did it earlier today.
Hello, Youve connected CSN to 8 and CE to 7 but in code you mentioned otherwise? why?
Best intro to wireless communication! Thanks!
when i try to recreate the first example. the code sends a message but in the serial port on the reciever nothing is recived
any idea to why
Hey dude codes for printing hello world for both transmitter and receiver are compiling without error but not working
See my comments above. (Sort by date.)
dadigitechman Pin 8 is the only optional pin.
@@dadigitechman You don't have to use pins 7 and 8. I used pins 9 and 10 and it worked fine but you have to define the pins you are using in the code. The code here defines pins 7 and 8 for CE and CSN so you need to modify the code. This does work.
@@dadigitechman It's reasonably straight forward. The only line of code you have to change is this one "RF24 radio(7, 8); // CE, CSN" just type in (9,10) if you plan on using those pins on the arduino. I agree that using pins 9 and 10 for CE and CSN makes the overall wiring much neater. Follow the link in the video description to the tutorial for the full code as it is good and all of that code works. You may need to modify the code for your own application depending on what your project is and what you are trying to achieve but that is up to you to do some research and play around to figure out what part of the code you need to modify. It is very possible that your wireless modules are faulty and I have seen faulty ones from China in the past. If you follow the tutorial in this video exactly right and it doesn't work then it may be your modules.
@@dadigitechman Yeah do a video and I will watch it and see if I can help.
Really easy to understand and helpful!!Thank you! It's the first video of coding in arduino that I understand
Glad it helped!
Great experience, I used 2 NANOs. Comments about pin 13 helpful ... worked first time. Thank you !
Thank you for your tutirial it was very good as I am setting up an RC module now, but having trouble with noise as I can't read what is xmitted? baud rates are set to 9600 and I still have not found the problem?
Rick
Excellent! Thanks. And also, thanks for not drowning your videos with 5h1t 'music'! Your voice is important and it comes across well! 👍
Glad you like it!
IDK if this is just for me but contrary to the code in the video @2:55, the CE pin should go on 7 and the CSN pin should go on 8.
Hey,can I connect nrf24 with mobile by nrf connect??
OUTSTANDING VIDEO! Thank you very much. Not only did this completely explain the subject matter, I enjoyed the precise articulation which compresses a rather large amount of information into an efficient time line.
I did have one question. Instead of only 6 receivers, I need to expand this. So, would you have ideas to share for, say, adding a second group of 4 receivers? One group of 6 and another set of 4? If you have a blog, I'd be happy to continue this conversation in that manner. Thanks.
Hi, how would the code be if i don't wan´t the servos to return if the joystick does, I mean I want the servos to stop if the Joystick does.
To make it easy for Newbies Note in i.e Getting Started Program find code RF24 radio(7,8); alter to reflex say RF24 radio(9,10); //CE, CSN Please note CSN on Mega should be on 53 if not then add pinMode(53,OUTPUT); First line in void setup()........ Due does not mind as it expects pin 4,10,53 to be CSN. Uno only pin 10 for CSN This then conforms to ARDUINO SPI Library
MY Colour Coding and pin out for nRF24L01
Pin 1 Brown 0v Ground Pin 2 Red +V 3.3v
Pin 3 White CE Pin 4 Black CSN
Pin 5 Purple SCK Pin 6 Grey MOSI
Pin 7 Blue MISC Pin 8 Orange IRQ
Uno Colour Mega Due Due Header SPI
9 Any pin White 9 Any pin 9 Any pin CE
10 Black 53 4,10,53 CSN/SS
11 Grey 51 51 ISP-4 MOSC
12 Blue 50 50 ISP-1 MISO
13 Purple 52 52 ISP-3 SCK
I'm confused, on the picture of Nano you have connected ports 10, 11, 12 to nrf2401, but you have written in the script ports 11,12, 13. I don't know what to use, and my experiment doesn't work! What could I do next?
Sir please make lecture on weight sensor in detail . Your video lecture is really nice and informative .
Hello, thx for this tutorial. I have a problem, I uploaded the exact same code on my Arduino Mega and my Uno, but it's not working. I use my mega as a recepter and It justs write some squares and '?'. Have you got any idea ?
same i got last night . any solution ?
You should check a baud rate in serial monitor which you have coded, may be that can help.
@@rvlad13 That is exactly the problem. The baud rate is not matched to the clock speed. because UART has no clock (its asynchronous).
me too i changed the baud rate and stil the same problem
I'm 4 years late on this but I was getting something very similar. Try swapping the 7/8 pins for the CSN/CE wires going to the nRF24L01. If you look, at 2:30 and 2:40 he has the pins reversed between the explanation/code.
In this project, only one input is allow at once, so if I want to make it read and write at the same time, I need to use to pair of NRF24L01, right?
lol, i am using arduino and RF transceivers for the first time, and was thinking i would have to do some crazy 8 bit encoding and decoding between the different duinos, this is so much simpler xD
Thanks, with your very informative videos I am learning a lot of things. And everything I build with arduino following your tutorials works well. Thanks
Thanks, I'm glad to hear it!
i did everything you said and showed in the video but i can't manage to do it i only receive weird stuf I also changed the connections to what you put under the drawing instead of copying the drawing.
Thank you for the video! simple and easy:) GUYS ALL OF YOU WHO CANT GET IT TO WORK! I spent days and night to bring it to life, I tried all projects and all examples but haven't succed. The problem was i had to add a capacitor between the gnd and 3.3v pins on rf24, it solved the problem:) and try to set pa level on max. U need to add 1-100 microF capacitor.
i cant get it working, what is the reason to add the capacitor?
@harithalau1970 reduce voltage spikes wich could interfere with the radio signals and making it unreliable
Can I send and receive 2 push buttons?
Good video! Very thorough and helpful.
I think if you use signal modulation rather than simply the channels to pair transmissions with receivers you can probably have many more than 125 devices within range of each other
Dejan Nedelkovski your sketch for the nano says SCK is connected to D10 while the list says D13. Just in case you diddent notice ;)
Could you explain how we would control multiple servos with the nrf24 using your code because the other tutorials on RUclips don't explain it well
WoW HOW EASILY U EXPLAINED THE NRF24l01 THANKS A LOT
Thanks for a great tutorial. You cleared up a lot of stuff I was confused about.
Nice work! I am sitting here trying to think how I can implement this in some of my projects.
bro i m getting question mark in serial monitor while using nrf24l01 and Arduino uno
Check baud rate and try with different boards...
Thank you my NRF modules are working perfectly with 2 arduino nanos also you missed pin 13
I've got in the serial port monitor message like this but upturned question mark -->>> "????????????????????" What is the problem? I've done everything like in this video :O
Same problem bro
Same here
Any solution
Sprawdziłeś czy ten cały numerek który jest w Serial.begin zgadza się z tym na dole monitora szeregowego który otworzyłeś?
@@woogieboogie9803 English
great video. I am just begginer and I did not manage to make this project. can anyone tell me what pins i should replace when using arduino uno in the place of leonardo. thanks.
I was wondering if you used the Mega Arduino for a particular reason like it being more powerful , I have two pro minis I am going to experiment with and was also wondering if just wiring them identically shouldl work for them communicating?
No. The Arduino Mega will not supply more power and will not increase range. It will work identically with Pro Minis as long as you power the Pro Minis with a decent power supply.
which simulator do you use?
Hello. Thanks for the excellent video but I am puzzled by your Tx code in the bi-directional example. It seems that the loop will freeze if the receiver does not send any message. What's the reason for the line of code, "while (!radio.available());" ??????
Hi may I ask you,the transmitter can get signal under deep water?
Nice short and to the point.
2:28 Is the pin label for UNO/Nano wrong? Wiring doesn't match the label.
yes I noticed it too, there is this error even on the website
Brilliant video. Best explanation yet on how to code for nrf24L01. Many, many thanks for posting this tutorial.
Very good video, but I am having "Noise" problems, and I saw others are having similar problems. Any suggestions or improvements that you would recommend?
You are gift of God sir 🙏
I tried the tutorial to display 'hello world' on the receiver module but nothing happens, can you suggest a fix? There was no error and the library was correctly downloaded, but nothing is happening.
Try swapping your wires for the 7/8 pins (CSN and CE), or swap the numbers in the code when you create the radio. If you notice, at 2:30 and 2:40 he has the pins reversed between the explanation and the code. Just a small mistake in the video I believe, I was getting the same thing until I figured it out.
@@EnvoyOfFabulousness Thanks! I'll try it out.
is there a in depth explanation on the breadboard wiring?
Hi, could you make a Video about how to use the Nrf24l01 with a button and a Led at the recever.
did he ever make one?
Do you need the mega or is the regular Arduino R3 board fine?
Can i use ' switch case ' which is controlled by push button.. To change the joystick mode for controlling dc motor and servo motor?
are there any cons of using the bidirectional communication? like shorter range or maybe delay while communicating?
Can I also do this using NRF24L01+LA/LNA?
Maybe yes , because there is another chip that actually works for amplification of the signal nothing fance. So, you can.
Congratulations! excellent project. It would be great if you make a wireless project using Xbee modules. I know these devices are expensive, however, you can consider this project for the future.
Thanks a good video for me to learn. btw how to pairing the device privately? if not using "00001" but a random generated string does it works?
I'm using the same code as yours and same connections, but still not working, nothing appears on the serial monitor of the receiver, what could be the problem? I'm using UNO as transmitter and NANO as receiver.
I feel like the code"!radio.available()" might be the problem. Make it "radio.available()"
Hi sir, at 7:10mins, the radio reading is angleV but the radio write is angleValue, does it still receive the angle? Ty
ok ty
How to use SPI and Servo lib together on the Uno? From my understanding by using Servo lib pin 9 and 10 are not usable anymore because of the timer used by the lib. At the same time pin 10 ist the CS.
Serial monitor show random output at reciver end.....what should I do....plzz help me out
nice video! is there a way to turn on/off a led remotely when the temperature reaches a certain level (provided a temp. probe is attached to the arduino)?
i want to have several arduinos communicating in parallel. e.g. a can send a message to b and c, which receive the message at the time time, and b can send a message to a and c and they receive at the same time, etc. Do you think this type of architecture is the best way to do this?
brother i write the code as you put but the message (hello..) does not appear
Check the wiring. The scetch that he showed is wrong but the description is rigth.
Interesting videos, thank you. The first sketch worked for me. I used the Nano IPSP rather than the numbered SPI pins. For the second sketch, I also used IPSP with identical hookup of the wires for the receiver/transmitter. Also, I used a potentiometer instead of a joystick. I ran the servo side off battery and the led side off computer. I verified multiple times that wiring was correct and that send and receive channels were appropriately reversed on the 2 Nanos. Nothing I could do succeeded in making the second sketch run. Presumably the error is mine and not in the sketch, but I cannot find it. It is tedious to do the wiring and then have the project fail, but maybe I've overlooked something obvious and will eventually find it.
hey you might not remember but how did you get this working? it keeps returning false for radio.available so nothing in the if statement runs.
Fixed it my connections were wrong hehehe
question sir,
is it perhaps the data will sent without lost if I use the delay 50 us using delay() or micros() function?
Why doesn’t my sketch upload to my arduino uno it says “can not compile the sketch to arduino uno” and every project that includes nrf radio module does the same error while compile the sketch
i have a couple of Qs
1) can it reach 1km?
2) is both connected with any laptop?
3)is it wireless?
please answer these Q sir
Buenas tardes,saludos de Perú, en la figura del arduino nano no conectas el pin 13 como indicas en las tablas de conexión, por que ?
Simplemente se equivocó en la conexión, cuando conectés esos 3 pines (SPI), hacelo tomando de referencia la descripción que viene bajo la imagen del Nano
Hii Dejan!! Thanks for the tutorial. Had a small doubt .. like you said the nrf has 125 channels and if I am not wrong each channel can have 6 address pipes. So the lib which you have used in this tutorial has any function for setting the channel freq? What if I want to connect 10 devices on 10 diff freq and all the 6 address pipes in each channel/ freq have to be dedicated to that specific device.. Is it possible??
hello, thank you very much for this tutorial, I connected everything as in the diagram, it works, there is communication, unfortunately the SG90 servo dances, vibrates constantly, there is no stable operation, there are interferences, I added 10uF capacitors, where do these interferences come from, why is this happening?
Hi, I would like to know if the NRF24L01 with antenna can work without the small power module (Adapter plate board)?
Great tutorial. The simple sketch in the beginning help me a lot.
One question though. The line const byte address[6], is the 6 referring to the pipe being used. Nobody seems to explain what the number in brackets is referring to.
Thanks again for the great tutorial. Jeff
Thanks for the fast response. That makes sense.
Can I use ht12e to encode at transmitter side and Arduino to decode at receiver side ? if yes please explain me how ☺
My nrf modules don't want to communicate with each other, I tried your test code as well as bidirectional communication code, they upload successfully to board but nothing happens. I tried changing nrf modules and my Arduino but still no any output in serial monitor as well as servo outputs
You need to get an nrf24l01 breakout board and wire the arduino 5v vcc output to the breakout board input vcc
@@arhamthowheed9471 thank you very much for your reply but I have soldered them directly on board and I am using a Arduino mega board which at 50ma output current at 3.3v and I am also using a 220uf capicitor directly on nrf board. After fraustations I quit with loss of time and money. Any help will be appreciated.
@@AmateurInventor Ok all you need is 2 arduino boars, 2 nrf24l01 modules without a capacitor soldered on them and 2 breakout boards, assuming you already have 2 arduinos, 2 nrf24l01 modules and breakout boards should cost you about £5, when wiring them wire teh 5v pin on the arduino the the nrf24l01 breakout board input vcc. if you need more help add me on discord___> snakeviper123#2297
@@arhamthowheed9471 But unfortunately the place where I live, I can't import these from any international sellers like Amazon or eBay. Please suggest me another way.
ótimo vídeo !!! você tem o esquema de pinagem pra utilizar o arduino uno r3 no lugar do arduino nano
If this code could work without "
nRF24L01.h" why would you include it?
Thank you! The bilateral communication thing is very useful!
Very good!!! Congratulations by explanation!!!
Wait so if I have to transceivers do they HAVE to both be set as a transmitter and a receiver or can they change their tasks whille running? I want to make a simple wireless morse beeper so the beeper needs to be able to both receive and transmit data.
Can you put an altrasonic sensor instead of the joy stick.... With using servo motor
How many receivers can receive the same signal through a single common transmitter pipe address..?
Pls clarify the doubt...
could you please explain why only 11 12 13 pins are used for miso mosi and sck?
arduino is designed like that.
thank you have helped me with the nrf24L01 it was causing me a headache.
don't know why but I'm receiving just "
⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮" signs :(