Arduino + NRF24 simple tutorial and range test

Поделиться
HTML-код
  • Опубликовано: 7 сен 2017
  • This is simple tutorial on how to setup high powered version of NRF24 wireless communication module with Arduino. Setup used in this video is for range testing and is not for bidirectional communication. There are plenty of other tutorials online for more complicated setups with NRF24 modules.
    Source code: github.com/tehnomanik/tm-node...
    Attention: There is a mistake in video, operating frequency of module is not 2.4 Mhz as declared but 2.4 Ghz. Sorry about that!
  • НаукаНаука

Комментарии • 273

  • @quxowniq3593
    @quxowniq3593 4 года назад +21

    well finaly someone explaining what line in code does what, most of those tutorials are "copy paste my setup and learn yourself with no clue". good job

  • @TehnoManik
    @TehnoManik  6 лет назад +127

    Attention: There is a mistake in video, operating frequency of module is not 2.4 Mhz as declared but 2.4 Ghz. Sorry about that!

    • @learnings...1448
      @learnings...1448 6 лет назад +2

      Thank you for the great video....
      I need your help.....
      Can you help me control 4 servo motors using 4 potentiometer.....
      wirelessly.....NRFL01.....please,......
      And the code explaination alsoo....
      And is HC-12 better than NRFl01 for this...?

    • @yuridanylko
      @yuridanylko 6 лет назад +1

      But can it switch between receiver and transmitter mid-program?

    • @virtual_ninja810
      @virtual_ninja810 5 лет назад

      @@yuridanylko yes pls see it on how to mechatronics

    • @yuridanylko
      @yuridanylko 5 лет назад +1

      @@virtual_ninja810 Thanks

    • @kimhonnepon7250
      @kimhonnepon7250 5 лет назад +2

      @@learnings...1448 Get the NRF2401 here for only 1,50$! It's great quality: www.banggood.com/NRF24L01-Antenna-Wireless-Transceiver-Module-For-MCU-p-87625.html?p=7I22079633188201703T

  • @Obamjur
    @Obamjur 3 дня назад

    5 years late I found the best tutorial about Nrf24l01 on RUclips. Thank you 😊

  • @Dickard66
    @Dickard66 Год назад +5

    Thankyou Sir for such a clear, concise and easy to understand tutorial. You covered so many aspects which I was not sure about and have undoubtably saved me a lot of time and expense.

  • @robginsburg6413
    @robginsburg6413 6 лет назад +5

    Thank you! An excellent and logically presented tutorial. Has inspired me to start my own experiments.

  • @shyamramnani6313
    @shyamramnani6313 6 лет назад +14

    very good video with clear cut explaination. Good job, keep it up.

  • @user-dg1lf2nb4h
    @user-dg1lf2nb4h 5 лет назад +3

    Man, thank you very much! From Kazakhstan) in russian youtube i haven't find so clear and clean video

  • @tristanmargot1193
    @tristanmargot1193 2 года назад +3

    Couldn't be better, thank you. Excellent tutorial and explanation.

  • @JoaoF_CS
    @JoaoF_CS 4 года назад +4

    Great video man! Good and fast introduction to these modules. New sub!

  • @rasheedmalik6594
    @rasheedmalik6594 5 лет назад +1

    works 100%...as i didnt have the buzzer, so i replaced my code for led blinking to show that data is still being received by the receiver. Awesome and thanks!

  • @dakodaspencershmacked181
    @dakodaspencershmacked181 2 года назад

    Have watched this video several times now, referencing the information. Great video!

  • @ianhayden2839
    @ianhayden2839 Год назад +2

    This code serves as a basic outline for anyone to modify it to their needs. Great job

  • @juanmontes8905
    @juanmontes8905 4 года назад +1

    Thanks for that vert well made tutorial and code explain about the nrf24 modules, you saved my life, almost for now haha thank you very much dude

  • @miketony2069
    @miketony2069 6 лет назад +6

    Very clear and clean video. Thank you

  • @HarshaJSM
    @HarshaJSM 5 лет назад +10

    thanks, bro, I finally got a smile on my face.
    keep making these videoes, all the best for monetization.

    • @bagavathi9428
      @bagavathi9428 3 года назад

      Sir please tell what is the final range of the nrf24l01 modul

    • @robinson4470
      @robinson4470 3 года назад

      @@bagavathi9428 it's 1070 meters in ideal conditions, although I've seen a few tutorials where they avoid using long wires, and wrap the ground cable with the mosi and miso in order to gain a few meters

  • @matyasfiedor1802
    @matyasfiedor1802 3 года назад +1

    Very good tutorial. Well explained code unlike in other tutorials on youtube

    • @TehnoManik
      @TehnoManik  2 года назад

      Thank you for your comment and support. Cheers!

  • @3rd_Millennium_Engineering
    @3rd_Millennium_Engineering 2 года назад +1

    Hello Tehno Manik,
    Thank you for a great video.

  • @gerhardtmeyer3704
    @gerhardtmeyer3704 6 лет назад +4

    Very well presented. Thank you!

  • @explorerx4313
    @explorerx4313 5 лет назад +2

    EXCELENT BRO.. YOU ARE VERY SMART.. THANK YOU VERY MUCH AND CONGRATULATION...

  • @farooqpatel6773
    @farooqpatel6773 5 лет назад +2

    Thank you so much sir. I absolutely understand and I tried it with the help of your vedio.
    Thanks a lots sir.

  • @moazzamsalman8496
    @moazzamsalman8496 5 лет назад +4

    Thanks so much for the amazing tutorial! I finally got my NRF24 working!

    • @vishalgaikwad3044
      @vishalgaikwad3044 4 года назад

      Bro can u help me to make a controller and receiver for 8 channel with nrf24

  • @robert574
    @robert574 2 года назад

    Thanks for the video. It was quite informative and well done.

  • @MrMarkatgrc
    @MrMarkatgrc 3 года назад

    Super Helpful Tutorial!! Thank you very much! 👍👍👍

  • @mcracing2517
    @mcracing2517 4 года назад

    Top Video and easy to follow you!
    Well done!

  • @JoseEnriquePerezAfonso
    @JoseEnriquePerezAfonso 6 лет назад

    Excellent tutorial, i learn a lot. Thank you

  • @omkarbansode6305
    @omkarbansode6305 5 месяцев назад

    thankyou very much Sir, it was really alot helpful in clearing my some misconceptions.

  • @lavitaebella6561
    @lavitaebella6561 3 года назад

    this is the best tutorial about NRF24l01

  • @theengineer7265
    @theengineer7265 4 года назад

    Perfekt video and explanation. Thank you very much

  • @NotSpllit1
    @NotSpllit1 Год назад

    Thanks alot! You are very good at explaining. Subscribed! 👍

  • @casperlehmann
    @casperlehmann 2 года назад

    This is a really good video. Good job, and thank you.

  • @mythorganizer4222
    @mythorganizer4222 5 лет назад

    Thanks a lot man. It has really been a big help.

  • @internetgiest
    @internetgiest 4 года назад

    Very concise, I like the this makes it work here you go, run with it.

  • @shaunsomaru4524
    @shaunsomaru4524 5 лет назад

    Great video. Good explanation.. Keep the videos coming. You have a new sub

  • @karun427
    @karun427 6 лет назад

    Good video ...it was clear and neat . thanks for the video

  • @arletpaz8010
    @arletpaz8010 3 года назад

    this worked great thanks for your contributions sir!

  • @cesaraugustobecker3094
    @cesaraugustobecker3094 4 года назад +1

    Good video tutorial!
    It eliminated many doubts of mine. Easy to understand. I understood even though I didn't know English.
    Congratulations and thank you very much!
    I'm César Augusto Becker from Brazil.

  • @WorkFromHome-th2eq
    @WorkFromHome-th2eq 2 года назад

    Well presented. Thanks from Indonesia

  • @rajashreepriyadarshinijena8236
    @rajashreepriyadarshinijena8236 2 года назад

    *THANK YOU SO MUCH* ....Your video tutorial helped me a lot and I'm so happy that I can't explain in word. Thank You Thank You so much ......

  • @jussiahola9548
    @jussiahola9548 5 лет назад

    Very good video, thanks man!

  • @WhyNotCreateIt
    @WhyNotCreateIt 2 дня назад +1

    Thanks for the amazing explanation inloved the video qnd i tried it with my nrf modules it worked very nicely 😊😊😊😊

  • @ivancordoba1320
    @ivancordoba1320 6 лет назад

    Thank you very much, you helped me a lot

  • @MrJefferson105
    @MrJefferson105 6 лет назад +1

    Mega useful thanks buddy new subscriber.

  • @lantonyj
    @lantonyj 6 лет назад +5

    Thank you very much!!!! Unlike others, this video was very helpful and extremely easy to follow!! I have a quick question, if you don't mind. When you performed the range test how did you power the units? Were you connected to a laptop or did you use a battery power source, if so what did you use?
    Thank you again for taking the time to make this great video

    • @TehnoManik
      @TehnoManik  6 лет назад

      Thanks for your comments. I powered arduino boards with classic power banks, one is ravpower 16000mah, the other some chinese 5600mah. Also I did not work with HC-12modules so cannot comment on that. My primary use for this was controler for heating (thermostat in living room and controler in basement). But I ended up using nodeMCU because its all in the house and i use wifi. Its much simpler and if range is not priority, much more flexible because of webserver.

    • @lantonyj
      @lantonyj 6 лет назад

      Tehno Manik wow thats a lot of current, did you feel that much current was needed? I was planning on using 2 - 3.7 4000mah 18650 in series, do think thats enough or will it be drained quickly. Sorry I cant find any datasheets on this module..

    • @TehnoManik
      @TehnoManik  6 лет назад +1

      I have not tested current consumption, but if I remmeber it will drain about 200ma when transmiting, so depending on your setup and requirements i would say that 4000ma would be enough for at least 15h of transmitting. Of course, this is constant transmission, if you transmit periodically for second or two it would last much longer.

    • @lantonyj
      @lantonyj 6 лет назад

      Tehno Manik again thank you for your time and efforts to help others, I truly appreciate you!!

  • @tomciojongi5292
    @tomciojongi5292 4 года назад

    Thanks for Your tutorial. For today I had a problem to connect nrf24l01with UNO. ;-)

  • @moamoa3303
    @moamoa3303 5 лет назад

    your the best ...really good video very clear ,thanks

    • @renskippen3523
      @renskippen3523 5 лет назад

      Get the NRF2401 here for only 1,50$! It's great quality: www.banggood.com/NRF24L01-Antenna-Wireless-Transceiver-Module-For-MCU-p-87625.html?p=7I22079633188201703T

  • @atimullp_u
    @atimullp_u 3 года назад

    Excelente vídeo, muchas gracias por compartir.
    Me costo un poco, mi ingles es muy malo, pero algo entendí.
    Saludos cordiales desde Perú.

  • @Robin-qw2by
    @Robin-qw2by 5 лет назад

    Thanks it is a very useful video, nice 😊😊

  • @Injudiciously
    @Injudiciously 2 года назад +1

    Hi - what data speeds were you using for the range test please? (I see fastest 2Mb knocks back RX sensitivity a lot). I have also subscribed as it is a really good, clear video.

  • @angelSI2023
    @angelSI2023 5 лет назад

    Thank you nice video. Was very good explained, y had errors before i now why now

  • @fariedardiyanto2705
    @fariedardiyanto2705 3 года назад

    Thanks for this excellent video...

  • @jerwinpalabao9043
    @jerwinpalabao9043 2 года назад

    Very Clear Tutorial Thanks

  • @MD-qz6gk
    @MD-qz6gk 3 года назад +1

    Best tutorial ever !

  • @dwayneament4592
    @dwayneament4592 5 лет назад

    Kudos - Very well done.

  • @charlesklein7232
    @charlesklein7232 4 года назад

    THANK YOU VERY MUCH NICE VIDOE HOPE YOU DO MORE.

  • @davidabraham3873
    @davidabraham3873 4 года назад +1

    Is there a way to pair rc receiver to arduino transmitter, I want an rc receiver because of how compact and cheap it is and also the wide voltage range I can input to it

  • @nielsdaemen
    @nielsdaemen 6 лет назад +3

    I tested them up to a distance of 1500m @250kbps channel 100 (2.500 GHz). At this high frequency there is no interference from wifi!

    • @juanmontes8905
      @juanmontes8905 4 года назад +1

      I will test it bro, sounds pretty good for my proyect of 10km data sending

  • @nodemnet5984
    @nodemnet5984 3 года назад

    good Job gentleman hope your are continue :)

  • @malcolmpalmer2437
    @malcolmpalmer2437 4 года назад +10

    Your code works with the standard nrf24l01 but not with NRF24L01+PA+LNA SMA Wireless Antenna Transceiver. What am I missing here? Or maybe the NRF24L01+PA+LNA SMA set I bought is faulty!!

    • @TechnoTeerth
      @TechnoTeerth 3 месяца назад +1

      Same with me, someone please help

  • @dtn2529
    @dtn2529 3 года назад +2

    Good instructions.
    It would be useful to attach a reference to the library (). Not everyone has everything installed. To write "nRF24L01.h"

  • @aonjon7529
    @aonjon7529 6 месяцев назад

    Very cool tutorial

  • @p1nesap
    @p1nesap 6 лет назад +6

    Nice job, impressive range for 2.4 GHz, considering Bluetooth and 802.11 LAN reach 100m. Any idea why the range with NRF24 is greater?

    • @TehnoManik
      @TehnoManik  6 лет назад +4

      BT devices generally have small internal antennas, and also have high bandwidth. With WiFi using 24dbi directional antennas you can get several kilometers range (tested about 3km with line of sight). As in any rf communication, better antenna and higher power means greater range. Also higher bandwith means less range (for eg 4G mobile network vs 2G GPRS).

  • @SourMushroom121
    @SourMushroom121 5 лет назад

    So I followed the same setup in the video with same hardware and same code. Yet the buzzer goes off constantly instead of at intervals, and it does this whether or not the receiver is off. I've tried a different tutorial and still nothing works. Any ideas of what may be wrong?

  • @lantonyj
    @lantonyj 6 лет назад

    Also I forgot to ask, do you have experience with the HC-12 modules? If so, will you share your experience and also will you make a comparison video, please?

  • @FirstnameLastname-yn5ng
    @FirstnameLastname-yn5ng 6 месяцев назад

    Thank you sir, working fine

  • @thiagoguitar2406
    @thiagoguitar2406 4 года назад

    Se eu tiver esse adaptador não preciso colocar o capacitor entre o VCC e GND?

  • @incredibleinventions4261
    @incredibleinventions4261 6 лет назад +2

    A Very good video

  • @TheMrgagan09
    @TheMrgagan09 3 года назад

    nice range test good

  • @garyrussell2724
    @garyrussell2724 5 лет назад

    Hi.. Im having trouble with my project. Using 2 arduino , I want to make a traffic control system with red and green LED which will light up if the Ultrasonic sensor detect an object (car). I want the system to work wireless using nrf24l01. When the first green LED turn on(for 1 min), the second green LED on the other arduino should turn off (red is on) even if its Ultrasonic sensor detect an object. It can only turn green after 5 second the first red LED turn on while the green was off. Can u help me with the program?

  • @alainvihumbira8354
    @alainvihumbira8354 4 года назад

    Hi, I would like to know if the NRF24L01 with antenna can work without Base Module?

  • @dwieztro6748
    @dwieztro6748 5 лет назад

    hii...i've successed using nrf24 with internal antena, but when i try to using nrf24 with external antena, function isChipConnected( ) always return false / zero. what should i do?

  • @lahirupamodya6188
    @lahirupamodya6188 5 лет назад

    very good video, thank you

  • @himangshudas25450
    @himangshudas25450 6 лет назад +1

    Can i transmit video data with these modules ??

  • @jumbo999614
    @jumbo999614 3 года назад

    Do you still need adapter if you're going to connect NRF to NodeMCU or ESP32 which has 3.3v output?

  • @jamesanderson5167
    @jamesanderson5167 4 года назад

    What is the min distance between the transmitter and reciever to test the units are working?

  • @maheshpatil9589
    @maheshpatil9589 6 лет назад

    keep it up bro....👌👌👍

  • @mabhenagm
    @mabhenagm 2 года назад

    Thank you for the video it has helped me on my project. What software did you use to test the range?

    • @ianhayden2839
      @ianhayden2839 Год назад

      It looks like Google earth. If you know the location of the transmitter, keep that in mind and drive with the receiver until it looses signal, then map it on Google earth

  • @vasilisvasileiadis9349
    @vasilisvasileiadis9349 2 года назад

    Hello! I have an arduino uno and an arduino nano. I have uploaded the code of transmitter in arduino uno and for the receiver in arduino nano (in different pins) nd instead of a buzzer i placed a led ,but it doesnt work. Why is that happening? Thank you in advance!

  • @ginglee4199
    @ginglee4199 2 месяца назад

    What specific base module you are talking about, can't find them online

  • @Davide-hi2lk
    @Davide-hi2lk 2 года назад

    Hi I had a little question do you think it works if we control it from home knowing that I control it from a lap of about 40 m and that the receiver is still in motion at 20 cm from the ground In the middle of town?

  • @marcelldavis6426
    @marcelldavis6426 3 года назад

    How can you add someting in your transmitted data like 2 float variables ?

  • @bernardoalvarado8880
    @bernardoalvarado8880 3 года назад

    hello good video, do you have any video with the MQ-135 sensor with this antenna?

  • @1abas
    @1abas Год назад

    Can Bluetooth signals be detected and a ring is emitted when detected by these electronic parts?

  • @luolisave
    @luolisave 6 лет назад

    Like it, very useful.

  • @tundeo7675
    @tundeo7675 6 лет назад

    my buzzer doesn't delay, it's just a solid tone. Even when only the receiver is powered .
    Anyone have any idea why>

  • @malaysiatruth5494
    @malaysiatruth5494 2 года назад +4

    My name is Mahamad. I am from Malaysia. Your video is simple and easy to understand. I am very interested in using the NRF 24L01 as voice transmitter and video transmitter. But I dont know how to program it. Can the source code you give work with the arduino nano /mini pro and uno base ? Thank you very much for your effort to make such a good video for International / global audiance .

  • @Schlohmotion
    @Schlohmotion Год назад

    11:23 When I power it up, the LED on my base module turns red. Is this right?

  • @fil9625
    @fil9625 8 месяцев назад

    If we put the transmitter inside a house, and put the receiver outside, theoretically how much range can we get?

  • @maheshpatil9589
    @maheshpatil9589 6 лет назад

    keep it up bro....

  • @romarpv
    @romarpv 4 года назад

    Excelente vídeo

  • @AkashBagFEce
    @AkashBagFEce 8 месяцев назад

    I'm designing a yegi antenna for nrf24l01 modules! How much renge will we get? What you think?

  • @jeranrai645
    @jeranrai645 5 лет назад +1

    Somebody help me, We only defined the CE and CSN pin of the NRF24lo1 to the arduino in the code, what happened to the rest of the three NRF24l01 pins ( SCK, MOSI, MISO) in the code, or it dosent matter to the code ! so we could randomly connect these pins to any digital pins in arduino differently in transmitter and receiver ?

    • @justinp8044
      @justinp8044 5 лет назад +1

      The atmega328 chip has predefined pins for SCK, MOSI, and MISO as digital pins 13, 11, and 12 respectively. The chip select pin can be any digital pin, pulling low to to enable the communication, as per the SPI documentation.

  • @Nalanaij
    @Nalanaij 5 лет назад

    How did you investigate the data loss?

  • @BertHeideveld
    @BertHeideveld 2 года назад

    Thank you.

  • @tamasdebreczeni5335
    @tamasdebreczeni5335 6 лет назад

    Hi. My problem is that my connection its only working when i put my hand on the transmitter radio antena . Do you have any idea what should I do ?

  • @leabernadettebasisao4660
    @leabernadettebasisao4660 4 года назад

    Is it possible to have one tx and multiple rx?

  • @danhcong5234
    @danhcong5234 4 года назад

    Could anyone control D10 in pwm mode when use this rf module?

  • @irontronics4707
    @irontronics4707 6 лет назад

    Thanks a lot, with this video I could did a behavior test and I could saw a perfect behavior with my modules. thank you !! another thing, you know how send analog values with these modules, for example send potentiometer values or a some temp sensor values? regards!

    • @TehnoManik
      @TehnoManik  6 лет назад +1

      Glad you like the video, thanks for comment. As for sending values, you can cast it to char array on the transmitting unit and send it to receiver. Than on receiver end if needed cast it back to numerical type (int or float) so you can use it in your calculations.

  • @allefherculano4862
    @allefherculano4862 2 года назад

    muito bom, vc teria um exemplo bidirecional (tranceiver)
    ?

  • @ElectroIoT
    @ElectroIoT 4 года назад +1

    Which capacitor value we use

  • @ilhamagungwicaksono2775
    @ilhamagungwicaksono2775 5 лет назад

    What are the method that you used while you measure the range of nRF, are you use GPS Module?, Thank You