Это видео недоступно.
Сожалеем об этом.
#37 Advanced Tutorial for NRF24L01 and Arduino #1
HTML-код
- Опубликовано: 1 янв 2016
- NRF24L01 chips use the 2.4GHz band. This band is used by many other devices like Access Points or Smartphones. In this video I show how to find empty channels and discuss all the prerequisites for a successful communication between two NRF24L01 modules.
In the next video I will continue with the software part: defining data structures, establish a protected to-way communication, and give you some hints for increasing the range of the devices.
This communication system is used in my robot to transfer commands in one direction and telemetry data in the other.
I use the Arduino IDE and the built-in RF24 library.
Useful lings are: • How to work with the N...
• Getting Started with t...
www.himix.lt/ar...
This Was so helpful. My NRF24s finally work. This was the only place where the channels on the scanners are explained well. Thank you.
Five years have passed and people like me are still using these videos, thank you very much.
Great to hear! That is an advantage of RUclips.
This is the most precisely explained tutorial,, conceptually as well as practically, of all the beginner tutorials on nRF24L01 I've seen. Highly recommended.
Thanks!
By far the best explaination of how to setup an NRF2401 radio module. You have already answered a few of the questions that I had. So, the signals you use on the TX(CE and CSN) or RX don't have to be the same pins. I and many others have been looking for ways to trouble shoot our system after building it as we have had many problems. One was a bad library file. The one You suggest is the correct one as it works. Two, the antana must have 3.3 volts or it won't work as mine was 2.1 volts?! bad connection.Three, using print statments help, but only that the software is functioning properly and not the signal going out of the antana.
I look forward to the next session, thanks
Rick
I am glad your NRF2401 work now!
The best, clearest video on the NRF24, essential watching if you are planning a project using this module
Thank you!
I can't thank you enough, Andreas - an absolutely smashing tutorial.
I know it's 8 years since your presentation but I got there eventually here in 2024!
I've had a couple of these devices for around 8 years but never got around to using them until now. Where your tutorial is superior is in your explanation of the "pipe" metaphor.
Whereas the implementation of the NRF24 is overall straightforward to grasp, the so called "pipe" concept was problematic in the visual sense. I understand they can be equated to pipes used in http-type exchanges but the Nordic use of the term, "pipe" was not so straightforward to visualise as I explained earlier. However, your excellent slides realise their function very clearly indeed.
Although I could implement a network of theese devices, I did so without proper grasp of the "pipe" meme. This was very unsatisfactory because it was limiting scope for further project implementations of my own since up until that point I was more or less just changing the provided examples to suit. Now, thanks to you I have the confidence to implement all forms of networks for many and varied purposes.
Up until your excellent tutorial, I'd watched countless others from elsewhere but none of them cut the mustard WRT the pipe metaphor.
I've used many different types of transceiver over the years and been fine with them from the outset but up until now gasping every nuance the NRF24 had alluded me.
I will donate to your channel later this month as a token of my appreciation. Many grateful thanks again.
Glad the video was helpful! I remember, it also took me a while to understand it ;-)
Another interesting, full of relevant information. I admire the use of graphs and the amount of time you invest in scientifically arriving at your conclusions. I believe you will reach 10k subscribers very quickly.
There is something very special about your videos. You always just seem to explain enough to make me very interested about subjects I would have avoided.
It's official, I like the Swiss very much after having the pleasure of hearing and watching you.
Please keep up both the quality and quantity of your videos.
Thank you kind sir for sharing
+Dean Greenhough Thank you. You are very kind! Avoiding things is a solution which often works in our busy lifes ;-)
As always a very informative video! I always have to watch your videos several times as they have such a plethora of information to digest. Keep up the great work!
+Jon Raymond I try to keep my videos below 10 minutes. This might lead to a certain compression. But it happens to me sometimes, too with other videos. I think this is a big advantage of RUclips: If I didnt get it the first time I just rewind a few seconds or minutes and then, most of the times, it is clearer.
Hey there, first off great video, thank you so much! At 6:56 when you show the serial output from the scan result, you highlight channel 25 however that is not channel 25. It is in hex, so it is actually channel 37.
You are right.
Suscribed, not the usual electronics. Thank you
Welcome to the channel!
One of the most thoroughly best explanation i have ever heard and seen.Thanks a lot.
You are welcome!
I really love your numbering of your video's sir! Keep up the good videos and I love your Swiss accent! Danke schön!
Gern geschehen!
Thanks for your understandable english and subtitles.. They are very helpfull
Thanks. The subtitles, however, are not from me. Must be google who transcripts it...
Thanks for a great tutorial. You help me out a lot on the pipe control. Works great on Windows 8.1 and Arduino v1.7.9 using a nano ATmega 328
+Jeff Krueger Thanks for the feedback. I am glad that it works!
I always watching your video regarding nrf24,please make updated video for latest firmware
This chip is quite old and I have no plans for it :-(
Ui, das Audio auf Deinem Channel hat einen grossen Sprung nach vorne gemacht. Cool
Danke! Da hast du aber ein ganz altes Video ausgegraben...
hi Andrea! live your tutorial and your accent!. ... your explanation about everything great... thanks you for everything.
You are welcome!
Very good tutorial. Thank you for the information.
+Volthaus Lab You are welcome
Here is the guy with brazilian accent. Thank you.
You are welcome!
thanks, this tuto is helping me (beginer) much, i am planing build audio sender for my project
This is exactly why I made these videos...
Your 60k viewer. Thanks for the great content!
You are welcome! Now there are already 60029...
Experimenting on a smaller version of this NRF2401L. Got additional info : Status 0x00 RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=0 TX_FULL=0, RX_ADDR_PO-1 = 0X0000000000, RX_ADDR_P2-5 = 0X00 etc. Only getting zeros inside my room. I hope it´s working.
Yes, same for me but it does not work ..
great and very helpful ! really love your videos and btw super swiss akzent:)
+GuitarPeter04 Thank you for your compliement, also about my accent. Because I cannot change it, I tought, I use it as a "brand"
Great explanations. Thank you.
Glad it was helpful!
8:38 I don't understand openReadingPipe Function. Why there are 2 paramenter for openReadingPipe (parameter#1, parameter#2) but there's only one parameter?
What is purpose of 1st parameter for openReadingPipe?
What is the different between openReadingPipe(0, ...) and openReadingPipe(1,...)?
Very helpful. thank you
My pleasure!
Thank you for the video.
You are welcome!
Hi Sir,
radio.printdetails() are not printing anything. Serial monitor is blank. Do we have any alternative?
This is an old project and I do not remember the details :-(
great video. hope you could feature how to control multiple robots using a single controller using nRF24L01 modules. thanks
This project is closed. So, I will not work anymore on it...
I'm curious Andreas,do you think it's possible to do the same "noise" test on our beloved esp 8266-32 ?
Maybe you have a look at this project? github.com/moononournation/ESP8266WiFiAnalyzer
Great, I have a question: I have a NRF24 network, how can I tell when I lose communication with a NRF24 on the network?
I use the RF24 and RF24Network library.
Thanks.
You have to have some sort of time out and a "watchdog" transmission.
at 6:57 you have shown 2 graphs/charts using the traffic data , can you please provide some useful links on how to do it, or tell yourself what was the process in brief
This is plain Excel. I made a video on how to transfer data to Excel using an Arduino-like MCU
@@AndreasSpiess thankyou so much , I will look into it
Well explained ,but i just want to know how to convert scanner output into graphical form as u have doen.
If I remember right I transferred the data to Excel
@@AndreasSpiess ohk then, i correct my question , how to convert scanner output into Excel and how to read it ? How do we know that this channel is free or not ?
Bdw thanks for the response😊
Andreas, very informative video, thank-you. I have two points of confusion, where clarification would be helpful.
I've been able to get the raw noise data from the serial monitor, but I fail to understand how you differentiate between channel numbers and what the binary information means. From a layman's point of view it seems you pull channel 24 out of a hat. the channel number isn't contiguous and I see nothing in the raw data, that differentiates specific channel numbers from the rest of the data.
You also reference video #3 in regard to importing data into Excel, however there doesn't seem to be a 3rd part to your NFR24L01 videos.
The first two rows show the channel number and the other rows show the signal strenth on this channel at a particular time. If you see 0, the channel is free. So, you search for channels which stay free for a long time.
Thanks so much for the response Andreas. I'll go back and see if I can make some sense of it, now that I have an understanding of how to delineate the information.
Hello Sir,
Thanks for your guidance.
Kindly know me the procedure "how can arduino serial result to excel and chart"
I made a video on how to fill Excel sheets with an arduino.
@Andreas any plan to do an in-depth tutorial on NRF52?
No. But I am interested in the BLE of the chip.
@@AndreasSpiess I guess then its time for you to lead the way for your followers, including me. I was surprised when i compared BLE data sending current consumption. ESP32 on full throttle consumed 150mA (including IMU and WiFi disabled + no computation on processor) but NRF52 only consumed 38mA which is a huge difference.
Thank you for the great info
How do I get the data into excel to draw a chart. thanks
See video #3. This is how I do it usually.
Add commas into the scanner sketch as in printf(",") in the for i loops. The data can then be copied from the monitor screen and pasted into Excel. Select the data in Excel and copy it then paste special transpose. Add a channel number column 0 to 124 then insert an x-y chart.
Andreas Spiess Hi Andreas, I didn‘t find the video #3!!
How many channels can this thing handle? Or am I not understanding how it works? I'm more familiar with radio control hobby cars/drones.
Only one channel at one time.
I have a question. When I use ESP8266 wifi module i'm using the IEEE 802.11 protocol, so when i use nrf24l01 what is the protocol?
It uses a proprietaryprotocol. You might find information in the datasheet of the chip
Hmmm thank you so much for your awnser, now I understand...
Hi can you use 4-5 nrf24l01 with single esp32 and all nrf's send same data at the same the ...no receiver setup
You always can transmit things in parallel (each module needs a different CE). The problem is what happens on the receiver side.
@@AndreasSpiess The question i asked was for a mini jammer do you think 4-5 nrf's transmitting data at the same time will has the jammer effect
@@AzharKhan-cy5ktI do not comment on jammers because I do not like them.
@@AndreasSpiesswhat! Jammers are fun why would someone not like it... you are old i think that's why you don't like them ...come on old man I'm stuck help me out
Andreas, my results of the scanner is : 000000000000000011111111111111112222222222222222333333333333333344444444444444445555555555555555666666666666666677777777777777
0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcd
000000010000000000000000000000000000000000000000000000011110000000200000000000000000000000000000000000000000000000000000000000
is it normal?
I dont understand the result..
thank you.
Marc.
Just read each column vertically. So, channel 01 has no signal. Channel 39 has a signal
How can I transfer scanning results to excel?
You can watch my video #9
Ok, thanks
i have nrf24l01 with antenna and i have one without antenna .. They can not communicate with each other
..
Should they be the same type
..
They should work together.
@@AndreasSpiess 🌷
I am working on a project like this but I really need help in making it 'Failsafe' . If the Tx fails, I want the Rx to shut down. ANY help would be much appreciated : )
You can use the "watchdog" concept I showed in other videos. But you will never know if the "TX failed", only that the RX did not get any info
@@AndreasSpiess Thank you so much. I will look for your other videos.
hello, I am a student and i need some help for my project, may you help me? i want to display information from a soil moisture sensor(from the serial monitor in percentage) using nrf24l01 from one arduino to another, do you know how I might to do that?
sorry i am still a beginner it.... and thank you for the video it is great :)
I would propose to start out with a block diagram. There, you should see, which problems you have to solve and you can start with one part and go on to the next. With this method, it is also easy to google for particular solutions because you can formulate your problem and questions very precise. Google is not good in answering broad questions.
You find many tutorials for each aspect of your project, and if you are patient, you will be able to solve it. I also did not know anything about electronics when I was born and had to learn everything ;-)
Very great tutorial but using the library Tmrh20 results that the receiving rf24 doesn't start unless the serial monitor of the transmitter starts, how can i fix that??
This is an old project and I do not remember the details. Sorry.
Ok thank you for your reply, but i have another question related to the nrf24l01, when i send an array of 12 elements (6x2), i use serial printing, i got the first 6 only
+Abdelrhman Hany if i remember right, the 24l01 can only transport a payload of 32 byte. Check how long your payload is.
Thank you Mr Andreas so much , ive learned a lot of your tutorials :D
:-)
I ha;ve tested, but it shows "f" for all the 128 cha;nnels. I don't understa;nd this.
Unfortunately I cannot do remote debugging.
hello. could you tell me how to transfer scanner results to excel
I do not know. Maybe you google?
@@AndreasSpiess of course. I tried I couldn't find anything. Then I found your video when you did it. So I would like to know how?
@Andreas Spiess Der Hitmi Link funktioniert nicht mehr
Danke! Geändert...
how to send an image file between two nrf
?
I cannot imagine that this is a good idea. ESP8266 and Wi-Fi would be much better, I think.
Andreas Spiess thank you for this information sir , it would be very helpful to me.
That could be very helpful in my project - temperature sensors network. I were so optimistic abou it, but an error get me to the ground.. When I compile "scanner" I get the message "sketch\output\scanner.cpp:1:22: fatal error: WProgram.h: No such file or directory #include " I did some research and I found out that i must change in scanner.cpp "WProgram.h" to "Arduino.h" and I did.. and I get more error messages,... I'm fresh user of Windows 10. Could You have some advise for me?
+mamdobreklapki0 Which library do you use? RF24? Which IDE version do you use? Did you include the library with Sketch->include library-> manage libraries (and search for NRF24). Then install RF24 by TMRh20 library.
It has nothing to do with Windows10.
+Andreas Spiess thank You for quick response. I use IDE 1.6.7, I installed RF24 library by TMRh20, as You recommended.
+mamdobreklapki0 I still use 1.6.5. This version seems to be quite stable.
I see no obvious readon for your error. So, I cannot help you because I will not upgrade to a higher version for the moment.
+Andreas Spiess I think I'll get 1.6.5 version also.
+mamdobreklapki0 It works fine on 1.6.5 IDE version.. thanks!
Radio not responding. This clearly means all my NRF24L01 modules are defective
Maybe. If it worked once. Otherwise it also could be a software issue.
will it get disturbance if someone is using nrf near me?
Yes, if you use the same channel. I deal with this issue in one of my NRF videos, but I do not remember, in which one.
ok thanks
can it use frequency hopping? or channel hopping?
No, you have to program it yourself, I think,this is not easy.
Because these devices work only on short distance, it is usually enough if you scan your channels from time to time and select a free one.
ok
Hey! I know it's out of context but can I use a motor driver in order to create sinusoidal or just alternating current ? Will it burn down ? I know it's possible but I was thinking that since it's not made for this I will fry the hell out of him :)) Thanks in advance!
I do not know. Maybe you google?
@@AndreasSpiess I tried! Thanks anyway. I will start with low frequency and observe and then step it up...
I am finding free channel but how can i convert channel number to uint64_t type? Regards
I do not understand your question? Why would you use uint64_t ?
+Andreas Spiess pipe addresses for nodes are uint64_t ype, is this addresses showing comminication channels?
Pipe address and channels are something completely different. Pipe addresses must be the same for both NRF if they should communicate. For ease, use my examples.
The channel is set with the command radio.setChannel(0x34); or similar.
+Andreas Spiess thanks, i understand.. I wish, i want to be your student :) regards..
You are always a student if you open ears and eyes...
Set play back speed to 1.25. Thank me later.
the scanner sketch does something else now :(
I do not understand.
@@AndreasSpiess Ich habe wohl seit Jahren ein Pinout an der Wand ausgedruckt das MISO und MOSI vertauscht hat :( Dazu kommt dass die RF lib nicht merkt, wenn kein Device da ist sondern einfach behauptet es sei ein nrf24l01+.
Das scanner-Sketch hat noch einen Sender-Modus, wenn man sich den Code anschaut. Und der NRF braucht mehr Strom als mein Arduino Nano am 3V3 anbieten kann... Das alles war sehr verwirrend aber jetzt geht's! Danke
I want to control 4 servo motors using nrf24l01 and 4 pot....... Arduino....
Simply 4 channel control.... Using nrf24l0q
Sounds interesting! Hope you will suceed.
Where is advanced info? I watched the superficial basics here.
What do you need more?