#73 nRF24L01 Send (and receive) data with your Arduino!

  Рет қаралды 203,737

Ralph S Bacon

Ralph S Bacon

Күн бұрын

Пікірлер: 761
@wolenyo
@wolenyo 8 ай бұрын
Oooh, Mr. Ralph, THANKS SO MUCH!! I've watched a lot of tutorials on YT and not a single one has given me code that works, until I found your video. You've now erased hours and hours of frustration that I've accumulated from my other attempts. Great job with this video, Mr. Ralph! I will definitely check out your other videos. Excellent teaching style. Thanks again!!
@RalphBacon
@RalphBacon 8 ай бұрын
Glad it helped! And you're Welcome! Glad you got it working.
@agahgokdag1845
@agahgokdag1845 Ай бұрын
While I was thinking about how to write my feelings, I came across your comment. I thank you too. Ralph gave such a detailed code that it contained exactly the information I was looking for.Thank you Ralph...
@oversizedsloth3748
@oversizedsloth3748 5 жыл бұрын
Thank you so much for this video! My class really appreciates the content you put out (our teacher showed us this video) and we are looking forward to your future videos.
@RalphBacon
@RalphBacon 5 жыл бұрын
I'm glad it helped you and your classmates, GingerSkips! And thanks to your teacher for pointing you to this channel, great to have you along for the Arduinite journey. Thanks for posting.
@Vhbaske
@Vhbaske 4 жыл бұрын
I tried during a whole month to have some success with the nRF2401 modules, I almost abandoned Arduino programming for my dissilutionment, until, mr. Ralph Bacon appeared in my KZbin browsing. The first moment, the sketches worked, and he explained here why you make the regular mistakes we make with these modules! Thanks, Mr. Bacon, and may you have good health to keep teaching us as you do.
@RalphBacon
@RalphBacon 4 жыл бұрын
I'm very glad it helped you, Pedro, thanks for letting me know of your success!
@randallknox2141
@randallknox2141 7 жыл бұрын
Ralph--great video! My grandson and I watched it, put together a couple of NRF24L01 circuits, put a send sketch on his laptop and the receive sketch on my laptop and it worked flawlessly the first time. We really appreciate your help. Thanks, Randy
@RalphBacon
@RalphBacon 7 жыл бұрын
Hello Arduinite! I'm currently on vacation 5,000 miles away from home so I'll have to be brief with these comments until my return, mid-July. That's great new Randall, and I'm pleased you're sharing the fun with the younger generation too. Brilliant!
@fasihullahsaleem
@fasihullahsaleem 6 ай бұрын
Great Sir, I have watched so much videos and non of them worked for me. I thought it maybe due to the noise but your single code worked for me and my wasted days are paid off. Thank You Sir.
@RalphBacon
@RalphBacon 6 ай бұрын
Glad it helped!
@topquark22
@topquark22 Жыл бұрын
For the integrated Nano3/nRF24L01 modules, you need to use CE=10 and CSN=9. This is opposite from what's given in all online examples I've seen. It caused me endless confusion until I followed the traces on the board to the pinout of the chip! People need to get in this habit and stop posting confusing information!
@RalphBacon
@RalphBacon Жыл бұрын
You know how it is, Cut & Paste from one example to another.
@agahgokdag1845
@agahgokdag1845 Ай бұрын
If changing legs 10 and 9 to 7 and 8 causes "infinite confusion", then first "the head needs to be reset"...
@eljefe400
@eljefe400 7 жыл бұрын
there are dozens of these nrf tutorials that I have looked through (and tested many). This was the one that made it all work. Excellent Job . thank you so much for sharing. Well done!
@RalphBacon
@RalphBacon 7 жыл бұрын
Wow! that's great news, Jeffrey, although I cannot take all the credit. Albert Einstein famously said "Make it as simple as possible but no simpler". So I do. Once Arduinites have grasped the simplest example they can build on that all by themselves, usually. So thanks for endorsing my "simple" approach (my brain can't handle complex anyway!), appreciated.
@whitefields5595
@whitefields5595 6 жыл бұрын
Transmission of multiple variables As a give-back to the channel, here is the code to use if you want to transmit multiple variables. It uses structures in C. Note each variable can be any data type and all can be different (int, float, unsigned long). However the max size of the whole package is 32 bytes = 256 bits TRANSMITTER ... // Top of file, in declarations, before SetUp typedef struct{ //declare the structure for transmission int A0; // 16 bits float Temp; // 32 bits unsigned long Heartbeat; // 32 bits // add next one(s) here, but keep total struct package size to 256 bits (= 32 bytes) } xfer; // name of the structure above xfer TXpackage; // TXpackage is a type of structure xfer void loop(){ // read the sensors and put the elements into the structure TXpackage.A0 = analogRead(A0); TXpackage.Temp = sensors.getTempCByIndex(0); // Read Dallas18B20 on OneWire TXpackage.Heartbeat = millis()/1000; //used as a heartbeat to confirm transmission // add the next one(s) here radio.write(&TXpackage, sizeof(TXpackage)); --------------------------------------------------------------------------------------------------------------------------------------- RECEIVER ... // Top of file, in declarations, before SetUp typedef struct{ //echo the structure so variables can be received in the same order int A0; float Temp; unsigned long Heartbeat; } xfer; xfer TXpackage; radio.read(&TXpackage, sizeof(TXpackage));
@RalphBacon
@RalphBacon 6 жыл бұрын
Excellent contribution, whitefields5595, very useful and easy to follow using a struct, an underused data structure that is so easy to use. Thanks for contributing this.
@jzmartin11
@jzmartin11 3 жыл бұрын
Makes life a lot easier, thanks
@agahgokdag1845
@agahgokdag1845 Ай бұрын
Thank you Sir,super solution for transferring body temperature and heart rate...
@agahgokdag1845
@agahgokdag1845 Ай бұрын
@@RalphBacon What does A0 do?I don't understand.
@whitefields5595
@whitefields5595 Ай бұрын
@@agahgokdag1845 Did I really do this 6 years ago? Its like reading one's school books! I no longer 'do' microcontrollers and have not coded anything for 4 years, but here goes .... A0 is an arbitrary definition of a data structure that then calls analog port A0. I just used the port name as the structure name which maybe confused you? It is expecting a 16 bit integer value arising from reading A0. Sorry if I'm using the wrong words as I've forgotten a lot of the parlance. RALPH. I hope my rants about you and 240V AC means you're still with us. All the best - PeterC
@tonydonnelly
@tonydonnelly 7 жыл бұрын
I just received my NRF24L01 modules that I ordered off of ebay 4 months ago, so I'm quite anxious to give them a try. Your tutorial is a fantastic jumping off point. Thanks!
@RalphBacon
@RalphBacon 7 жыл бұрын
Yes, indeed, Tony, just follow my video *exactly* and you will have no issues. And if you have not yet bought the (very cheap) adapter plates for these modules do so *now* as it sorts out all the power issues that people stumble over! Great to hear from you.
@BEGRProductions
@BEGRProductions 6 жыл бұрын
**READ** Ok, to try to save everyone the headache I had when trying to replicate this tutorial, follow these steps. 1. DELETE all other RF24 libraries you have on your computer, they're not all the same even if they have the same name and seem to have similar functions. 2. Down Ralphs's folder (includes a wiring schematic, sketches shown in the video, and the library) provided in his description. 3. Add RF24 library from downloaded folder in step 2 4. Open Ralph's sketches and see if they're working as shown in the video. If they are, then tweak to fit your own design. I spent a lot of time trying to make this example work on a different library (same name) I had installed on my computer. It almost worked, but the data got stuck sending it back to the master. Thank you so much Ralph for helping with this excellent, concise and organized tutorial.
@RalphBacon
@RalphBacon 6 жыл бұрын
Thanks for posting this, it will sure help everyone who tries to follow this demo, that's for sure.
@Taran72
@Taran72 6 жыл бұрын
It's definitely helping me! I couldn't get it to work even after I soldered a 10uF capacitor to the NRF module. :) I will follow your instructions and hopefully I'll be ok. :)
@Taran72
@Taran72 6 жыл бұрын
I just did that and it doesn't work: I'm not quite sure why. I tried another code and that other one works. Could it be something about the module I'm using? Maybe it's a cheap brand and it may not be reliable? Is there a way that I can do a step by step check?
@alexliu694
@alexliu694 5 жыл бұрын
@@Taran72 BIG OOF
@Taran72
@Taran72 5 жыл бұрын
@@alexliu694 : I'm learning....just asking a question. :) By the way, since I added this comment I managed to resolve all the issues I had. :)
@MCGearhead
@MCGearhead 3 жыл бұрын
Fantastic tutorial! Very easy to follow and the sketches loaded up and ran without any issues. Thank you!
@RalphBacon
@RalphBacon 3 жыл бұрын
Great news!
@minoz55
@minoz55 5 жыл бұрын
Thank you! Your video helped me to sort it all out. The tip to open two separate instances of the IDE: Wow!
@RalphBacon
@RalphBacon 5 жыл бұрын
And I'm very glad about that, Thomas, if this channel helps in any way then I have succeeded. Thanks so much for posting.
@jeffbeck6501
@jeffbeck6501 6 жыл бұрын
AFTER 1,000,000 TRIES, WITH 100,000 PIECES OF CODE, THIS IS THE FIRST ONE THAT WORKED. THANKS. I have never had a harder time with a piece of code and devices. How ridiculous this took so long. It must have been just a combination of many things. I can now finally do stuff. Great tutorial. Subscribed. Thumbs up. Thanks.
@RalphBacon
@RalphBacon 6 жыл бұрын
I can feel your relief from here, Jeff, and it is so rewarding that I can help people get their projects off the ground. Thank you so much for posting this, it's feedback like this that keeps me going! One caveat: are you using the plug-in adapter boards for this device? If not, do yourself a huge favour and get them, they are really cheap (even on Amazon) and stop any power supply-related problems down the line. Thanks again for posting, great to hear from you.
@jeffbeck6501
@jeffbeck6501 6 жыл бұрын
Absolutely I am using them, thanks. I tried one time for 3 weeks using the high powered versions and I could never even get them working. This time I bought the normal versions, plus the adapters, plus your code, and finally it worked. Now that I have this working, I will go back and test the high powered versions. You do a really great job with your videos. It is the clear thinking and clear explanations that people appreciate. I need to check out some of your other projects. I see one there with EEPROM basics. That was another hurdle I had to get over as well. None of this stuff is simple when you combine all the hardware, software, and gotchas. I don't have a youtube channel but I do have some really cool projects related to some of your stuff. I may send you some links someday so you can check them out. ...because most people I know are just not interested. They just don't get it.
@RalphBacon
@RalphBacon 6 жыл бұрын
Some people "just don't get it" in the same way that I just don't get sport. Really. I just don't care about football, rugby, tennis, golf... the list goes on. I probably watch about 5 minutes of sport a year on the TV. I just don't get it. People are different I guess, thank goodness, imagine if there were more of me! But keep going, Jeff, because you *do* get it.
@tbddevelops
@tbddevelops 7 жыл бұрын
Really clear tutorial and has encouraged me to pick these back out of my electronics bin. Thank you.
@RalphBacon
@RalphBacon 7 жыл бұрын
Glad it has inspired you to re-try these devices, Terry, they're pretty easy to set up (usually!). Thanks for posting, good to hear from you.
@airthrow
@airthrow 7 жыл бұрын
By far the best NRF24L01 tutorial on YT, can't believe how frustrating this can be. Hope I am up and running tonight with your assistance, thanks!
@RalphBacon
@RalphBacon 7 жыл бұрын
Let's hope you're successful, do let us know!
@airthrow
@airthrow 7 жыл бұрын
I've got the library installed fine and the transmitter code uploads fine to my Uno! However, the code fails to upload to my pro micro (other example sketches and ones I have written upload to this pro micro fine, but I just bought it)- is the code incompatible with a Pro Micro? Because I was have space constraints with the transmitting device. Thanks for the help, I feel confident with some fiddling I will finally get it!
@RalphBacon
@RalphBacon 7 жыл бұрын
If you have selected the correct board / CPU / speed etc then it should upload. I choose the Leonardo board for my Pro Micro (from Sparkfun) and my computer even says these on the COM port allocation - check there too, see how it identifies itself. Take care with this board, as it's easy to brick it (I did a video on that too). TBH I'd try a Mega if you can't get this working, you can get one for about £5 / $6.50 from the Far East these days, which will sort out your memory constraints.
@nolihernandez
@nolihernandez 4 жыл бұрын
nothing compares to British education - great learning resource that actually works mate! thanks!
@RalphBacon
@RalphBacon 4 жыл бұрын
Glad it helped, Noli, thanks for posting.
@miniminerx
@miniminerx 6 жыл бұрын
I love your videos! The best I have found. Keep it up! I also like how you keep on uploading too.
@RalphBacon
@RalphBacon 6 жыл бұрын
You are most welcome MiniminerX, I'm glad you like the videos. Nice to hear from you.
@billglass5160
@billglass5160 2 жыл бұрын
Channel 124 is a good one for me here in Grenoble, France. Thanks for the tip, Ralph!!!
@RalphBacon
@RalphBacon 2 жыл бұрын
Fantastic! Well away from microwave ovens!
@billglass5160
@billglass5160 2 жыл бұрын
@@RalphBacon Default channel gave short range (2 meters). I live in a WIFI jungle. Channel 124, 2 brick walls, 2nd floor, and my birdnest breadboard yields 0/100 CRC errors. Waiting for LNA with antenna to top this score.
@markhill8389
@markhill8389 6 жыл бұрын
Thank you so much for explaining this so clearly, i even learned how to properly add to library. You have made my day.
@RalphBacon
@RalphBacon 6 жыл бұрын
That's great news, Mark, it's not often I get to make someone's day. You may have seen the humorous quote: "I can only please one person per day. Today is not your day. Tomorrow doesn't look good either." How WRONG that is, as you have proved! Seriously, I appreciate the post and it's great to hear from you.
@markhill8389
@markhill8389 6 жыл бұрын
Ralph S Bacon Keep up the good work. I'm definitely guided by your footsteps for this rf project.
@BOBANDERSON5150
@BOBANDERSON5150 7 жыл бұрын
Thank you for explaining everything down to the smallest details. Made working with these modules so much easier. Getting your example up and running made first, helped me see what goes on in the software. Thanks again, Bob. Subscribed to your channel.
@RalphBacon
@RalphBacon 7 жыл бұрын
Glad you liked it Bob, and thanks so much for subscribing too. I do like these nRF24L01+ modules, they are very powerful, especially the ones that have an external antenna (not needed for most home use unless you live in a castle). Great to hear from you.
@stevea3717
@stevea3717 7 жыл бұрын
Hello Ralph, thank you for a great tutorial .It worked straight away for me . this is an excellent platform for newbies to start from ,very simple and easy to understand .This can be the basis of many projects. Well Done! Keep those videos coming.
@RalphBacon
@RalphBacon 7 жыл бұрын
Glad you liked the video Steve. +Raad Yacu (see below) reminds us all that the data length is limited to 32 bytes at a time. I will have to look at the libraries for this device to see how they get around that (probably multiple transmits). Thanks for posting!
@tino8015
@tino8015 3 жыл бұрын
Such a good video, I was about to quit trying to program these antennas, but this video saved me, thanks.
@RalphBacon
@RalphBacon 3 жыл бұрын
Great to hear! They are very good modules (but be aware - and beware - that there are fakes out there, always get original Nordic devices).
@tino8015
@tino8015 3 жыл бұрын
@@RalphBacon thanks for the answer, and i'm sad to announce that mines might be fake cause I tryed every tutorial out there, copy and pasted the code. But no signal reveived or sent. I will buy some new ones thanks for telling me. Btw I got the ones sold by WayinTop, they are the only on amazon( the ones with the antenna).
@tonybell1597
@tonybell1597 7 жыл бұрын
Ralph, thank you soooo much for this video, found your channel this weekend...... have been wrestling with these little blighters for for ages, couldn't get anything working, this has re-kindled a project idea I have had a for a while... thanks.... keep up the good work!
@RalphBacon
@RalphBacon 7 жыл бұрын
Welcome Tony! Yes, once you have a demo it all becomes very simple, does it not? I'm hoping your interest extends beyond nRF24's and into all things Arduino, in which you have definitely found a channel for you! Enjoy (and subscribe if you think this is for you). Good to hear from you.
@markchurch8037
@markchurch8037 7 жыл бұрын
I found this tutorial very clear to understand well explained in layman's terms for us beginners i look forward to viewing more of your tutorials in the near future, Thank you very much Ralph . Mark
@RalphBacon
@RalphBacon 7 жыл бұрын
Thanks for your kind words, Mark, I'm very glad you found it clear and easy to understand - especially for beginners. That is the whole point of my KZbin channel. Great to hear from you.
@1larrydom1
@1larrydom1 7 жыл бұрын
Ralph, just subscribed after watching this video. I am working on getting analog sensor information back to an Arduino in the sun room that runs my irrigation. I didn't want to lay cable to the sensors to cover the 30 feet or so, so I ordered 2 of these to do the trick. Your video helped a great deal as my garden irrigation project is my first one! Just have to now learn how to send the data from the sensors back to the main Arduino. Thank you again for the well thought out presentation.
@RalphBacon
@RalphBacon 7 жыл бұрын
Hello Arduinite! I'm currently on vacation 5,000 miles away from home so I'll have to be brief with these comments until my return, mid-July. I'm so pleased it helped you, Lawrence (Larry?), really I am. Remember that although I have called one a transmitter and one the receiver, they BOTH send data to each other in my demo, it's just the transmitter that initiates the whole process.
@1larrydom1
@1larrydom1 7 жыл бұрын
Ralph - I hope you enjoy holiday, and thanks for the reply. I am awaiting the modules to regulate the 5v to ease the hookup. I certainly do remember that both units talk to each other. Once the modules come, I will start trying to get the soil moisture sensor and the rain sensor to transmit back to the main unit. One idea I had to prevent, or at least slow the corrosion of these sensors, was to power them on only when I need a reading, about once every half hour. Lots to figure out still!! Larry
@RalphBacon
@RalphBacon 7 жыл бұрын
Yes, exactly what I do for my rain sensor. Power it up, take a reading, power off. No noticeable corrosion after several weeks. But mine are not buried in damp soil so your mileage may differ!
@asaadiftikhar6564
@asaadiftikhar6564 5 жыл бұрын
This is the only useful tutorial for beginners on KZbin. Bless you man!
@RalphBacon
@RalphBacon 5 жыл бұрын
You are most welcome Asaad Iftikhar, I'm glad you like the video. Nice to hear from you.
@shiister
@shiister 7 жыл бұрын
Thank you for this video. I am using this to confirm all the NRF24L01 I ordered are functioning.
@RalphBacon
@RalphBacon 7 жыл бұрын
Yes, indeed, shiister, this would be a very good sketch to prove that the units work as expected. Thanks for suggesting this and for posting.
@rosswaring2835
@rosswaring2835 3 жыл бұрын
This video was super helpful in getting my self balancing robot and remote controller to work. I would have spend days sorting it out otherwise! Thanks Ralph!
@RalphBacon
@RalphBacon 3 жыл бұрын
Glad it helped!
@willofirony
@willofirony 7 жыл бұрын
Excellent Video, Ralph. The R24 looks to be a Godsend. They appear to have encapsulated a LOT of admin and distilled the developers contribution to be no more complicated than using Serial. As to dupont cables: positively the worst plasticine I have ever tried to use. Keep up the good work Ralph. Brilliant channel!
@RalphBacon
@RalphBacon 7 жыл бұрын
You're too kind Michael (but I'll take all the praise I can get)! Yes, I like these little RF24 units. I was going to use them to monitor my water tanks et al in the attic but I think I might use an ethernet enabled Arduino instead (my next video, oops, spoiler alert). BTW I like dupont cables (I have dozens, all lengths and configurations) but if you ever strip the insulation hoping to use them as real cables to wire stuff up with, then -- don't! They only have about 6 strands in them! OK for breadboard lash-ups but no good for real project work. Thanks for posting, good to hear from you.
@willofirony
@willofirony 7 жыл бұрын
Thanks for the heads up on stripping Dupont wiring. I have found similar results when trying to strip the cables that come with "wall wart" power supplies. It is almost as if the insulation is just sprayed on to copper strands as fine as human hair. Your thoughts on using ethernet instead of the RF24 units are interesting. I was thinking of using the RF24s in place of ESP2866 wifi units.; having the various nodes communicating with a base which is also in circuit with just one ESP8266. The base would thus handle the IOT & time-of-day admin for all the nodes; including buffering node data, should the WiFi router (or the ISP network) go down temporarily. Do you suspect the reliability of a network of RF24s?
@RalphBacon
@RalphBacon 7 жыл бұрын
I don't suspect the reliability of a network of RF24s but you can only use about six, I think, without creating a mesh. But the same chap who wrote the RF24 library I used also has a library for that. I suspect it's a bit more work for you but you can read up about and then decide. I like the idea though, of a network all controlled by an ESP8266 hub. Your house will be truly part of the IoT movement!
@robertpatton6700
@robertpatton6700 7 жыл бұрын
The video helped, I had stayed away from the nRF24L01 as they seemed to complicated. Thanks I plan to order some and give it a try.
@RalphBacon
@RalphBacon 7 жыл бұрын
That's great news Robert! Let's face it, if you replicate exactly what I had in the video (with or without the adapter although I recommend those too, especially for anything other than low power usage) then it's going to work. So you have a working prototype that you can then enhance it to suit. Glad you feel inspired, thanks for posting.
@agahgokdag1845
@agahgokdag1845 Ай бұрын
Ömrün uzun olsun.Gülen yüzün hiç solmasın.Dedem derdi ki "Bilgi,bölüşüldükçe büyüyen bir HAZİNEDiR".Sonsuz teşekkürler emeğin için...Translate >>May your life be long. May your smiling face never fade. My grandfather used to say, "Knowledge is a TREASURE that grows when shared." Thank you infinitely for your efforts...
@RalphBacon
@RalphBacon Ай бұрын
Thank you, very nice sentiment! 👍
@Ilikeridin
@Ilikeridin 5 жыл бұрын
Thank you for the tutorial. I’ve watched a bunch but this is the first which I’ve followed. Worked a treat. The only error which I ran into was I used an external power source and forgot to ground a board. Obviously worked straight away once I realised the problem. Again, thank you.
@RalphBacon
@RalphBacon 5 жыл бұрын
Glad it worked, Chris, I hope you're using the adapter boards?!? Cheap and save a lot of heartache.
@Ilikeridin
@Ilikeridin 5 жыл бұрын
Ralph S Bacon I am not. Not been doing this long but a lot of parcels are starting to arrive from China ha. I’ve ordered one today. Couldn’t find one for a Pro Mini, so will make something similar on perf board. Cheers
@RalphBacon
@RalphBacon 5 жыл бұрын
I was referring to the adapter boards for the nRF24L01+ modules. If you use them bare (like I did in my video, I know, bad example) you have to wire them "from underneath", easy to get wires crossed (don't ask me how I know this) and the power for the 3v3 module cannot be successfully supplied by the 3v3 pin from the Arduino unless you're using the lowest power possible (like my demo). Once I got the adapter boards it was *so* much easier to wire up and all power issues disappeared because you supply the adapter board with 5v not 3v3 and the Arduino has enough 5v current to go around!
@Ilikeridin
@Ilikeridin 5 жыл бұрын
Ralph S Bacon I did use the adapter boards but I want to use them within a project with everything powered by 3.3V. So I was considering not using the adapters. So I’m glad you mentioned that, as it probably wouldn’t work. I’ll have to supply the Pro Mini with 5V and take a supply from the source for the nRF24L01+
@HaseebAdnan0
@HaseebAdnan0 10 ай бұрын
So i commented 2 days and some hours ago that PA+LNA modules were not working. What i had done was i had plugged the antenna into a breadboard to kind of understand better(although it was harder to understand), then the breadboard forwarded the connections to arduino uno, effectively using 2 cables. Turns out my code wasnt working properly because the wire length does matter, cuz we are in the Microseconds. Thanks SIr and the guy who commented about using shorter wires down in the same video!!!
@RalphBacon
@RalphBacon 10 ай бұрын
Does the module not just have a standard IPEX connector, or something else where you connect the antenna directly? Mine certainly have an IPEX connector (I chose them because of this) so no wires to solder at all - precisely because of the issues I knew could be lurking which you have discovered (and fixed 👍)
@HaseebAdnan0
@HaseebAdnan0 10 ай бұрын
idk what ipex means but it could mean 8 pins that are easily connectable, in this case, unlike cameras that need to have an adapter board. I thought it would be easy for me to connect the antenna to the breadboard and remember the configuration 1,3,5,7,2,4,6,8 pins and wire that way.@@RalphBacon
@RalphBacon
@RalphBacon 10 ай бұрын
The IPEX connector is a tiny gold circular connector on board (only about 3mm diameter), to which an aerial cable snaps into: bit.ly/ipex-and-cable But I have also used this type where the antenna screws directly into the module: amzn.to/3GBdxZu Just easier than trying to wire up an antenna.
@HaseebAdnan0
@HaseebAdnan0 10 ай бұрын
@@RalphBacon oh i have an old remote with 2 ipex connectors, it has a fulhan microprocessor which is a chinese company, i couldn't find any documentation for it. But these have screwable antennas here.
@stevenalbright3363
@stevenalbright3363 7 жыл бұрын
Thank you very much, this really got me understanding the NRF24L01 and its up and running great.
@RalphBacon
@RalphBacon 7 жыл бұрын
Hello Arduinite! I'm currently on vacation 5,000 miles away from home so I'll have to be brief with these comments until my return, mid-July. Glad it helped you, Steven, that's what this channel is all about!
@Zubin19
@Zubin19 7 жыл бұрын
Dear Ralph, Firstly Congratulations and thank you so much on a brilliant piece of work on nrf24l01 module. I have been watching a lot of videos with respect of IOT and especially on Arduino and trust me this was so simple and easy to understand am very sure Albert Einstein, would be super proud of you. I am yet to lay my hands on this both the Arduino & nrf24l01 and will keep you posted on the results that I get. Thank you once again for your efforts, God Bless. Best Regrads Zubin.
@RalphBacon
@RalphBacon 7 жыл бұрын
Glad you found it useful and easy to follow. I think Mr Einstein would say that I could have made it even simpler but, hey, it's a good starting point. When you order the nRF24L01 modules DO remember to order the adapter plates too. Makes everything much easier (and safer) to wire up.
@zubinhakim2147
@zubinhakim2147 7 жыл бұрын
Dear Ralph, I finally managed to build the solution at home and it worked just as expected. I did mess up with the Pins initially as I was doing this exercise by looking at 2 different videos, but then it was good to make a mistake and I realized that using a wrong pin the Transceiver looped into itself. I am yet to receive those adapter plates that you mentioned, they are on their way. Thank you once again for your efforts and time that you took to post this video. I shall keep you posted on my next work that I plan to do on this. I plan to extend this exercise to switch on and off a relay to switch on and off a bulb. Till then Good Bye and God Bless.
@JulioSalim
@JulioSalim 6 жыл бұрын
Excellent explanation. I've just reproduced at my lab with two Arduinos Pro Mini and it is working very well.
@RalphBacon
@RalphBacon 6 жыл бұрын
Excellent news, Julio. Did you use the adapters to plug in the nRF24L01 modules? If not, get some (they are very cheap, I got mine from Amazon) and prevent lots of problems due to the power being insufficient at anything above Minimum Power Level!
@johnmellor6065
@johnmellor6065 5 жыл бұрын
just built the above circuit and really made up as this is my first success on arduino wfi using nrf24lo1 thanks alot
@RalphBacon
@RalphBacon 5 жыл бұрын
Well done, John, so glad it worked for you. Thanks for posting.
@aarongellado9547
@aarongellado9547 5 жыл бұрын
IT WORKS!!! I've been trying multiple tutorials. Yours was the only one that worked for me. Could you try doing an NRF24 network next?
@RalphBacon
@RalphBacon 5 жыл бұрын
You sound surprised, Aaron! No more than me, really. 😱 But I'm not going to do a (mesh) network though, sorry, as I have no need and it just seems like an overly complicated way to send data around! There is a demo sketch in the stuff I put on my GitHub so you could always have a go. May the force be with you... Thanks for posting, good to hear the positive feedback.
@jacobendure262
@jacobendure262 6 жыл бұрын
Yes, I also tried a number of NRF24L01 transceiver project some worked but soon after they stopped for no apparent reason. I am quite sure it had to do with interference from other channels so the key difference here is the line: // Use a channel unlikely to be used by Wifi, Microwave ovens etc radio.setChannel(124); I just started it an hour ago and it's still going! Thank you so much !
@RalphBacon
@RalphBacon 6 жыл бұрын
You are most welcome Jacob Endure, I'm glad you like the video and found a solution. Nice to hear from you.
@BenDover-ci2wi
@BenDover-ci2wi 7 жыл бұрын
Thank You very much for this tutorial. I finally menaged to get this thing working :)
@RalphBacon
@RalphBacon 7 жыл бұрын
Hey Ben, I'm trying to interpret your post's meaning: 1. After a lot of trouble following your video, Ralph, I FINALLY got it working anyway. 2. I've had this unit in my box of components for ages and now thanks to your video, Ralph, I've FINALLY got it working. I'm hoping it's #2, especially as you are good enough to post your thanks here, which I humbly accept. Good to hear from you (and I knew what you were saying but it's Sunday afternoon so a bit of humour is OK here, right?).
@BenDover-ci2wi
@BenDover-ci2wi 7 жыл бұрын
Yes it is :) Now I can move on with my project. I subscribed your channel and hope you will keep up the good work.
@whitefields5595
@whitefields5595 6 жыл бұрын
Ralph, Followed this and it all works OK, so thanks. I bought the bare bones NRF24L01 board in Jan 2018 which may not have been available when you first made this video. The board terminates in 8 holes in a line (not breadboard friendly though as pitch is small), but I wanted minimal size. I soldered wires onto these pins and connected as follows nRF pin 1 is TOP RIGHT if you hold it with the pinouts uppermost and chip facing you .... nRF24L01 pin Arduino pin 1 VCC 3.3 V from external source 2 GND GND 3 CE 7 4 CSN 8 5 SCK 13 6 MOSI 11 7 MISO 12 8 IRQ GND note the IRQ is not used here so tied to GND for safety I did not add any external capacitors or other componentry. If you add this to your next update others will benefit.
@RalphBacon
@RalphBacon 6 жыл бұрын
Interesting development there, whitefields5595. Is it one of these (from AliExpress): www.aliexpress.com/item/2PCS-2-4G-nRF24L01-RFID-Wireless-Transmission-Module-2dBm-1mW-2-4GHz-wireless-adaptor-100m/32848645230.html I notice that you are supplying 3.3v from "an external source" - as long as it's not an Arduino then that will prevent a lot of power-related issues that everyone seems to have (who does not use a 5v adapter board). Thanks for the heads up.
@whitefields5595
@whitefields5595 6 жыл бұрын
Ralph, yes it is similar to the one in your link. I traced the terminations back to the chip. It is not a good idea to use the Arduino as a power supply, and you have pointed this out. I think you should stress it every time as newcomers may become complacent. One of the first things to go wonky is the Arduino's A/D converter. The adapter boards you use are as cheap as chips ;)) so there is no excuse for not doing things correctly. You have to do it right in the project, so start the way you mean to go on. Of course, none of this high moralising is a result of experience as I would never dream of doing it..
@RalphBacon
@RalphBacon 6 жыл бұрын
Ha ha! Of course not, we all do it right first time every time, right? That said, my video shows that I didn't use the adapters for the demo, but I was irritated by the wiring from below and as Amazon were doing them cheap as chips it seemed obvious to try them out. Cranking up the power was then fault free. Thanks for the update, I will take note of these new offerings.
@michaelstevens630
@michaelstevens630 7 жыл бұрын
Hi Ralph, a nice simple explanation of these little modules. I bought two over a year ago and never did anything with them. Time for a project I think. Have enjoyed watching several of your videos. Can we see more of Benny the Cat?
@RalphBacon
@RalphBacon 7 жыл бұрын
Ha Ha! Benny is definitely getting star-struck, Michael, there will be many opportunities I'm sure where Benny will set me straight. Glad you liked the video and even better that you are now enthused into getting this little beauties working (I've just ordered a set of 10 from Amazon UK for the SAME price as they were selling for in China - not sure how they managed this but I've now got them delivered today). I can see many uses for these going forward. Thanks for posting and I'll let Benny know too. :)
@szehenry
@szehenry 7 жыл бұрын
Very clear and simple. Big thanks for making it. Btw, it would even better if you put the wiring section at the end of video to the front. Tks!
@RalphBacon
@RalphBacon 7 жыл бұрын
True, sze Henry, true, and hindsight is a wonderful thing. I think we all should have more of it! But I'm glad you like the video, they are really quite wonderful modules, especially when used with their adapter plates. Thanks for posting.
@webslinger2011
@webslinger2011 5 жыл бұрын
Nice! I didn't notice there was an option to send audio using an rf24. Gotta explore that in the future.
@RalphBacon
@RalphBacon 5 жыл бұрын
Sending audio is tricky. Here you have just 32 bytes max to send in a single packet. Given that a simple .mp3 will have some 4Mb for a quality CD track, that's a LOT of packets. There's probably a better way to send audio, probably BT.
@Vhbaske
@Vhbaske 4 жыл бұрын
I've had some bad luck with the Dupont cables, many fail and some come without continuity from the pack. I am ordering a set that one can make them and includes a special plier. Too many obstacles here, but I am persistent to overcome obstacles.
@RalphBacon
@RalphBacon 4 жыл бұрын
I've got the metal pins and sockets and the shrouds (plastic headers) and the correct pliers (not cheap). Whilst I can now make some wonderful cables, Pedro, it is a fairly slow process! But sometimes you need a quality cable. Dupont is only OK for breadboard use, not a permanent project.
@binarybox.binarybox
@binarybox.binarybox 6 жыл бұрын
Today, I connected together a couple of nRF24L01 with adapter boards using two nano arduinos on breakout boards. One unit had a pot and the other nano had a servo connected. Servos cause current surges and need a 10uF 25v cap and without it, the servo doesn't work. I fitted a tantalum cap to both nRF24L01 boards between GND and VCC near the xtal and the servo worked really smoothly. I followed Howtomechatronics video. Dan does say a cap is needed. Hope this helps anyone having problems with the nRF24L01.
@RalphBacon
@RalphBacon 6 жыл бұрын
Excellent, thanks for sharing that useful tip, Binary box.
@romanhuante
@romanhuante 7 жыл бұрын
Hi Ralph! Thank you for taking the time to make this video. It has been a tremendous help for me in learning how these little modules work. As an absolute beginner to this kind of technology though, i still get kind of lost when it comes transmitting data of different types and sizes. I'm looking to transmit an array comprised of 5 values from one arduino nano to another. Could you please explain a little more in depth as to what I would need to do to make that work and why? Thank you so much!
@RalphBacon
@RalphBacon 7 жыл бұрын
I'm pretty sure that you can transmit up to 32 bytes of data in one go (concatenated as a simple string). Hmm, maybe I should talk about this when I do my video on the Benny IN/OUT indicator (using my TFT screen but also a couple of nRF24L01s too). Thanks for the prompt, I'll include that info.
@romanhuante
@romanhuante 7 жыл бұрын
Thank you sir! I have it figured out now (:
@azysgaming8410
@azysgaming8410 2 жыл бұрын
@@romanhuante pls tell me how. I wanna send multiple values too.
@artbecker5618
@artbecker5618 7 жыл бұрын
I have several of the power adapters shown at 4:26. They can be used without a breadboard by using the 8 connectors on top; 2 each 5v & 3.3v plus 4 ground pins. Stick the pins on the bottom in a piece of non-conductive foam to protect them.
@RalphBacon
@RalphBacon 7 жыл бұрын
A great way of using those power adapters, Art, thanks for pointing this out. A clever piece of lateral thinking, that they don't *need* a breadboard to work! Thanks for the post, others will doubtless find it useful too.
@JerryEricsson
@JerryEricsson 4 жыл бұрын
Cool, several years ago, I purchased a lot of these, ten I think it was for not a lot of cash. Back then everyone said solder a capacitor on so I did that after they arrived, then put them in my storage bin, where they have lived, untouched by human hands ever since. You see, right after that, we were introduce to the ESP8266 which was much easier to play with and includes a micro-controller on board. So it is, when I need to communicate, I just do it over wifi, or if need be, go to the ESP32 and use Bluetooth which is so much easier now in its version 5 on my new Christmas/50th Anniversary gift from my wonderful wife. Since it was a combo, and since my old laptop has given up the ghost, I opened it early and am typing on it now. Man what a difference, I love the instant on with the solid state drive, the 4K display is so sharp I now see all the blemishes on the talking heads on FOX News, and as I say the Bluetooth works much better with very quick connect and very few dropped audio to my hearing aides.
@RalphBacon
@RalphBacon 4 жыл бұрын
Oh dear. That is very bad news for me then, Jerry, With a 4K UHD screen you will see all the flaws and artifacts in my videos too! I don't think I will record in 4K just yet - not without a soft focus filter over my camera, anyway!!!
@abhinmajix
@abhinmajix 7 жыл бұрын
sir, iam always getting the " No acknowledgement of transmission - receiving radio device connected? No response received - timeout! " message . what may the reason....
@RalphBacon
@RalphBacon 7 жыл бұрын
Hey Abhin Raj! Well, according to some people here you need a *stable, low noise power supply*. And you must test on the low power setting first. You can change the speed setting to radio.setDataRate(RF24_250KBPS); I'm assuming you're using the two sketches I used in the demo otherwise unaltered? Are you using adapters (5v) or connecting up the nRF24L01 units directly to 3.3V?
@sameerk12982
@sameerk12982 4 жыл бұрын
Hello from India.... Thank you very much Sir for the great tutorial ...I am planning to make water level indicator for water tank in my house which is on first floor and should send data at ground floor... So planning to use this transceiver..your tutorial is great help.
@RalphBacon
@RalphBacon 4 жыл бұрын
That sounds like a great way to use this device, Sameer. Good luck with your project.
@DrexProjects
@DrexProjects 7 жыл бұрын
I have a 1/2 dozen of these and never used them. My plan was to have 1 in each greenhouse ( 3 at the moment ) to transmit temp, light level and such back to the main house and to the IOT thing. ( Mobile App thing ) Perhaps it's about time I started getting familiar with these devices. Thanks for the kick in the ass to get me going.
@RalphBacon
@RalphBacon 7 жыл бұрын
Indeed, Darrell, consider this an Arduinite kick in the ass! Now that you have an ultra-simple demo to follow, I reckon you'll only have to change the amount of data to transmit. If you make a fixed string size (temp + light level + humidity + whatever) as a string or char[ ] then you will have no trouble doing this. It's how I did it in my 433Mhz rain sensor project a while back. In some ways I wish I had used this nRF24 device if only because it guarantees reception (or tells you it failed). That said, my rain sensor project has worked beautifully ever since I installed it so maybe I have a (new) solution looking for a problem (and what's wrong with that? heh heh!). Anyway, I hope this has fired you up to get that greenhouse project underway ready for the Spring 2017 (assuming you live in the northern hemisphere).
@DrexProjects
@DrexProjects 7 жыл бұрын
Spring will be here any day now as I live on Vancouver Island In Western British Columbia. Although for a known mild climate this year winter is sticking around much longer than usual. Global warming my ass.
@RalphBacon
@RalphBacon 7 жыл бұрын
I shamefacedly admit to having to look up that location, Darrell, but having discovered it is in Canada, no wonder it's cold! I think UK weather is sometimes weird but at least we don't have bears wandering around . Now if you could just slip a nRF24 on a collar round a bear's neck to track him that would be a good project...
@LucaDiStefano
@LucaDiStefano 4 жыл бұрын
Couldn't be any clearer than this. Thanks :)
@RalphBacon
@RalphBacon 4 жыл бұрын
Glad it helped!
@michael__5647
@michael__5647 2 жыл бұрын
hey, one thing i discovered while working with the nrf24l01 pa lna is that my jumpers where to long, they were about 10cm an that was to much, i soldered everything to a perfboard and now it's working but i got me a lot of grey hairs till i figured this out, winding gnd around mosi and miso should work too
@RalphBacon
@RalphBacon 2 жыл бұрын
Interesting, thanks for the heads up!
@artbecker5618
@artbecker5618 7 жыл бұрын
You can get adapter plates for $.50 or less, postpaid, on AliExpress.com -- Bangood looks to be almost always way overpriced. You can also get the same two boards with SMA connector and antenna at AliExpress for $1 less than you paid. Or you can go on Ebay and pay 5x to 10x the same price as buying direct from China. The only advantage I've found to using Bangood is occasionally/rarely they have something that AliExpress doesn't offer. Thanks for all your great videos.
@RalphBacon
@RalphBacon 7 жыл бұрын
Do you know what Art? I too have found Banggood to be quite expensive lately. I put it down to the value of the British Pound dropping but even looking at the $ prices makes me think you are absolutely spot on. And AliExpress is like a mini-eBay in itself, the service is good and the prices competitive. I've bought some stuff from AliExpress but Banggood (and Gearbest) were always convenient but now... well, your experiences seem to coincide with mine. Interesting that you point this out, not just for me but others too who read this, why pay more when you don't have to? Thanks, too, for the encouragement, it's great that my Arduinite viewers like my videos. Great post, appreciated.
@johnfiott
@johnfiott 5 жыл бұрын
@@RalphBacon Unfortunately Ali Express does not accept Paypal, unlike Banggood. And somehow I always feel better when using Paypal rather than sending out my credit card details.
@giniterminator
@giniterminator 7 жыл бұрын
Hello Ralph, this is the best explanation about nrf24l01! Just one question. How do you send more the one variable in one package? Thanks.
@RalphBacon
@RalphBacon 7 жыл бұрын
Hi Gustavo! The way I would do it is to send either a concatenated fixed length string of several variables, or, if you can't be sure of the length, separate them with a delimiter such as a "|". Convert all the variables to strings if you do it this way. Then reconstruct them at the receiving end. I might be tempted to use a struct to do this.
@RalphBacon
@RalphBacon 7 жыл бұрын
I think you are limited to 32 bytes of data though... will have to check this.
@RaadYacu
@RaadYacu 7 жыл бұрын
These are great nRFs easy to use but no SOC. newer ones have both. Just be aware that you can only transmit 32 bytes of data. Also receiver can go up to 5 or 6(not sure of the number of the top of my head ) kind of like Xbee But then it's more of mesh network I am talking about One more thing is possible to use Struct to send diff kinds of data as one block Great video Ralph
@RalphBacon
@RalphBacon 7 жыл бұрын
Hi Raad! The author of the RF24 library even has one for audio so I guess he gets round the 32-byte limit (perhaps he just transmits 32-byte chunks, I haven't looked!). He also has a library for that *mesh* network you mention. But frankly, I think most Arduinites will just want a fairly simple system and for that purpose these cheap (but very clever) units really do fit the bill, don't you think? Thanks for pointing out those caveats, it's this sort of information sharing that makes the Arduino collaboration so very powerful - and ensure we buy hardware with both eyes open! And I'm glad you liked the video, I'm hoping it was as simple as could be so beginner Arduinites could follow it!
@RaadYacu
@RaadYacu 7 жыл бұрын
I do agree - keep it simple is my motto for sure I run into trouble with these when I hooked them up to ESp8266. The power the ESp8266 was giving out was not enough to power the nRF, so I used the capacitors. Again, enjoyed the video. Keep them coming
@victormironescu
@victormironescu 3 жыл бұрын
Very clear tutorial, Thank you.
@RalphBacon
@RalphBacon 3 жыл бұрын
Glad it was helpful!
@neilw2O
@neilw2O 5 жыл бұрын
USB setup. Only needed once. COMxx? xx is what I found available as nano units plugged in. TX is port COM51. RX is port COM14, set by device manager, advanced settings. 1. Unplug both TX and RX from USBs 2. Start TX program (node_1). Make sure COM51 selected 3. Plug in TX (com51) 4. Start Serial - It should give 'THIS IS THE TRANSMITTER CODE...' 5. Start RX program (node_0). It will say port is COM51. Make sure COM14 selected 6. Plug in RX (com14) 7. Start Serial - It should give 'THIS IS THE RECEIVER CODE...' 8. Should all be working. Fail? Back to the top and try again after closing both Arduino IDE programs. Best of luck! Now to do some serious stuff and programming, after this distraction.
@RalphBacon
@RalphBacon 5 жыл бұрын
Great info, Neil, the Arduino IDE can be very picky about all this (which is another reason why I tend to use the Eclipse IDE). Thanks for posting.
@neilw2O
@neilw2O 5 жыл бұрын
@@RalphBacon For serious work I use the Atmel IDE which handles Arduino stepping forward. Once there, there is no going back, easily. It also shows the shortcomings of the Arduino IDE when it comes to correct c++ structure and conventions. Handles c modules properly, too.
@SusanAmberBruce
@SusanAmberBruce 2 ай бұрын
I've ordered everything in your video, Question are the nRF24L01's 5v tolerant on input output pins, I know it has to be powered 3.3v
@RalphBacon
@RalphBacon 2 ай бұрын
Hi Susan! Yes, you're doing it right. Power supply must be between 3.0 and 3.6V but the IO pins are apparently 5v tolerant. You might need to connect a 10-100uF cap across the power supply pins to stop any voltage sags if the power is coming directly from the Arduino's 3v3 output, as the current is limited on the Arduino board.
@SusanAmberBruce
@SusanAmberBruce 2 ай бұрын
@@RalphBacon thanks
@howardtriggs5967
@howardtriggs5967 11 ай бұрын
Thanks for the excellent tutorial, I was very quickly able to get the setup to work with the nRF24L01 modules with the built in aerial, However when I went to swap them out for the PA/LNA modules with the aerials it didn't work - is there any modification I need to get those longer range modules to work? Thanks again
@RalphBacon
@RalphBacon 11 ай бұрын
Glad you got it working but odd about the longer range modules. Mine just used the "standard" IPX connector (as found on some ESP32 modules) and I used the same aerials that I would for an ESP32. The IPX connectors are a bit stubborn so make sure they are connected properly. Unless you have the screw-on type which accept the ESP32-style aerials too, directly. Try getting the BT module(s) working with a simple two-way Arduino sketch to prove the modules are behaving in the manner you expect.
@rustystrat50
@rustystrat50 2 жыл бұрын
Hello, Love the video. What is that development board you are using?
@RalphBacon
@RalphBacon 2 жыл бұрын
That would be an Arduino Nano plugged into an expansion board, a bit like this UK one (but I bought mine from cheap China): shop.pimoroni.com/products/multifunction-expansion-board-for-arduino-nano-uno?variant=39363470983251
@drelmetbrown
@drelmetbrown 4 жыл бұрын
Works well Ralph thanks, didn't initially though but my nano's 3.3v output is 3.5v and i suspect there is noise on the line, scope not to hand at the moment) A 47uf on each nrf sorted for now until i use the adaptors.
@RalphBacon
@RalphBacon 4 жыл бұрын
Oh, yes, do get the adapters, Emmett, it just makes using these great transceivers so much easier. Glad you got it all going without them though! Thanks for posting.
@gmeks8889
@gmeks8889 3 жыл бұрын
I appreciate the video, but my NRF's aren't communicating with each other. One is saying "THIS IS THE RECEIVER CODE - YOU NEED THE OTHER ARDUINO TO TRANSMIT " and the other one is saying "No acknowledgement of transmission - receiving radio device connected? No response received - timeout! " I'm not sure what I did wrong. Can you please help
@RalphBacon
@RalphBacon 3 жыл бұрын
There are some actions you definitely need to take, Shiven: 1. Get the adapter plates. It simplifies the power supply and the wiring is done from the top too. They are cheap: amzn.to/38AUltF 2. Double and triple check the wiring. With the adapter plates it's a lot simpler. 3. Ensure the devices are within 30cm of each other with my sketches as I use minimum power. Once you got it working you can increase this. 4. Swap the devices over and see if you get the same error(s). Try these in the order I have listed them - it will work if you have not changed my sketches.
@gsuresh2u
@gsuresh2u 2 жыл бұрын
Good explanation is there any library available for Black Pill ? I mean STM34F401CC or STM32F411CE ?
@RalphBacon
@RalphBacon 2 жыл бұрын
It looks like the standard libraries for the STM32 should work - but I'm guessing. This video is a good intro though: kzbin.info/www/bejne/mGKUY2ahr8Rmg68
@HaseebAdnan0
@HaseebAdnan0 10 ай бұрын
The weird thing about using these PA + LNA modules is that the receiver side works properly, its not an arduino issue, but the transmitter side doesnt. For some weird reason, shorting the two pins with your finger makes the output of com3 go mad, which is very very weird.
@HaseebAdnan0
@HaseebAdnan0 10 ай бұрын
another weird thing that the arduino at the receiver side is doing is that when i short gnd and vcc on the receiver side, the transmitter side stops outputting on the serial monitor, please make a video on this sir
@RalphBacon
@RalphBacon 10 ай бұрын
All I can say is that the PA+LNA versions work just fine "on my machine"! I don't recommend shorting GND and VCC under any circumstances, are you sure you meant that?
@HaseebAdnan0
@HaseebAdnan0 10 ай бұрын
@@RalphBacon Sir i do know what happens when you short vcc and gnd, but for some reason it does make it work, still i find it weird. Let's see on the weekend, i hope i can get the antennas to work, I'm buying the no antenna module to see if they work
@almirbajsini
@almirbajsini 4 жыл бұрын
Mine just sends 1 and sometimes 128 and response is 0 how can i fix it??
@RalphBacon
@RalphBacon 4 жыл бұрын
You must do TWO things, Almir: 1. Use the power adapter boards, they are very cheap and solve a LOT of power-related issues. 2. Use my _two exact_ sketches with no modifications of ANY kind. Then we KNOW they will work and you can modify to your heart's content - you will always have a good point to get back to.
@oncledan282
@oncledan282 5 жыл бұрын
Good day, Ralph. Simply the best ever tutorial on the nRF24L01+ I’ve tumble upon as of yet .. AND IT WORKED THE FIRST TIME !! Superb explanations and I WILL follow you since my objective is to make a Weather Station as mentioned in your video. I said to myself « This guy just read my mind !! .. Yes, YES !! Teach me how to send Strings variables over this module … ‘Master’ ! » Hahaha! My Weather Station is complete. I’m using DS3231 RTC for time reference and a BME280 for Temperature, Humidity and Pressure. Also using a CdS Cell to read illumination .. just for kicks and .. why not ? For the present time, I display this info on a minuscule SD1306 OLED Display on the exterior station. I plan on using a small 2,4 inch TFT display and graph the information for the last 48 hours on the interior part of it. I’m not there yet, since I still have to learn how to work the TFT. My main concern for now, is sending Strings to the other side. I’ll try to find the information on your other videos before seeking your help on that specific point. I hope to find it soon. Until then, I wish you a good day and keep on the good work. Best regards, Daniel Lachance .. aka « Uncle Dan ».
@RalphBacon
@RalphBacon 5 жыл бұрын
Glad you found it useful Daniel! Now, strings are an uncommon thing to pass around; much more useful is a flag or integer that means the same as a string. What are you doing with strings, Oncle? Remember you only have 32 bytes in a packet to transmit.
@oncledan282
@oncledan282 5 жыл бұрын
Good Day, Ralph. It was with great pleasure that I read your reply, and I thank you for doing so. Actually, I could get away with pushing long integers values through that Pipe. The actual informations I want to transfer is Year, Month, Day, Hour, Minute, Second. The rest of the informations are mainly of float type, since they have two decimal values. They are Temperature, Humidity, Atmospheric Pressure and Degree of Illumination. It would look like this (I added the comas to separate the values) : « 2019, 06, 19, 15, 24, 00, 25.34, 45.39, 1003.84, 19.35 » I kind of tweaked your Code a bit but with mixed results. I guess I need more tutoring on ways of passing data in the Pipe. Hahaha! Last night, while loosing sleep on the matter, I thought about shoving the info into an Array of [11] cells, and finding a way of passing it through the Pipe one [cell] at a time. This is still under work. Any help from your part would be well appreciated. Until next time we chat, I wish you a very good day and, like I said before, keep on the good. work !!
@RalphBacon
@RalphBacon 5 жыл бұрын
The way to do it is not with an array, but with a struct. A struct simply defines a group of otherwise unrelated variables both on the sending and receiving side. You have 32 bytes max available to send in a single packet with the nRF24L01 so you could reduce that by, for example, sending 19 instead of 2019 as the year (two bytes saved). If you need further help, find my email address in the About tab on my channel and I'll send you an example. Don't lose sleep on this!
@oncledan282
@oncledan282 5 жыл бұрын
Hi again .. Well, I thought sending the temporal data at first, the the environmental data as s second burst. This way, I can't bust that 32 bytes barrier .. But I just can't see how the « struct » works. (Yes, you can call me 'Green'). Hahaha ! Thanks for the helping hand, Ralph. I greatly appreciate it. Have a nice day.
@RalphBacon
@RalphBacon 5 жыл бұрын
If you find my email address in the About tab I'll send you a quick example.
@thormarum995
@thormarum995 7 жыл бұрын
Just found your channel and I have a question. I bought 433 MHz modules but they interfere with my weather station and they are very sensitive to noise. I need to transmit a RS-232 signal (5 bytes) from a PC to an Atmel microcontroller. Is this possible using these modules?
@RalphBacon
@RalphBacon 7 жыл бұрын
Hi Thor! Yes, I've found the 433Mhz modules are pretty dumb inasmuch that they interfere with one another as well. You can certainly transmit data from your PC to an Arduino but I have only done this using two Arduinos (one transmitter, one receiver) and using Python on the PC to send data via the standard USB to the transmitter Arduino (all simple stuff). No RS-232. Do you need that or is it just a communications protocol you thought might be required? This is reasonably straightforward, so much so others might benefit with a video on how to do it... let me know exactly your requirements.
@thormarum995
@thormarum995 7 жыл бұрын
Hi Ralph. Thanks for your answer. I'm a modelrailway enthusiast and would like to have small scale 1:87 trucks driving, just like they have at Miniatur Wunderland in Hamburg. If you don't know this please check out their website. You can also find lots of videoes on YT. I control my trains from a PC using homemade MS VB software. Partly using industrial I/O and partly RS-232 communication. My experience is that USB and VB 6.0 is unreliable. In Hamburg they use IR to control their vehicles but I can't get the range I need and therefore thought of radio communication. My plan is to put a receiver in each vehicle and send commands to each vehicle. Each vehicle will have an AtMega 88 to control it's functions as well as receiving data. Each vehicle will have it's own unique address, hence 5 bytes. 1 address byte, 3 bytes data and 1 byte checksum. I'm an electronics engineer so I can make my own hardware, I can develop SW for Atmel and program chips using the Atmel STK-500. I haven't tried using STK-500 with Arduino but it should be possible. Hope this gave you an idea of my project.
@RalphBacon
@RalphBacon 7 жыл бұрын
I don't know about USB and VB6.0 being unreliable as I stopped using VB6 about 10 years ago and now it's just a dim and distant memory! If you used a more recent programming language (Python seems to be the "in-thing" right now) you would have no problems using USB. Python (to me) is a strange mixture of C-like syntax with Visual Basic included (from someone who has never programmed in Python). But you could use the Python "Processing" IDE that is *very* similar to the Arduino IDE (see processing.org/reference/environment/) which I also demonstrate briefly in my video #76 which reads in some Arduino-generated data. Just some thoughts. Once you have cracked the reliability of USB to Arduino then this project is very do-able. Thanks for letting me know the background, a very interesting project you have there.
@user-eu2yf6ij2t
@user-eu2yf6ij2t 2 жыл бұрын
Great tutorial. What do you think about encapsulating data for mesh networking with these?
@RalphBacon
@RalphBacon 2 жыл бұрын
There are some code examples in the library that deal with mesh networks but I have to admit I've never needed one so have not experimented (yet).
@wafiyyahamalyris3523
@wafiyyahamalyris3523 2 жыл бұрын
I have problem the node 1 always print "No response received - timeout!" and cant receive anything from node 0, how can i fix this?
@RalphBacon
@RalphBacon 2 жыл бұрын
Are you using the adapter plates that allow you to power the devices from 5v? If not, do that first. Does the transmitter send out the value OK? Does the receiver receive that value OK? Does it try and send something back? Is that failure part of the auto-acknowledgement? (The transmitter will expect a 'received' type message behind the scenes - is that the one it is complaining about?). Swap over the two modules to see if the same problem persists.
@adabill295
@adabill295 7 жыл бұрын
Great project, I have a need for a Garage Door monitor. I have two doors and sometimes ( Not very often, but once is too many) I forget to close the door after I came in. It would be nice to be able to have a display inside showing the position of the doors. It is an attached garage so the doors are about 30 feet away from living area ( through a wall). I would also appreciate an idea ass to how to tell if the garage is not fully closed. What type of sensor to use? I have really appreciated your videos and they come across ( at least to me) in a very understandable manner and you explain everything important like where the specific library you use is located.
@RalphBacon
@RalphBacon 7 жыл бұрын
Hi AdaBill, I'm glad to like the videos! As a (wireless) garage door monitor this would be ideal. You can also use a Hall Effect transistor that responds to a magnet to determine whether the doors are *fully* closed (not left ajar). I've done a video on those too. Even a microswitch would be OK (like I used in my stepper motor project). Anything that could connect to an Arduino that then sends out the correct status via the nRF24L01. Sounds like a nice project. Let us all know when you get it working, right? Thanks for posting!
@adabill295
@adabill295 7 жыл бұрын
Thanks again, I went back and looked at video #55 and I'm in the process of ordering some hall effect sensors to try it out.
@tropicaljantie
@tropicaljantie 7 жыл бұрын
I am going to try to apply this.
@RalphBacon
@RalphBacon 7 жыл бұрын
Indeed, Jan, go for it. BUT please take note of the following, to avoid some of the "speed bumps" that others have come across. 1. Use the adapter plates for the nRF24L01 boards! They avoid all sorts of power issues that manifest themselves, and make it easier to connect the device using Dupont cables (as the cables are on TOP of the board not underneath it). 2. Use the EXACT same sketches that I have used (one as the 'master' transmitter, one as the 'slave' receiver that also transmits back a reply. 3. Use the exact same nRFL01+ transceiver modules that I have used - others have discovered that different modules won't, for example, allow you to transmit at 250kbps (and who knows what other differences there might be!). And do let us know when you have it all up and running! Good luck.
@EngrShaukatAliKhanIslampur
@EngrShaukatAliKhanIslampur 6 жыл бұрын
This is Clear and the best explanation. Is it possible to do "Master-less serial or parallel communication between multiple arduinos through Nrf24L01? I'm working on a project that will have more than 10 arduinos. I'm looking for a way to have any of the arduinos broadcast a stream of data to any of the other arduinos at any time. when two or more arduinos are in range, they must automatically connect and start communication. it should be two way communication.
@RalphBacon
@RalphBacon 6 жыл бұрын
You probably need a *mesh network* (and Google can be your best friend here). There is an example, I believe, in the library used in this demo. I didn't go down that route as it's more advanced but may be what you need. I hope this helps.
@clarkso65
@clarkso65 4 жыл бұрын
Sir, could you please cover a tutorial using Nrf24L01 driving Seven segment using keypad remotely. Thanks
@RalphBacon
@RalphBacon 4 жыл бұрын
That's not how it works, Clark! I've done a video on the keypad (membrane), I've done a video on a seven segment display (and I have one planned for an alphanumeric display, but that's for the future) and I've done more than one video for the nRF24L01+. If you built all those demo sketches and circuits you would know how to do what you want. No shortcuts, I'm afraid!
@clarkso65
@clarkso65 4 жыл бұрын
@@RalphBacon Thanks for your quick reply Sir. I think I know how.
@gaya6352
@gaya6352 3 жыл бұрын
Hi Ralph! first of all thank you for sharing this video with us. I would like to ask you a question; is it possible to receive data on the spatial position?
@RalphBacon
@RalphBacon 3 жыл бұрын
Do you mean where the other system is positioned, like a GPS signal? If so, then no, although you could install a simple GPS module and send the coordinates back to the initiator, I guess.
@edw4699
@edw4699 7 жыл бұрын
The reason the IDE jumped from 1.6 to1.8 is because at the time of the split between European 'Arduino' and USA 'Arduino', one of them (USA i think) launched a 1.7 version already
@RalphBacon
@RalphBacon 7 жыл бұрын
Well, Ed, there had to be some reason and it sounds like you found it. As from Arduino IDE 1.6.6 the C++ compiler is version 11 so there are some useful (compiler-related) improvements, such as namespaces which I will be trying out later. That way we can define 'global' variables which are constrained to the current sketch. See much more here: hackaday.com/2017/05/05/using-modern-c-techniques-with-arduino/ Thanks for raising this Ed.
@edw4699
@edw4699 7 жыл бұрын
tnx for the link. Interesting
@frazier283
@frazier283 4 жыл бұрын
I have been using Bluetooth but the range is limited,.I think this is a great solution to this problem. where can i get a copy of your simplified code?
@RalphBacon
@RalphBacon 4 жыл бұрын
I believe the simplified code (Master/Slave) is in my GitHub: github.com/RalphBacon/nRF24L01-transceiver
@titan_ss78
@titan_ss78 2 жыл бұрын
Thank you for the very clear & helpful video!! I was wondering if you could help me troubleshoot! I have done the project exactly how you have done it and followed every step correctly. However, I am still not able to get the transmission across to the receiver. My transmitter serial will say that there is no acknowledgement and that it has sent the number, but has not received it. My receiver serial will just say that this is the receiver code. I have tried changing the channel that I am on and matching both of them so they are on the same channel. I have even tried to increase and decrease the transmit power. I checked to see if I am getting proper power to the module and I am. One weird thing was that I have the adapter, so I should be able to supply from the 5V, however, when I do so, the transmitter serial will basically keep resetting and showing "no response received" and the "timeout". So, I keep it on the 3.3V supply, regardless of having an adapter and external antenna. I am wondering if it could be the antennas that came with the module, but I have even tried swapping those out as well. I am sorry that this was such a long reply, hopefully, I missed something that you caught. Thank you so much for any feedback!
@RalphBacon
@RalphBacon 2 жыл бұрын
No, it's not the antennas if you're running this on a workbench. If you have the adapters, and have plugged them in the right way round (so they extend the adapter plate making it long, not on top of it) then you MUST use 5v, as the board has a 5v to 3v3 regulator. Apart from the adapter plates, the most common problem is the pin wiring. Easy to get them muddled up so you need different colours for each, and write down the colours. Ideally, *keep the colours the same as I have in the pictures* on my GitHub: github.com/RalphBacon/nRF24L01-transceiver/tree/master/DupontWiring The transmitter will show the number it transmitted. The receiver, if it received it, will show the same number, increment it by 1 and send it back, at which point the transmitter will display it. If the transmitter gets no (auto) acknowledgment of the number transmitted it will show the "time out" message. Check the wiring and modules - I've had fakes in the past that just didn't work properly. In the meantime, you need to triple check the wiring, it's easy to get it wrong. I have to say at this point, Gurdeep, that my two sketches most certainly do work, and I've recently used them (adapted) for my storage bins and they "just work".
@titan_ss78
@titan_ss78 2 жыл бұрын
@@RalphBacon Hello Ralph, thank you so much for your detailed reply!! Yes, I have triple and quadruple checked my wiring, everything was just not working. I actually tried out another KZbinr’s sketch and that wouldn’t work either. I believe I probably have fakes, so I will get new ones and try them out again! Thank you again for your reply!
@cybernaut001
@cybernaut001 3 жыл бұрын
Hey Ralph, Can you please post video about a base node and then child nodes connected to it.. And how to establish connection between them
@RalphBacon
@RalphBacon 3 жыл бұрын
Nope. 😲 My Bin Lid monitor has THREE (battery-powered) child nodes (slave devices) all transmitting to one (permanently powered) base unit. They all transmit at different, random times but the base unit seems to cope very well. See this video for more details: Video #221 kzbin.info/www/bejne/m33Rl5yPoN12h5Y Later videos expand on this project so take a look or keep tuned!
@drelmetbrown
@drelmetbrown 5 жыл бұрын
Thanks for the video Ralph, very informative and helpful for a newcomer to the subject. I am awaiting arrival of 2 Rf nano's - so no separate tx / rx modules. Have you come across these yet ?
@RalphBacon
@RalphBacon 5 жыл бұрын
Do you mean the new Arduino Nano 33 IoT? I've not got any experience with that (yet). A bit pricey for my shallow pockets! It uses via WiFi not the (same frequency) 2.4GHz _bespoke_ comms of the nRF24L01 though. It will be interesting how those communicate; I'd expect that you would have to know the other's IP address.
@drelmetbrown
@drelmetbrown 5 жыл бұрын
@@RalphBacon. Sorry no Ralph i was referring to this... www.aliexpress.com/item/32980796969.html?spm=a2g0s.9042311.0.0.785e4c4doapbjE I am a little limited on space so thought this was helpful being integrated all in one. Oh, Nano 33 IoT just had a look at that and may have to play with that one in the future !
@MyBestDayy
@MyBestDayy 5 жыл бұрын
Followed the same procedure and code, but the nrfs are only transmitting data but not receiving it. What should I do , I am really confused?
@RalphBacon
@RalphBacon 5 жыл бұрын
Are you using the adapter boards? That is definitely the first step in diagnosing this sort of problem, Akanksha.
@berndlottes9940
@berndlottes9940 4 жыл бұрын
Question: Does the normal NRF12L01 without PA, also transmit signal from arduino mega with 11 Potentiometer to 11 Servos+mega, and also receives back the signal of 3 Axis accelerator-shield, for the nextion 3,2 LCD-Kompass? Open area(water) to ca 200meters? are those 2 modules enough to transmit fully connected mega, with up to 32 Potis using digital Inputs or I2C?
@RalphBacon
@RalphBacon 4 жыл бұрын
I;m afraid that question is too specific for me to answer, Bernd. As far as I know the nRF24 can only address 6 other devices.
@berndlottes9940
@berndlottes9940 4 жыл бұрын
@@RalphBacon , i can tell you it works very well, meanwhile i ve made it, sending 11 Poti-Values over nrf24L01 to other arduino mega(Joy-it), controlling there 11 servos, defined on any of the 54 Digi-Ports, then receiving back Voltage-Value, Direction and Roll-Degrees from Modellship to my handtransmitter, and there makin it visible on nexton Display, works cool, i have 2 timer, 2 Voltages, Rollin in degrees and Compass in Degrees, and also 11 Servo-values displayed on Nextion LCD-Display....mega cool.. at moment im workin on touch-clicks to define min and max-values of each servo over display
@magnus123cool
@magnus123cool 3 жыл бұрын
Is there a spesific reason why you generated a number to 254? Im trying to send large numbers such as 1000, but it caps out at 250
@RalphBacon
@RalphBacon 3 жыл бұрын
I'm assuming that the variable holding your value is just a small integer (char or uint8_t) which can only hold up to 255. To take larger values you need a two-byte integer (int or uint16_t).
@abpccpba
@abpccpba 7 жыл бұрын
Excelent video I got my system up and working Thank You. Are you related to Sir Francis Bacon?
@RalphBacon
@RalphBacon 7 жыл бұрын
Probably, Paul. At least that's what I like to think of great great great grandad Frankie (as we call him)! According to Wikipedia "His works argued for the possibility of scientific knowledge based only upon inductive reasoning and careful observation of events in nature" just like I try to do when it comes to Arduino topics here! I'm glad you got your system up and running, and thanks for posting.
@arletpaz8010
@arletpaz8010 3 жыл бұрын
when would you be making a video on loop structures ? also why do ppl make different pin assignments for the same module? i see sometimes they use 7 & 8 and other times i see 9 & 10 for the CE and CSN ? thanks! i would like to understand why is this allowed if the NRF is already set to look for those pin on the arduino, i do understand that not all arduino's use the same pin-out definition but in particularly i noticed that for the nano i see this pins being used in diff libraries differently
@RalphBacon
@RalphBacon 3 жыл бұрын
You can use pretty much any pins to control devices so the person who wrote the library would arbitrarily choose the pins. That said, pin 10 is not a good choice as that is part of the SPI pins (and is often used as a CS for that protocol). The nRF24 device isn't set to look for any pins in particular - it just wants to see the right data on its pins, after all, it might be controlled by an ESP32 which has a very different pin set.
@arletpaz8010
@arletpaz8010 3 жыл бұрын
@@RalphBacon wow thanks!!! thank you again for sharing your insight, i always asked myself why do ppl choose to have wires going all over the MCU instead of having "i dont know" wires next to each other "parallel sequence" on the same roll or side of like a Arduino nano
@JDI4DAVID
@JDI4DAVID 7 жыл бұрын
I found it easy enough to plug the black board power supply into a 6 way and a 2 way female pcb header. The nRF24 plugs up into the supply and overhangs the prototype pcb.
@RalphBacon
@RalphBacon 7 жыл бұрын
You're talking about *not* using the standard adapter plate, David? Can you just expand on what you're doing here as I didn't fully grasp how you're powering the nRF24L01, it would be useful not just to me but others reading your post too.
@JDI4DAVID
@JDI4DAVID 7 жыл бұрын
Ralph S Bacon I am sorry not to be clear. The power supply board I am referring to is the Black Socket Adapter Board www.amazon.co.uk/dp/B00NJCB7FS/ref=cm_sw_r_cp_apa_awLXzb5ACAMN0. This can be plugged into a couple of socket headers at the edge of a pcb. The radio board plugs up into the adapter board and overhangs the edge of the pcb. .
@RalphBacon
@RalphBacon 7 жыл бұрын
Ah, yes, all is clear now. Those adapter boards are the same ones I use, and yes, they can easily be plugged into a couple of socket headers on the main PCB, good idea. In fact, on that topic, I'm definitely in favour of having things 'unpluggable' for ease of maintenance or eventual replacement, it makes the whole process so much easier. Thanks for clarifying, David.
@JDI4DAVID
@JDI4DAVID 7 жыл бұрын
Ralph S Bacon I am very keen on pluggable modules after soldering a TFT display to a prototype board and then changing my mind. I find it is good to be able to swap out modules too to fault find. I have two sensor units sending data to my display and data logging hub. To keep it simple the hub has a NANO for the radio coms and another for the screen and SD card. I don't think the radio on SPI and the display on the same SPI bus will work without messing with the libraries. Would you agree?
@RalphBacon
@RalphBacon 7 жыл бұрын
If the libraries (and modules) follow the SPI standard then, yes, they should play nicely together (NB: nicely, adj, constantly fighting to see who is boss). No really, as long as the CS pin is kept high for the module not being used, and LOW for the one that is, then they should work together. That's the whole point of a shared bus, right? Back on Planet Earth, they may not work together at all. I've seen libraries that just put the SPI CS pin LOW and keep it there!!! But that could be corrected of course. If you have a Logic Analyser then it would be simple to see what each bit of code does to the SPI bus (and something on my wishlist). I guess you could try it, you may be pleasantly surprised. Or you may think, what the hell, another $2 Nano and I avoid all that potential pain!
@Fogaata
@Fogaata 6 жыл бұрын
Masterful, thank you very much!
@RalphBacon
@RalphBacon 6 жыл бұрын
You are most welcome Fogata, I'm glad you like the video. Nice to hear from you.
@johnfiott
@johnfiott 5 жыл бұрын
First of all, thank you for an excellent video. Your explanation was clear and easy to follow and I feel like I have now moved up a notch in the potential uses of my Arduino. I would just like to ask where I can access the data sheet (library commands to set power level etc) for the module please. Thanks again.
@RalphBacon
@RalphBacon 5 жыл бұрын
Good you liked this, John, and there's now a detailed specsheet for the chip in my GitHub. However, the best way to find out the available commands is to look inside the RF24 library header to see what functions have been defined. For example... For example, the command radio.setPALevel(RF24_PA_MIN) shows that the function setPALevel accepts a defined constant for power level; find that function in the header (or .cpp file) and see what the alternatives are. A bit of digging may bring up nuggets of gold!
@johnfiott
@johnfiott 5 жыл бұрын
@@RalphBacon Thank you so much Ralph. You are my idea of what a tutor should be all about. Show how something is done, then point the student to other resources, because that is how one learns. If you ever decide to release courses on Udemy or similar platforms (and you really should consider this) please let me know and I will definitely consider subscribing. Cheers from Malta. :-)
@daverieder5745
@daverieder5745 Жыл бұрын
Thank you for this tutorial. I fell upon it recently, and it helped me quite a lot. Question: does it make any sense that using an Arduino Uno for the transmitter and Arduino Pro Minis for the receivers would be the reason that my transmitter isn't getting data back from the Mini Pros? The data is sent, received, and sent back, but it's not being read by the transmitter/Uno. Thank you!!
@RalphBacon
@RalphBacon Жыл бұрын
If your UNO's (transmitter) TX and RX pins are connected to the Pro Mini's RX and TX pins (ie reversed) then all should be well. Make sure you have set the baud rate in your Serial.begin([baud rate]) in both devices to the same number! Choose 9600 initially, as it the "safest". On the UNO put some debugging lines (Serial.println statements) around the if(Serial.available()) to show whether it even detects incoming data, never mind what the characters are at this stage. Let me know how you get on!
@daverieder5745
@daverieder5745 Жыл бұрын
@@RalphBacon Thanks for your response. I didn't realize that the baud rate needed to be the same. Appreciate that. (I was able to get good data from the units finally).
@RalphBacon
@RalphBacon Жыл бұрын
Cool! Glad you got it sorted! 🥳🎉🎈🎊
@anushka-ru
@anushka-ru 5 жыл бұрын
Again one more superb video. Ralph i followed all your steps seems like my receiver does gets request from transmitter but transmitter never prints anything it always say. "No response received - timeout! No acknowledgement of transmission - receiving radio device connected?" .. Is there any incorrect PIN which could cause this?
@RalphBacon
@RalphBacon 5 жыл бұрын
Let's use the terms MASTER and SLAVE for these devices, Akshey, it makes more sense. So the Master is sending a value out, the SLAVE receives the _correct_ value but does not auto acknowledge back to the Master? Two things stop these devices working: 1. Incorrect wiring because you have to wire 'from underneath' so it's easy to get wires crossed 2. Lack of the plug in adapter that allows you supply 5v to the board which then steps it down to the required 3v3 at the necessary current. It also makes the wiring easier as it's all done from the top. So I would firstly get the adapter boards, firstly, very cheap, from Amazon or Banggood or Gearbest or somewhere. Whilst you are waiting for them, check your wiring and power configuration of both boards. Set the power level to _minimum_ and ensure the boards are physically close together (within 30cm). If you are using my sketch then you _know_ the code works so it can only be (1) or (2) above!
@anushka-ru
@anushka-ru 5 жыл бұрын
@@RalphBacon Thanks Ralph i was able to resolve issue with adding capacitor at nrf40, but now the problem is both are sending messages but neither Master nor Slave display message send. I put comments so it does work just that Master always says 0 received when slave does say it send value. Where as slave always say received but doesn't have any value. Signal for both seems to be working it seems that data is either getting lost or not able to read..
@RalphBacon
@RalphBacon 5 жыл бұрын
Get the adapters, that's the first thing to do, really it is.
@neilw2O
@neilw2O 5 жыл бұрын
Thanks Ralph. Like you say, had to jump through hoops to get two USB ports working at the same time. Windows 7 End up swapping the mouse with other USB port forcing driver reload. Then it worked. Is it safe to close the Arduino windows? Unplug USBs last is my guess. We will see. Plug 'em in first? I will try tomorrow..
@RalphBacon
@RalphBacon 5 жыл бұрын
Yes it can be very tricky. Saw your later reply so I guess you have it cracked now!
@vithuransoccer1
@vithuransoccer1 7 жыл бұрын
Hi, Ralph (or anyone who can help), I'm getting this weird error where my receiver is sending out a response which is just counting up by one all the way up to 254 and then it will reset and start again at 0 and go back up. The transmitter, on the other hand, says there is no acknowledgment of transmission along with the timed out error. I tried switching which Arduino the transmitter and receiver are on but it gave the same error. I'm currently powering both radios from the Arduino's 3.3v. Thanks in advance for any help!
@RalphBacon
@RalphBacon 7 жыл бұрын
Here's my take on this issue, Vithuran: 1) you're powering the nRF24L01s from the 3.3v, something that has caused much misery to many Arduinites. I know it worked in my demo but maybe the boards you have are subtly different. Do yourself a favour and buy the adapter boards. If you live in the UK, Amazon do them for the same price as you can get them for in China (for a pack of 5). In the States maybe the same. Whatever, even from a Far Eastern warehouse, get them and power from 5v. Yes, really. 2) The "receiver" sketch only does something when it has received something from the "transmitter". Check your (dual, as shown in my demo) Serial Monitor (debug) windows and see what is being sent, when and by which module. If you are using my sketches, without alteration, they will work if your power supply to the nRF24L01s is correct, and *your wiring too*, of course! How do you feel about that advice? More money spent but very little of it for a huge problem (probably) solved...
@vithuransoccer1
@vithuransoccer1 7 жыл бұрын
Alright I'll look into the adapter board, thanks for the advice!
@demetriosdemetriou1114
@demetriosdemetriou1114 7 жыл бұрын
Thank you so much Ralph but I wouldn't do it with infra red . As you probably noticed it will be the receiver which will be implanted and to perform a task it needs to adjust frequency and amplitude of stimulation and this can be done with a transmitter and with a digital potentiometer and behave like an oscillator. Thank you as I have at least piqued your interest on my project. God bless you.
@RalphBacon
@RalphBacon 7 жыл бұрын
You did more than pique my interest, I have ordered one of the digital potentiometer chips but I will (probably) just use it as a simple volume control, controlled by infrared. At least it will demonstrate the possibilities. However, it will take several weeks to arrive from China so I must be patient!
@demetriosdemetriou1114
@demetriosdemetriou1114 7 жыл бұрын
Dear Ralph, I am happy for your interest and you are welcomed to join in, after all I am a lousy programmer(LOL) I know that I am waiting to hear from the Eurostars, but I hope and pray that will go through. I have intrigue the interest of worldwide Medical device manufacturers and all of them came to London for a conference but all of them wanted proof and FDA pass. Now we are near as I have partners for almost every discipline except a programmer and as it is very huge this project ($30 billion per year)it is better I end up having 5-10% than 100% and no partners. If I know your address I could sent you the digital potentiometer and from its data sheet I stole the program that I am using but please shhhhh don't anything to anyone about my infringement and can work as an oscillator. As always you can email me at demetrios@nevadatechnology.co.uk privately and may God bless you and family and the your cat.
@male22male22
@male22male22 4 жыл бұрын
@Ralph Thanks for the video, I have a question. 1. which pin in Arduino nano connect to the pin IRQ, and CE in NRF24.
@RalphBacon
@RalphBacon 4 жыл бұрын
The Nano is _exactly_ the same as the UNO in this respect, same pins etc.
@artie5172
@artie5172 2 жыл бұрын
Hello Ralph! First of all nice video! I am curious to know can we use Arduino Uno for this project?
@RalphBacon
@RalphBacon 2 жыл бұрын
Yes you can! I'm pretty sure the video shows the Arduino controlling the nRF24L01 devices?
@artie5172
@artie5172 2 жыл бұрын
@@RalphBacon Yeah thanks!
@christianroycetolentino2637
@christianroycetolentino2637 4 жыл бұрын
Im having a problem. The node1 side(transmitter) is sending data but it just recieved is always 0 and next of no acknowledgement and send a random data and recieved 0 again... Can you help me with my problem?
@RalphBacon
@RalphBacon 4 жыл бұрын
Are you using the plug-in adapters for the nRF24 modules so that you providing 5v (not 3v3)? If you swap the receiver and transmitter units over do you get the same result? Are you using my EXACT sketch for each unit (Receiver/Transmitter)?
@christianroycetolentino2637
@christianroycetolentino2637 4 жыл бұрын
@@RalphBacon i solve the problem by using the adapters But how can i recieve 2 data from 2 different transmitters? Which part of the code do i need to manipulate?
@AndyMcGeever
@AndyMcGeever 3 жыл бұрын
Oh my ears are happy. There are some great tutors on youtube and i can't take that away from them but whiny American accents drive me insane. Even the accent of a southerner is music to my Leeds ears ;-) Great tutorial, Subscribed.
@RalphBacon
@RalphBacon 3 жыл бұрын
Wow, thank you! Nice to have you along, Andy. 208 videos and counting. If you look at the PDF file link in all my video descriptions you can search for topics or keywords - I use it all the time!
@AndyMcGeever
@AndyMcGeever 3 жыл бұрын
@@RalphBacon No worries. Hope you're having a great Christmas. While i'm here, could you tell me if it's possible to somehow create a network bridge with an NodeMCU V3? I've built a central heating controller which communicates with a number of ESP8266-01 modules sending temp data. I am fairly new to this stuff but finally managed to get them communicating using a NodeMCU as a soft AP webserver. The clients connect, send temp data and then sleep. Is it possible to also have the access point connected to my local LAN? I'm using the remote XY android app to show temp readings and change setpoint which is currently running on a single NodeMCU with DHT11 and control relay directly attached and connected to my WiFi as a client. My aim here is to have the temp sensor in a different location to the relay. A point in the right direction would be massively appreciated. I also have a couple of ESP32's but haven't really looked at them yet.
@CRETEJOE
@CRETEJOE 2 жыл бұрын
Ralph, I'd like to confirm my understanding is correct.With the Adapter plate Board For NRF24L01+ it can be run from an uno?
@RalphBacon
@RalphBacon 2 жыл бұрын
Indeed. You can power it from the +5v pin of the Arduino (the 3v3 pin just doesn't have the current available for an nRF24). It's what I'm doing with my storage bin lid monitor.
@CRETEJOE
@CRETEJOE 2 жыл бұрын
@@RalphBacon wow that was quick. Realised I did not make myself 100% clear. Can I also have the data pins , which I assume are 5V , connected to it via Adapter plate Board ? Thanks a lot Ralph.
@RalphBacon
@RalphBacon 2 жыл бұрын
Yes you can. In my Github for this video you can see some photos that show all the connections. When using an Uno it's all 5v safe.
@CRETEJOE
@CRETEJOE 2 жыл бұрын
@@RalphBacon fantastic Ralph. Thank you John
@jensschroder8214
@jensschroder8214 4 жыл бұрын
The UNO nRF24L01 Shield: www.openhardware.io/view/694/Arduino-UNO-NRF24L01-Shield
@RalphBacon
@RalphBacon 4 жыл бұрын
Great idea, although the caveat that it might not work with all variants of the nRF24L01+ is definitely worth bearing in mind.
#72 Arduino controlled Dual PWM controller & Timer thoughts
34:31
Ralph S Bacon
Рет қаралды 19 М.
Ultimate nRF24L01 range comparison
38:17
iforce2d
Рет қаралды 139 М.
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 3,1 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 173 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 16 МЛН
Which radio module? NRF24, LoRa, CC1101, HC12, 433MHz, HC05
17:00
Electronoobs
Рет қаралды 474 М.
NRF24 Frustration - Radio module doesn't work?
12:46
Electronoobs
Рет қаралды 93 М.
The nRF24L01 - Wireless Joystick for Arduino Robot Car with nRF24L01+
1:03:46
DroneBot Workshop
Рет қаралды 409 М.
#BB11 Create an Arduino Library😨 - A Real World Example (Easy)
25:54
#257 Wireless Serial Comms⚡for your Arduino (or other μController)
29:40
All About nRF24L01 Modules
11:21
Crazy Couple DIY
Рет қаралды 36 М.
#82 ATTiny85 + I2C  + SPI and more!
35:25
Ralph S Bacon
Рет қаралды 82 М.
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 3,1 МЛН