Arduino Wireless Communication - NRF24L01 Tutorial

Sdílet
Vložit
  • čas přidán 12. 09. 2024
  • howtomechatron... ► Find more details, circuit schematics and source codes on my official website.
    In this Arduino tutorial we will learn how to make a wireless communication between two Arduino boards using the NRF24L01 transceiver module.
    Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
    ► howtomechatron...
    Like my page on Facebook:
    ► / howtomechatronics
    Add me on Google+:
    ►plus.google.co...
    Music: Aduro by Jens Kiilstofte (machinimasound.com/music)

Komentáře • 657

  • @geluidsbox9195
    @geluidsbox9195 Před 7 lety +60

    I literally got my 3 NRF24L01 modules today and was trying to find a good tutorial, and now you uploaded this, thanks!!

    • @fouzaialaa7962
      @fouzaialaa7962 Před 7 lety +1

      i was lost between using wifi or xbee or RF and what do you know our friend decided to upload a video !

    • @geluidsbox9195
      @geluidsbox9195 Před 7 lety +2

      Go for the NRF, I also got my wifi-module today and it's terrible. If you're going for the wifi module buy one which is build in into an arduino, like the Wemos!

    • @-EhsanMalik-
      @-EhsanMalik- Před 2 lety

      I love being 4 years later

  • @aonoymousandy7467
    @aonoymousandy7467 Před 5 lety +46

    clear and helpful tutorial, I like that you go in depth on what you are doing unlike many other tutorials, thanks

  • @dannylumcreative
    @dannylumcreative Před rokem +4

    Great video thank you so much! I just wanted to bring to your attention that the 2 of the 3 green wires at 2:32 for the arduino nano are incorrect. MOSI is correct. But you have SCK running to 12 when it should be 13. And MISO is running to 10 when it should run to 12

  • @Eurus721
    @Eurus721 Před 6 lety +29

    Noticed one small error in the drawing that I'm sure has already been mentioned but not recently maybe. On the Nano in the picture the green wires are running to 10, 11 and 12 rather than 11, 12 and 13. 13 is on the other side of the board. Only I would follow the picture and miss that the numbers everywhere have it correctly. Don't want to say how many hours I messed that up and I've used SPI before and actually was bummed because it uses my little flashing LED pin 13. Not at my best today.
    Really great video and your link to your page really helped. Super. I don't know I could have linked them without it. Many thanks.

    • @HowToMechatronics
      @HowToMechatronics  Před 6 lety +10

      Yeah, thanks for the remark.

    • @Kang38290
      @Kang38290 Před 5 lety

      yeah I struggled with them hours too small mistakes

    • @plebaniaurydzyka8356
      @plebaniaurydzyka8356 Před 4 lety +4

      What do you think, Can I use this module with just AtMega328 (without Arduino)?

    • @malcolmwicca
      @malcolmwicca Před 3 lety

      @@plebaniaurydzyka8356 Yes you can. I have used the Atmega 328 on its own for use in model aircraft. Works great.

    • @m4nuz
      @m4nuz Před rokem

      @@HowToMechatronics Man, just mark it in your video and on your website... you cost many people plenty of time...

  • @David-uy7ev
    @David-uy7ev Před 3 lety +8

    Thanks, this was a huge relief, because I've watched several other tutorials, and it didn't work then. I really appreciate you

  • @johnnynickles6955
    @johnnynickles6955 Před 5 lety +16

    Thank you for posting this tutorial! I was at a wireless data communication bottle neck on a robotic arm project and you just saved the day! Great job my friend! So happy!

  • @pow9606
    @pow9606 Před 4 lety +3

    Nice introduction to the NRF24L01. The diagram of the Arduino Uno/Nano at 2:30 seems wrong but the arduino mega seems correct. Would of been nice to see the demonstration at the beginning with a clear view of the wiring. Thanks for the tutorial.

  • @Daus-eu9kw
    @Daus-eu9kw Před 3 lety +1

    Just finished testing your code, it works! thanks.
    I add "radio.setChannel(0)" after "radio.begin" at both transmiter and receiver sketch. It is to make sure both receiver and transmeter in the same channel. Since it is 125 channels altogether then i use 0 at both. Thanks again.

  • @EnvoyOfFabulousness
    @EnvoyOfFabulousness Před 3 lety +14

    I believe I just discovered a small mistake in the video (with the Nano/Uno at least, I am using 2 Uno's) that was causing me some headache in figuring out what I was doing wrong. If you're having trouble like I was maybe this will help you (for me, the receiving end was getting a flood of blank input and eventually getting some weird characters before outright stopping (viewing with the serial monitor).
    At 2:30, you list the CSN as being connected to Pin 8 and CE to 7, for the Nano/Uno. However, if you look at the code at 2:40, you have the line:
    RF24 radio(7, 8); // CNS, CE
    Which I assume implies that you have the CSN connected to 7 and CE to 8, in their respective order. This is reversed from the list 10 seconds earlier. All I had to do was swap which wire was going to which pin and suddenly everything is working fine. Just swapping the lines in the code should have worked too.

    • @antoniobalandi
      @antoniobalandi Před 3 lety +3

      I ran into the same problem as well. I think the comment should have stated RF24 radio(7,8) //CE,CNS...... that's the set up that worked for me. Eventually switching them around just like you did. Instead of switching the wires, i just switched the number on Arduino

  • @halstaff
    @halstaff Před 5 lety +4

    Nice tutorial but there are a couple of things that I needed to correct in order to get both examples to work.
    First, the wiring diagram for the Nano is incorrect. Use the written pin assignments at 2:33 in the video.
    Second, in order to get the second example to work, I had to change this line in the transmitter code - while (!radio.available()); to if (!radio.available());
    Thank you for all the help in getting this project working. Now to add more servos!

    • @daliborbaricevic685
      @daliborbaricevic685 Před 5 lety +1

      @Mateo M wrong, you can use same pins as on Nano board, 11, 12, 13 and 7,8 or whatever pins you decide to use as CE and CSN pins. Nano, Uno and Pro Mini board have the same pins for SPI.

    • @m4nuz
      @m4nuz Před rokem

      @@daliborbaricevic685 he was right. the wiring diagram is incorrect.

  • @CineonElectronics
    @CineonElectronics Před rokem +2

    Huh, here's my story. I was fixing it and fixing it, and Was unable to get it to work, not even the basic transmission, and kept trying everything, everyone's code, everyone's library, all lead to failure. I was stubborn and didn't want to give up on them. And then I finally decided to try and replace one of the modules with the 3RD one I had lying around, and wola! it worked.
    -I was struggling so hard, and didn't want to test the other module because I was kinda lazy and kept thinking that there is some interference in the wires, or that my Arduino 3.3V was insufficient so I ordered 3.3V linear stabilizers and the outcome was the same, then I tried wrapping the ground wire around the Miso, still nothing, not working.. and then for the last resort I swapped one of the modules, and luckily enough I swapped the broken one on the first try and the Transmission began, So let everyone know, if you're unable to get it to work, not even any transmission,and you checked everything, then perhaps you really have a faulty module, and it isn't the bypass capacitor nor the insufficient arduino 3.3 power supply.

    • @orange_tweleve
      @orange_tweleve Před rokem

      I bought 3 Pa LNA modules and only 2 works, but even to get those two to work I had to attach 3.3 ams1117 regulators and 1000uf capacitors. But now they work perfectly with that addition.

    • @orange_tweleve
      @orange_tweleve Před rokem

      I think I will have to refer the datasheet to actually check , but I've noticed some modules don't have all 4 resistors connected while others have ( they are the 4 resistors along with one capacitor all parallel in the middle of the board,) on some modules all the resistors are there but in some others they are not there. Either ways all those modules work.

  • @Poult100
    @Poult100 Před 3 lety +1

    Excellent! Thanks. And also, thanks for not drowning your videos with 5h1t 'music'! Your voice is important and it comes across well! 👍

  • @Blink-ut7uh
    @Blink-ut7uh Před 4 lety +17

    Hi. I am using web editor and I have tried desperately again and again to get the NRF24L01 to work. I keep getting either no messages or weird encrypted text on the serial monitor. I need help.

    • @barakyona
      @barakyona Před 4 lety +1

      i have the same problem, did you fix that?

    • @Blink-ut7uh
      @Blink-ut7uh Před 4 lety

      @@barakyona Yes! i fixed it a long time ago

    • @Blink-ut7uh
      @Blink-ut7uh Před 4 lety

      @@barakyona Do you need me to help you?

    • @barakyona
      @barakyona Před 4 lety

      Blink yes bro do you have a discord? Or Facebook? So we can talk

    • @Blink-ut7uh
      @Blink-ut7uh Před 4 lety

      @@barakyona I do! Add me @ Andrew Bejger on facebook

  • @BGLENN-dp4tx
    @BGLENN-dp4tx Před 6 lety +3

    OUTSTANDING VIDEO! Thank you very much. Not only did this completely explain the subject matter, I enjoyed the precise articulation which compresses a rather large amount of information into an efficient time line.
    I did have one question. Instead of only 6 receivers, I need to expand this. So, would you have ideas to share for, say, adding a second group of 4 receivers? One group of 6 and another set of 4? If you have a blog, I'd be happy to continue this conversation in that manner. Thanks.

  • @IncroyablesExperiences
    @IncroyablesExperiences Před 6 lety +33

    Am sorry but there is a mistake in the way the Arduino nano is hoocked up for SPI (the 3 green wires are wrong and the pin 13 is used). Great otherwise :)

    • @WungoBungo
      @WungoBungo Před 3 lety

      Excellent point. Hardware SPI is really important for this module due to the high bandwidth if you want low latency

    • @sanghyunnam1098
      @sanghyunnam1098 Před 3 lety +1

      @@WungoBungo Quick question. Do you know roughly what the latency is?

    • @drakkorvladimir4012
      @drakkorvladimir4012 Před 3 lety +3

      @Allan Thiago I hacked her account also and she wants to meet up with me again.

  • @theowlfamily9301
    @theowlfamily9301 Před 3 měsíci

    Really easy to understand and helpful!!Thank you! It's the first video of coding in arduino that I understand

  • @tracythompson8520
    @tracythompson8520 Před rokem +3

    Awesome work. You have saved me a LOT of time.

  • @arpitjayaswal8646
    @arpitjayaswal8646 Před 7 lety +5

    Hello, Youve connected CSN to 8 and CE to 7 but in code you mentioned otherwise? why?

  • @aldeen19
    @aldeen19 Před 6 lety

    Finally I got it working after two days of attempts trying to find out what was wrong, I replaced the Nano board with Uno board.. Thank you very much.

    • @kenengel6223
      @kenengel6223 Před 6 lety

      Did you have problems with both demos, or just the second one? I'm using two Nanos. I got the first demo to work, but not the second.

  • @jonoalf1986
    @jonoalf1986 Před 3 lety

    Great Video, the only one I've seen so far that has Send and Receive functions on both ends.

    • @HowToMechatronics
      @HowToMechatronics  Před 3 lety

      Glad you found it useful. Cheers!

    • @jonoalf1986
      @jonoalf1986 Před 3 lety

      @@HowToMechatronics On another video of yours, you used a breadboard to assist soldering headers to Arduino's...Great Idea, did it earlier today.

  • @Echine10HM
    @Echine10HM Před 5 lety +5

    I thank you for this video and the tutorial link, I learned a lot from you.
    I share your creations and put thumbs to the sky. ;)
    Continue like this, I become a big fan ^^.

  • @shawnaksawaikar4104
    @shawnaksawaikar4104 Před 6 lety +26

    Hey dude codes for printing hello world for both transmitter and receiver are compiling without error but not working

    • @kenengel6223
      @kenengel6223 Před 6 lety +1

      See my comments above. (Sort by date.)

    • @kenengel6223
      @kenengel6223 Před 6 lety

      dadigitechman Pin 8 is the only optional pin.

    • @Mr.M1STER
      @Mr.M1STER Před 4 lety

      @@dadigitechman You don't have to use pins 7 and 8. I used pins 9 and 10 and it worked fine but you have to define the pins you are using in the code. The code here defines pins 7 and 8 for CE and CSN so you need to modify the code. This does work.

    • @Mr.M1STER
      @Mr.M1STER Před 4 lety +2

      @@dadigitechman It's reasonably straight forward. The only line of code you have to change is this one "RF24 radio(7, 8); // CE, CSN" just type in (9,10) if you plan on using those pins on the arduino. I agree that using pins 9 and 10 for CE and CSN makes the overall wiring much neater. Follow the link in the video description to the tutorial for the full code as it is good and all of that code works. You may need to modify the code for your own application depending on what your project is and what you are trying to achieve but that is up to you to do some research and play around to figure out what part of the code you need to modify. It is very possible that your wireless modules are faulty and I have seen faulty ones from China in the past. If you follow the tutorial in this video exactly right and it doesn't work then it may be your modules.

    • @Mr.M1STER
      @Mr.M1STER Před 4 lety

      @@dadigitechman Yeah do a video and I will watch it and see if I can help.

  • @leventegulyas6491
    @leventegulyas6491 Před 7 lety +7

    Thank you for the video! simple and easy:) GUYS ALL OF YOU WHO CANT GET IT TO WORK! I spent days and night to bring it to life, I tried all projects and all examples but haven't succed. The problem was i had to add a capacitor between the gnd and 3.3v pins on rf24, it solved the problem:) and try to set pa level on max. U need to add 1-100 microF capacitor.

    • @harithalau1970
      @harithalau1970 Před 2 lety +1

      i cant get it working, what is the reason to add the capacitor?

    • @samuelhofelich175
      @samuelhofelich175 Před 11 měsíci

      @harithalau1970 reduce voltage spikes wich could interfere with the radio signals and making it unreliable

  • @candidotorchio6475
    @candidotorchio6475 Před měsícem

    Thanks, with your very informative videos I am learning a lot of things. And everything I build with arduino following your tutorials works well. Thanks

  • @ThePointlessBox_
    @ThePointlessBox_ Před 4 lety +1

    just something I noticed, in the video your comment when you created the radio object you have it read as CSN, CE but on your website its the other way around CE, CSN

  • @jeffkrueger8644
    @jeffkrueger8644 Před 7 lety +1

    Thanks for a great tutorial. You cleared up a lot of stuff I was confused about.

  • @mitsos306ify
    @mitsos306ify Před 3 lety

    Best intro to wireless communication! Thanks!

  • @huwroberts4825
    @huwroberts4825 Před 7 lety +2

    To make it easy for Newbies Note in i.e Getting Started Program find code RF24 radio(7,8); alter to reflex say RF24 radio(9,10); //CE, CSN Please note CSN on Mega should be on 53 if not then add pinMode(53,OUTPUT); First line in void setup()........ Due does not mind as it expects pin 4,10,53 to be CSN. Uno only pin 10 for CSN This then conforms to ARDUINO SPI Library
    MY Colour Coding and pin out for nRF24L01
    Pin 1 Brown 0v Ground Pin 2 Red +V 3.3v
    Pin 3 White CE Pin 4 Black CSN
    Pin 5 Purple SCK Pin 6 Grey MOSI
    Pin 7 Blue MISC Pin 8 Orange IRQ
    Uno Colour Mega Due Due Header SPI
    9 Any pin White 9 Any pin 9 Any pin CE
    10 Black 53 4,10,53 CSN/SS
    11 Grey 51 51 ISP-4 MOSC
    12 Blue 50 50 ISP-1 MISO
    13 Purple 52 52 ISP-3 SCK

  • @davidporras761
    @davidporras761 Před 5 lety +28

    Hi people, i think i may have found the problem some of you are facing...on 2:26, the connections of MOSI, MISO and SCK are in the pins 10, 11 and 12....buuuuut, the pins for the SPI connection are 11, 12 and 13...and actually on the description below the Nano pin numbers are right, its the image that fools us...

    • @michalsimanek6988
      @michalsimanek6988 Před 5 lety +1

      Can confirm, I found out the hard way. The picture is wrong, but the description is correct. (at least on the Nano)

    • @felixbaum2180
      @felixbaum2180 Před 5 lety

      how much is the range of them?

    • @davidporras761
      @davidporras761 Před 5 lety +1

      @@felixbaum2180 About 85 meters in open space, there are some other models with antenas that can go up to 900m...

    • @felixbaum2180
      @felixbaum2180 Před 5 lety

      @@davidporras761 Thanks for the quick response. 85m are perfect. I just need to transmit over about 30m, but within my house, so through a few walls of concrete

    • @davidporras761
      @davidporras761 Před 5 lety

      @@felixbaum2180 Mmmm concrete walls could make the signal loose too many packages, 15-20m should be fine if there are no more than 3 walls, but with 30m im not sure...
      In that case you could use a module with antena (anthena?) as transmitter and a normal one as receiver, thats what i always do actually, just to be sure haha...

  • @stedst
    @stedst Před 3 měsíci

    Good video! Very thorough and helpful.

  • @tmsk8er364
    @tmsk8er364 Před 7 lety +1

    i`v been waiting for a new video , and surprised you made the video im looking for

  • @MegaTechno
    @MegaTechno Před 5 měsíci

    Finally it works. Don't use breadboards to make the connections because the breadboard turn into a small capacitor.

  • @rishikeshsinghbhati755
    @rishikeshsinghbhati755 Před 7 lety +1

    Sir please make lecture on weight sensor in detail . Your video lecture is really nice and informative .

  • @malcolmwicca
    @malcolmwicca Před 3 lety

    Brilliant video. Best explanation yet on how to code for nrf24L01. Many, many thanks for posting this tutorial.

  • @TechSlice
    @TechSlice Před 4 lety +1

    Nice work! I am sitting here trying to think how I can implement this in some of my projects.

  • @johnmcginnis1779
    @johnmcginnis1779 Před 4 lety

    Great experience, I used 2 NANOs. Comments about pin 13 helpful ... worked first time. Thank you !

  • @MsEDUARDOCR7
    @MsEDUARDOCR7 Před 7 lety +5

    Congratulations! excellent project. It would be great if you make a wireless project using Xbee modules. I know these devices are expensive, however, you can consider this project for the future.

  • @EasyHomeMadeProjects
    @EasyHomeMadeProjects Před 7 lety +7

    Nice Man!

  • @resonance2001
    @resonance2001 Před 6 lety

    Thanks for a very useful video. That has got me started with these great transceivers

  • @aswinthraj9021
    @aswinthraj9021 Před 7 lety

    Hi Dejan,
    You are doing a great work!!
    Can you tell me which software you are using to edit the videos? They look perfect

  • @someonecooltech
    @someonecooltech Před 3 lety

    In this project, only one input is allow at once, so if I want to make it read and write at the same time, I need to use to pair of NRF24L01, right?

  • @belkocik
    @belkocik Před 5 lety +11

    I've got in the serial port monitor message like this but upturned question mark -->>> "????????????????????" What is the problem? I've done everything like in this video :O

  • @vedant6633
    @vedant6633 Před 7 lety

    WoW HOW EASILY U EXPLAINED THE NRF24l01 THANKS A LOT

  • @wondeanb4098
    @wondeanb4098 Před 5 lety +3

    Thanks. Clear and helpful tutorial.

  • @oliverjepp3113
    @oliverjepp3113 Před 24 dny

    IDK if this is just for me but contrary to the code in the video @2:55, the CE pin should go on 7 and the CSN pin should go on 8.

  • @RayES03
    @RayES03 Před 7 lety

    Nice short and to the point.

  • @kalebgross3730
    @kalebgross3730 Před 3 měsíci +2

    when i try to recreate the first example. the code sends a message but in the serial port on the reciever nothing is recived
    any idea to why

  • @mikelemon5109
    @mikelemon5109 Před 7 lety +3

    If this code could work without "
    nRF24L01.h" why would you include it?

  • @Ararad_Sarkissian
    @Ararad_Sarkissian Před 2 lety

    Very good video, but I am having "Noise" problems, and I saw others are having similar problems. Any suggestions or improvements that you would recommend?

  • @ayobtr
    @ayobtr Před 7 lety +5

    Hello, thx for this tutorial. I have a problem, I uploaded the exact same code on my Arduino Mega and my Uno, but it's not working. I use my mega as a recepter and It justs write some squares and '?'. Have you got any idea ?

    • @aisoft1891
      @aisoft1891 Před 5 lety

      same i got last night . any solution ?

    • @rvlad13
      @rvlad13 Před 4 lety

      You should check a baud rate in serial monitor which you have coded, may be that can help.

    • @MoXyiD
      @MoXyiD Před 4 lety

      @@rvlad13 That is exactly the problem. The baud rate is not matched to the clock speed. because UART has no clock (its asynchronous).

    • @jawhersebai
      @jawhersebai Před 4 lety

      me too i changed the baud rate and stil the same problem

    • @EnvoyOfFabulousness
      @EnvoyOfFabulousness Před 3 lety

      I'm 4 years late on this but I was getting something very similar. Try swapping the 7/8 pins for the CSN/CE wires going to the nRF24L01. If you look, at 2:30 and 2:40 he has the pins reversed between the explanation/code.

  • @zwurltech9047
    @zwurltech9047 Před rokem

    Absolutely great stuff, thank you very much!

  • @fredgenius
    @fredgenius Před 3 lety

    Excellent! Clear and concise example, many thanks.

  • @chickenchannel506
    @chickenchannel506 Před 3 lety +1

    Can I send and receive 2 push buttons?

  • @wangouthangout
    @wangouthangout Před 4 lety +1

    I think if you use signal modulation rather than simply the channels to pair transmissions with receivers you can probably have many more than 125 devices within range of each other

  • @Anton-sz6ef
    @Anton-sz6ef Před 5 lety

    Thank you! The bilateral communication thing is very useful!

  • @tabelchobg1756
    @tabelchobg1756 Před 4 měsíci +2

    I'm confused, on the picture of Nano you have connected ports 10, 11, 12 to nrf2401, but you have written in the script ports 11,12, 13. I don't know what to use, and my experiment doesn't work! What could I do next?

  • @kondordv
    @kondordv Před 5 lety +1

    it doesn't work. first example well compiled and uploaded but nothing received at receiver side. WHY?

  • @jeffkrueger8939
    @jeffkrueger8939 Před 7 lety

    Great tutorial. The simple sketch in the beginning help me a lot.
    One question though. The line const byte address[6], is the 6 referring to the pipe being used. Nobody seems to explain what the number in brackets is referring to.
    Thanks again for the great tutorial. Jeff

  • @AmateurInventor
    @AmateurInventor Před 4 lety +1

    My nrf modules don't want to communicate with each other, I tried your test code as well as bidirectional communication code, they upload successfully to board but nothing happens. I tried changing nrf modules and my Arduino but still no any output in serial monitor as well as servo outputs

    • @arhamthowheed9471
      @arhamthowheed9471 Před 4 lety +1

      You need to get an nrf24l01 breakout board and wire the arduino 5v vcc output to the breakout board input vcc

    • @AmateurInventor
      @AmateurInventor Před 4 lety

      @@arhamthowheed9471 thank you very much for your reply but I have soldered them directly on board and I am using a Arduino mega board which at 50ma output current at 3.3v and I am also using a 220uf capicitor directly on nrf board. After fraustations I quit with loss of time and money. Any help will be appreciated.

    • @arhamthowheed9471
      @arhamthowheed9471 Před 4 lety

      @@AmateurInventor Ok all you need is 2 arduino boars, 2 nrf24l01 modules without a capacitor soldered on them and 2 breakout boards, assuming you already have 2 arduinos, 2 nrf24l01 modules and breakout boards should cost you about £5, when wiring them wire teh 5v pin on the arduino the the nrf24l01 breakout board input vcc. if you need more help add me on discord___> snakeviper123#2297

    • @AmateurInventor
      @AmateurInventor Před 4 lety

      @@arhamthowheed9471 But unfortunately the place where I live, I can't import these from any international sellers like Amazon or eBay. Please suggest me another way.

  • @bwmusiq5283
    @bwmusiq5283 Před 4 lety +1

    If anyone gets blank output in serial monitor......then You must check the connection..... actually pin 11,12,13 in the diagram is incorrect.......13 is the opposite side...... Better see the pins and connect it yourself.......
    Anyway great video...

  • @pasblo39
    @pasblo39 Před 6 lety

    thank you have helped me with the nrf24L01 it was causing me a headache.

  • @zuluuu1586
    @zuluuu1586 Před 4 lety

    Man you are great ! All is so clear clarify. Thanks

  • @HaiTHaMKoBeIssI
    @HaiTHaMKoBeIssI Před 7 lety +1

    very clear and simple explanation, thank you.

  • @abinavanantharaman1555
    @abinavanantharaman1555 Před 7 lety +1

    Hii Dejan!! Thanks for the tutorial. Had a small doubt .. like you said the nrf has 125 channels and if I am not wrong each channel can have 6 address pipes. So the lib which you have used in this tutorial has any function for setting the channel freq? What if I want to connect 10 devices on 10 diff freq and all the 6 address pipes in each channel/ freq have to be dedicated to that specific device.. Is it possible??

  • @maqeelqureshi
    @maqeelqureshi Před 7 lety

    Thanks. Exactly what I was looking for.

  • @vikaskandari3741
    @vikaskandari3741 Před 5 lety +2

    Thank you my NRF modules are working perfectly with 2 arduino nanos also you missed pin 13

  • @petaflop.
    @petaflop. Před 4 lety +1

    I tried the tutorial to display 'hello world' on the receiver module but nothing happens, can you suggest a fix? There was no error and the library was correctly downloaded, but nothing is happening.

    • @EnvoyOfFabulousness
      @EnvoyOfFabulousness Před 3 lety

      Try swapping your wires for the 7/8 pins (CSN and CE), or swap the numbers in the code when you create the radio. If you notice, at 2:30 and 2:40 he has the pins reversed between the explanation and the code. Just a small mistake in the video I believe, I was getting the same thing until I figured it out.

    • @petaflop.
      @petaflop. Před 3 lety

      @@EnvoyOfFabulousness Thanks! I'll try it out.

  • @syncope7064
    @syncope7064 Před rokem

    Thank you so much, you are the one who's sketch and connection works. But I still have a question. Why nothing works when I change power supply. It works only from 3.3 v Arduino output. Other power supplies (batteries, MB-102...) Don't provide possibility to work properly for nrf24l01

  • @fouzaialaa7962
    @fouzaialaa7962 Před 7 lety

    as always from the first minute i feel like i know this module already you explained it so well that i will change my project from wifi (hard for me) to RF ..... excellent video love it...i have a question for you can the modules be configured to be like 6 emitters a single receiver ?? i have a project and i need 50 separate transmitter boards to send data to the same receiver so my solution is i will have every board pass data to the next board that way i can get data from all of them !!! can i do that ????

  • @nosknut
    @nosknut Před 6 lety

    Dejan Nedelkovski your sketch for the nano says SCK is connected to D10 while the list says D13. Just in case you diddent notice ;)

  • @hannesgroesslinger
    @hannesgroesslinger Před 6 lety +15

    This is a great video, it helped me out a lot.
    However: your wiring diagrams on the Arduino Nano are wrong!
    The SPI wires should be connected to pins 13, 11, and 12 but according to the picture both in this video and on your website they are connected to pins 12, 11 and 10.
    The text underneath shows the correct pin numbers, but the picture is clearly wrong since pin 13 is on the other side of the board.
    Took me nearly an hour to figure out why my sketches did not work, until i found a different wiring diagram on another website.
    Kind of my mistake, since i went purely by the picture instead of checking the pin numbers. But still...
    Anyway, thanks for the otherwise awesome tuturial.

    • @IncroyablesExperiences
      @IncroyablesExperiences Před 6 lety

      Hannes Größlinger : Right the same! Until I saw the pin 13 for SPI and everything hoocked up in the same side of the nano :3

    • @jasonhou1992
      @jasonhou1992 Před 6 lety

      Hi, Hannes, I followed your instructions to re-connect my circuit, but only question marks show up

  • @ravitejaponnuri6734
    @ravitejaponnuri6734 Před 4 lety +1

    How many receivers can receive the same signal through a single common transmitter pipe address..?
    Pls clarify the doubt...

  • @laboratoriodepesquisasbana7434

    this is awesome dude thank you to help me

  • @richardneal3841
    @richardneal3841 Před 7 měsíci +1

    Thank you for your tutirial it was very good as I am setting up an RC module now, but having trouble with noise as I can't read what is xmitted? baud rates are set to 9600 and I still have not found the problem?
    Rick

  • @khalidhaidar4050
    @khalidhaidar4050 Před 7 lety +4

    brother i write the code as you put but the message (hello..) does not appear

    • @vladimirsch.3015
      @vladimirsch.3015 Před 5 lety

      Check the wiring. The scetch that he showed is wrong but the description is rigth.

  • @Anuragkumar-xm9qb
    @Anuragkumar-xm9qb Před 6 lety +2

    Serial monitor show random output at reciver end.....what should I do....plzz help me out

  • @stevenalbright3363
    @stevenalbright3363 Před 7 lety +2

    I was wondering if you used the Mega Arduino for a particular reason like it being more powerful , I have two pro minis I am going to experiment with and was also wondering if just wiring them identically shouldl work for them communicating?

    • @erksampat9328
      @erksampat9328 Před 7 lety +1

      No. The Arduino Mega will not supply more power and will not increase range. It will work identically with Pro Minis as long as you power the Pro Minis with a decent power supply.

  • @lahirukahavita723
    @lahirukahavita723 Před 3 lety +2

    Why doesn’t my sketch upload to my arduino uno it says “can not compile the sketch to arduino uno” and every project that includes nrf radio module does the same error while compile the sketch

  • @floridian080
    @floridian080 Před 2 lety +2

    Interesting videos, thank you. The first sketch worked for me. I used the Nano IPSP rather than the numbered SPI pins. For the second sketch, I also used IPSP with identical hookup of the wires for the receiver/transmitter. Also, I used a potentiometer instead of a joystick. I ran the servo side off battery and the led side off computer. I verified multiple times that wiring was correct and that send and receive channels were appropriately reversed on the 2 Nanos. Nothing I could do succeeded in making the second sketch run. Presumably the error is mine and not in the sketch, but I cannot find it. It is tedious to do the wiring and then have the project fail, but maybe I've overlooked something obvious and will eventually find it.

    • @bennettoneill203
      @bennettoneill203 Před 2 lety +4

      hey you might not remember but how did you get this working? it keeps returning false for radio.available so nothing in the if statement runs.

    • @bennettoneill203
      @bennettoneill203 Před 2 lety

      Fixed it my connections were wrong hehehe

  • @learnings...1448
    @learnings...1448 Před 6 lety +1

    should we program or pair NRF24L01 before ......
    And start this tutorial/.....

  • @celsobarcelos2797
    @celsobarcelos2797 Před 2 lety

    Very good!!! Congratulations by explanation!!!

  • @ketutadekurniawan8871
    @ketutadekurniawan8871 Před 6 lety +1

    question sir,
    is it perhaps the data will sent without lost if I use the delay 50 us using delay() or micros() function?

  • @scubaken89
    @scubaken89 Před 4 lety +1

    Thank you for all the informative videos / tutorials.
    I am no programmer but I've been messing around with an Arduino Mega and Nano. I am trying to to use the Nano and NRF24L01 to transmit to the Mega information from various / multiple sensors. I cannot figure out how to compile the Transmit / Receive code so I can keep adding or changing sensors. I currently have it working with a Ultrasonic sensor but I can't figure out how to add in Temperature and Humidity. Any help will be greatly appreciated. Thanks.

    • @HowToMechatronics
      @HowToMechatronics  Před 4 lety

      Hey, check my Arduino RC Transmitter project, you can find more details and a bit different method for structuring and sending/ receiving the date using the NRF24L01 module.

    • @scubaken89
      @scubaken89 Před 4 lety +1

      @@HowToMechatronics Thanks for the response, I watched the other video but I guess I need to study a lot more. I have made a few examples of projects that were posted, but I don't yet understand how to "word" the codes for what I want. Thanks.

  • @ShamboNaskar
    @ShamboNaskar Před 4 lety

    Thank you dear for making this tutorial.

  • @rohan_4dr
    @rohan_4dr Před 3 lety

    are there any cons of using the bidirectional communication? like shorter range or maybe delay while communicating?

  • @kemalcanua
    @kemalcanua Před 2 lety

    Thanks man, it was a very useful video for me.

  • @randommemes1542
    @randommemes1542 Před 5 lety +1

    I use 2 arduino uno and its not working? Its displaying question marks. Can you tell me sir what is the problem

  • @dharveyftw7349
    @dharveyftw7349 Před rokem

    lol, i am using arduino and RF transceivers for the first time, and was thinking i would have to do some crazy 8 bit encoding and decoding between the different duinos, this is so much simpler xD

  • @sjrohan4042
    @sjrohan4042 Před 3 lety +1

    which simulator do you use?

  • @kennethneo2225
    @kennethneo2225 Před 4 lety +1

    Awesome tutorial! Can you make another one using two esp-01's?

  • @treverbelmont8393
    @treverbelmont8393 Před 2 lety

    Could you explain how we would control multiple servos with the nrf24 using your code because the other tutorials on CZcams don't explain it well

  • @MrMarkatgrc
    @MrMarkatgrc Před 4 lety

    Super Helpful Tutorial!! Thank you!! 👍👍👍

  • @MegaScience
    @MegaScience Před 4 lety

    You are gift of God sir 🙏

  • @ethancatz5106
    @ethancatz5106 Před 2 lety

    Do you need the mega or is the regular Arduino R3 board fine?

  • @Kreka153
    @Kreka153 Před 6 lety

    great video, comprehensible tutorial, NRF24L01

  • @Mukeshmyson
    @Mukeshmyson Před 4 lety

    i have a couple of Qs
    1) can it reach 1km?
    2) is both connected with any laptop?
    3)is it wireless?
    please answer these Q sir

  • @chiragsehgal6585
    @chiragsehgal6585 Před 7 lety

    best tutorial for nrf .thankx

  • @venkatakrishnansrinivasan6928

    Congratulations for this Great Video! keep doing such good works.

  • @53kirthankumargowda93
    @53kirthankumargowda93 Před 3 lety

    sir i have a question........ can i control 6 servo motor with this nrf24l01 module?

  • @davitberishvili8062
    @davitberishvili8062 Před 4 lety

    Thanks. It's easy to understand example