Тёмный

#37 Advanced Tutorial for NRF24L01 and Arduino #1 

Andreas Spiess
Подписаться 484 тыс.
Просмотров 80 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 159   
@MajdMazin
@MajdMazin 4 года назад
This Was so helpful. My NRF24s finally work. This was the only place where the channels on the scanners are explained well. Thank you.
@mecatronicsforeveryone9565
@mecatronicsforeveryone9565 3 года назад
Five years have passed and people like me are still using these videos, thank you very much.
@AndreasSpiess
@AndreasSpiess 3 года назад
Great to hear! That is an advantage of RU-vid.
@akhilrajbaranwal
@akhilrajbaranwal 7 лет назад
This is the most precisely explained tutorial,, conceptually as well as practically, of all the beginner tutorials on nRF24L01 I've seen. Highly recommended.
@AndreasSpiess
@AndreasSpiess 7 лет назад
Thanks!
@deangreenhough3479
@deangreenhough3479 8 лет назад
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
@AndreasSpiess
@AndreasSpiess 8 лет назад
+Dean Greenhough Thank you. You are very kind! Avoiding things is a solution which often works in our busy lifes ;-)
@richardneal3841
@richardneal3841 7 месяцев назад
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
@AndreasSpiess
@AndreasSpiess 7 месяцев назад
I am glad your NRF2401 work now!
@wjn777
@wjn777 4 года назад
The best, clearest video on the NRF24, essential watching if you are planning a project using this module
@AndreasSpiess
@AndreasSpiess 4 года назад
Thank you!
@space_0027
@space_0027 5 лет назад
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.
@AndreasSpiess
@AndreasSpiess 5 лет назад
You are right.
@noweare1
@noweare1 7 лет назад
Suscribed, not the usual electronics. Thank you
@AndreasSpiess
@AndreasSpiess 7 лет назад
Welcome to the channel!
@jon_raymond
@jon_raymond 8 лет назад
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!
@AndreasSpiess
@AndreasSpiess 8 лет назад
+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 RU-vid: 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.
@nikrous5996
@nikrous5996 6 лет назад
One of the most thoroughly best explanation i have ever heard and seen.Thanks a lot.
@AndreasSpiess
@AndreasSpiess 6 лет назад
You are welcome!
@HarikaOsman
@HarikaOsman 8 лет назад
Thanks for your understandable english and subtitles.. They are very helpfull
@AndreasSpiess
@AndreasSpiess 8 лет назад
Thanks. The subtitles, however, are not from me. Must be google who transcripts it...
@jumbo999614
@jumbo999614 3 года назад
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,...)?
@norm1124
@norm1124 5 лет назад
Ui, das Audio auf Deinem Channel hat einen grossen Sprung nach vorne gemacht. Cool
@AndreasSpiess
@AndreasSpiess 5 лет назад
Danke! Da hast du aber ein ganz altes Video ausgegraben...
@jeffkrueger8939
@jeffkrueger8939 8 лет назад
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
@AndreasSpiess
@AndreasSpiess 8 лет назад
+Jeff Krueger Thanks for the feedback. I am glad that it works!
@webslinger2011
@webslinger2011 6 лет назад
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.
@fifoflo
@fifoflo 6 лет назад
Yes, same for me but it does not work ..
@VolthausLabElectronics
@VolthausLabElectronics 8 лет назад
Very good tutorial. Thank you for the information.
@AndreasSpiess
@AndreasSpiess 8 лет назад
+Volthaus Lab You are welcome
@hfe1833
@hfe1833 2 года назад
I always watching your video regarding nrf24,please make updated video for latest firmware
@AndreasSpiess
@AndreasSpiess 2 года назад
This chip is quite old and I have no plans for it :-(
@juana.barria9770
@juana.barria9770 6 лет назад
hi Andrea! live your tutorial and your accent!. ... your explanation about everything great... thanks you for everything.
@AndreasSpiess
@AndreasSpiess 6 лет назад
You are welcome!
@Olavotemrazaodenovo
@Olavotemrazaodenovo 5 лет назад
Here is the guy with brazilian accent. Thank you.
@AndreasSpiess
@AndreasSpiess 5 лет назад
You are welcome!
@oscarilmio7148
@oscarilmio7148 5 лет назад
I'm curious Andreas,do you think it's possible to do the same "noise" test on our beloved esp 8266-32 ?
@AndreasSpiess
@AndreasSpiess 5 лет назад
Maybe you have a look at this project? github.com/moononournation/ESP8266WiFiAnalyzer
@endronesia1
@endronesia1 7 лет назад
thanks, this tuto is helping me (beginer) much, i am planing build audio sender for my project
@AndreasSpiess
@AndreasSpiess 7 лет назад
This is exactly why I made these videos...
@ehvway
@ehvway 5 лет назад
I really love your numbering of your video's sir! Keep up the good videos and I love your Swiss accent! Danke schön!
@AndreasSpiess
@AndreasSpiess 5 лет назад
Gern geschehen!
@mauriziosomenzi3479
@mauriziosomenzi3479 3 года назад
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.
@AndreasSpiess
@AndreasSpiess 3 года назад
You have to have some sort of time out and a "watchdog" transmission.
@NikhilSehgal21
@NikhilSehgal21 3 года назад
Hi Sir, radio.printdetails() are not printing anything. Serial monitor is blank. Do we have any alternative?
@AndreasSpiess
@AndreasSpiess 3 года назад
This is an old project and I do not remember the details :-(
@EdRuano
@EdRuano 3 года назад
Great explanations. Thank you.
@AndreasSpiess
@AndreasSpiess 3 года назад
Glad it was helpful!
@aarif5940
@aarif5940 4 года назад
Well explained ,but i just want to know how to convert scanner output into graphical form as u have doen.
@AndreasSpiess
@AndreasSpiess 4 года назад
If I remember right I transferred the data to Excel
@aarif5940
@aarif5940 4 года назад
@@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😊
@TheTrblesm
@TheTrblesm 7 лет назад
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.
@AndreasSpiess
@AndreasSpiess 7 лет назад
Only one channel at one time.
@saajidthakur6027
@saajidthakur6027 3 года назад
Hello Sir, Thanks for your guidance. Kindly know me the procedure "how can arduino serial result to excel and chart"
@AndreasSpiess
@AndreasSpiess 3 года назад
I made a video on how to fill Excel sheets with an arduino.
@Shadowcruise99
@Shadowcruise99 7 лет назад
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.
@AndreasSpiess
@AndreasSpiess 7 лет назад
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.
@Shadowcruise99
@Shadowcruise99 7 лет назад
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.
@MPElectronique
@MPElectronique 7 лет назад
Andreas, my results of the scanner is : 000000000000000011111111111111112222222222222222333333333333333344444444444444445555555555555555666666666666666677777777777777 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcd 000000010000000000000000000000000000000000000000000000011110000000200000000000000000000000000000000000000000000000000000000000 is it normal? I dont understand the result.. thank you. Marc.
@AndreasSpiess
@AndreasSpiess 7 лет назад
Just read each column vertically. So, channel 01 has no signal. Channel 39 has a signal
@lucasrsalazar
@lucasrsalazar 7 лет назад
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?
@AndreasSpiess
@AndreasSpiess 7 лет назад
It uses a proprietaryprotocol. You might find information in the datasheet of the chip
@lucasrsalazar
@lucasrsalazar 7 лет назад
Hmmm thank you so much for your awnser, now I understand...
@katrinapq
@katrinapq 7 лет назад
great video. hope you could feature how to control multiple robots using a single controller using nRF24L01 modules. thanks
@AndreasSpiess
@AndreasSpiess 7 лет назад
This project is closed. So, I will not work anymore on it...
@omkarbansode6305
@omkarbansode6305 10 месяцев назад
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
@AndreasSpiess
@AndreasSpiess 9 месяцев назад
This is plain Excel. I made a video on how to transfer data to Excel using an Arduino-like MCU
@omkarbansode6305
@omkarbansode6305 9 месяцев назад
@@AndreasSpiess thankyou so much , I will look into it
@ifithegr8
@ifithegr8 6 лет назад
@Andreas any plan to do an in-depth tutorial on NRF52?
@AndreasSpiess
@AndreasSpiess 6 лет назад
No. But I am interested in the BLE of the chip.
@ifithegr8
@ifithegr8 6 лет назад
@@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.
@BD-33
@BD-33 5 лет назад
i have nrf24l01 with antenna and i have one without antenna .. They can not communicate with each other .. Should they be the same type ..
@AndreasSpiess
@AndreasSpiess 5 лет назад
They should work together.
@BD-33
@BD-33 5 лет назад
@@AndreasSpiess 🌷
@AzharKhan-cy5kt
@AzharKhan-cy5kt Год назад
Hi can you use 4-5 nrf24l01 with single esp32 and all nrf's send same data at the same the ...no receiver setup
@AndreasSpiess
@AndreasSpiess Год назад
You always can transmit things in parallel (each module needs a different CE). The problem is what happens on the receiver side.
@AzharKhan-cy5kt
@AzharKhan-cy5kt Год назад
@@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
@AndreasSpiess
@AndreasSpiess Год назад
@@AzharKhan-cy5ktI do not comment on jammers because I do not like them.
@AzharKhan-cy5kt
@AzharKhan-cy5kt Год назад
@@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
@michaelbowman4919
@michaelbowman4919 8 лет назад
How do I get the data into excel to draw a chart. thanks
@AndreasSpiess
@AndreasSpiess 8 лет назад
See video #3. This is how I do it usually.
@JDI4DAVID
@JDI4DAVID 6 лет назад
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.
@pdpadsl
@pdpadsl 5 лет назад
Andreas Spiess Hi Andreas, I didn‘t find the video #3!!
@UmbraAtrox_
@UmbraAtrox_ Год назад
Very helpful. thank you
@AndreasSpiess
@AndreasSpiess Год назад
My pleasure!
@drakkorvladimir4012
@drakkorvladimir4012 3 года назад
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 : )
@AndreasSpiess
@AndreasSpiess 3 года назад
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
@drakkorvladimir4012
@drakkorvladimir4012 3 года назад
@@AndreasSpiess Thank you so much. I will look for your other videos.
@biplabroy8991
@biplabroy8991 2 года назад
Thank you for the video.
@AndreasSpiess
@AndreasSpiess 2 года назад
You are welcome!
@abdelrhmanhany6733
@abdelrhmanhany6733 7 лет назад
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??
@AndreasSpiess
@AndreasSpiess 7 лет назад
This is an old project and I do not remember the details. Sorry.
@abdelrhmanhany6733
@abdelrhmanhany6733 7 лет назад
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
@AndreasSpiess
@AndreasSpiess 7 лет назад
+Abdelrhman Hany if i remember right, the 24l01 can only transport a payload of 32 byte. Check how long your payload is.
@abdelrhmanhany6733
@abdelrhmanhany6733 7 лет назад
Thank you Mr Andreas so much , ive learned a lot of your tutorials :D
@AndreasSpiess
@AndreasSpiess 7 лет назад
:-)
@marioalvoh655
@marioalvoh655 8 лет назад
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 :)
@AndreasSpiess
@AndreasSpiess 8 лет назад
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 ;-)
@aske1602
@aske1602 8 лет назад
Thank you for the great info
@Qubnix
@Qubnix 7 лет назад
How can I transfer scanning results to excel?
@AndreasSpiess
@AndreasSpiess 7 лет назад
You can watch my video #9
@Qubnix
@Qubnix 7 лет назад
Ok, thanks
@nitishchennoju5427
@nitishchennoju5427 3 года назад
Your 60k viewer. Thanks for the great content!
@AndreasSpiess
@AndreasSpiess 3 года назад
You are welcome! Now there are already 60029...
@jayrajbhagat8200
@jayrajbhagat8200 4 года назад
I ha;ve tested, but it shows "f" for all the 128 cha;nnels. I don't understa;nd this.
@AndreasSpiess
@AndreasSpiess 4 года назад
Unfortunately I cannot do remote debugging.
@GuitarPeter04
@GuitarPeter04 8 лет назад
great and very helpful ! really love your videos and btw super swiss akzent:)
@AndreasSpiess
@AndreasSpiess 8 лет назад
+GuitarPeter04 Thank you for your compliement, also about my accent. Because I cannot change it, I tought, I use it as a "brand"
@mamdobreklapki0
@mamdobreklapki0 8 лет назад
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?
@AndreasSpiess
@AndreasSpiess 8 лет назад
+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.
@mamdobreklapki0
@mamdobreklapki0 8 лет назад
+Andreas Spiess thank You for quick response. I use IDE 1.6.7, I installed RF24 library by TMRh20, as You recommended.
@AndreasSpiess
@AndreasSpiess 8 лет назад
+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.
@mamdobreklapki0
@mamdobreklapki0 8 лет назад
+Andreas Spiess I think I'll get 1.6.5 version also.
@mamdobreklapki0
@mamdobreklapki0 8 лет назад
+mamdobreklapki0 It works fine on 1.6.5 IDE version.. thanks!
@damedaE90
@damedaE90 7 лет назад
@Andreas Spiess Der Hitmi Link funktioniert nicht mehr
@AndreasSpiess
@AndreasSpiess 7 лет назад
Danke! Geändert...
@damirkuzjaev
@damirkuzjaev 5 лет назад
hello. could you tell me how to transfer scanner results to excel
@AndreasSpiess
@AndreasSpiess 5 лет назад
I do not know. Maybe you google?
@damirkuzjaev
@damirkuzjaev 5 лет назад
@@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?
@shubhamsaxena508
@shubhamsaxena508 8 лет назад
will it get disturbance if someone is using nrf near me?
@AndreasSpiess
@AndreasSpiess 8 лет назад
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.
@shubhamsaxena508
@shubhamsaxena508 8 лет назад
ok thanks
@shubhamsaxena508
@shubhamsaxena508 8 лет назад
can it use frequency hopping? or channel hopping?
@AndreasSpiess
@AndreasSpiess 8 лет назад
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.
@shubhamsaxena508
@shubhamsaxena508 8 лет назад
ok
@DwipayanGupta
@DwipayanGupta 5 лет назад
how to send an image file between two nrf ?
@AndreasSpiess
@AndreasSpiess 5 лет назад
I cannot imagine that this is a good idea. ESP8266 and Wi-Fi would be much better, I think.
@DwipayanGupta
@DwipayanGupta 5 лет назад
Andreas Spiess thank you for this information sir , it would be very helpful to me.
@HarikaOsman
@HarikaOsman 8 лет назад
I am finding free channel but how can i convert channel number to uint64_t type? Regards
@AndreasSpiess
@AndreasSpiess 8 лет назад
I do not understand your question? Why would you use uint64_t ?
@HarikaOsman
@HarikaOsman 8 лет назад
+Andreas Spiess pipe addresses for nodes are uint64_t ype, is this addresses showing comminication channels?
@AndreasSpiess
@AndreasSpiess 8 лет назад
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.
@HarikaOsman
@HarikaOsman 8 лет назад
+Andreas Spiess thanks, i understand.. I wish, i want to be your student :) regards..
@AndreasSpiess
@AndreasSpiess 8 лет назад
You are always a student if you open ears and eyes...
@rpian1999
@rpian1999 2 месяца назад
Radio not responding. This clearly means all my NRF24L01 modules are defective
@AndreasSpiess
@AndreasSpiess 2 месяца назад
Maybe. If it worked once. Otherwise it also could be a software issue.
@Anton-sz6ef
@Anton-sz6ef 5 лет назад
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!
@AndreasSpiess
@AndreasSpiess 5 лет назад
I do not know. Maybe you google?
@Anton-sz6ef
@Anton-sz6ef 5 лет назад
@@AndreasSpiess I tried! Thanks anyway. I will start with low frequency and observe and then step it up...
@kampkrieger
@kampkrieger 3 года назад
the scanner sketch does something else now :(
@AndreasSpiess
@AndreasSpiess 3 года назад
I do not understand.
@kampkrieger
@kampkrieger 3 года назад
​@@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
@simostha99
@simostha99 6 лет назад
I want to control 4 servo motors using nrf24l01 and 4 pot....... Arduino.... Simply 4 channel control.... Using nrf24l0q
@AndreasSpiess
@AndreasSpiess 6 лет назад
Sounds interesting! Hope you will suceed.
@zhuk462
@zhuk462 4 года назад
Where is advanced info? I watched the superficial basics here.
@AndreasSpiess
@AndreasSpiess 4 года назад
What do you need more?
@GNDBK
@GNDBK 2 года назад
Set play back speed to 1.25. Thank me later.
Далее
NRF24L01 Tips and Tricks - Cheap and Easy Wirless
8:37
Ultimate nRF24L01 range comparison
38:17
Просмотров 139 тыс.
NRF24 Frustration - Radio module doesn't work?
12:46
Просмотров 93 тыс.
Getting Started with the nRF24L01 Transceiver
14:06
Просмотров 88 тыс.
Using Inexpensive 433 MHz RF Modules with Arduino
29:50