How To Build an Arduino Wireless Network with Multiple NRF24L01 Modules

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ค. 2018
  • $2 for 10 PCBs (100*100mm) jlcpcb.com
    Circuit diagrams, source codes and more details here ► howtomechatronics.com/tutoria...
    In this tutorial we will learn how to build an Arduino wireless network, composed of multiple NR24L01 transceiver modules.
    Thanks to JLCPCB for sponsoring this video.
    Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
    ► howtomechatronics.com/
    Like my page on Facebook:
    ► / howtomechatronics
    Add me on Google+:
    ►plus.google.com/+Howtomechatr...
    Music: MÆSON - The Catch ( / tracks )

ความคิดเห็น • 225

  • @drumminjeff71
    @drumminjeff71 4 ปีที่แล้ว +9

    I have four modules on the way and I can't wait to do this project :-) thank you for sharing your talent with us.

  • @Arrowtake
    @Arrowtake 5 ปีที่แล้ว +2

    Thank you for very clear explanation on how to create network of multiple NRF2401's Learned alot!

  • @justinstraver24
    @justinstraver24 5 ปีที่แล้ว +15

    My goodness I've tried so many times and couldn't find a good tutorial to do this. Thanks a lot for making this video!

  • @sz72909
    @sz72909 4 ปีที่แล้ว

    Best NRF24L01 Network tutorial so far! Thanks for sharing!

  • @webslinger2011
    @webslinger2011 5 ปีที่แล้ว +3

    Wow! I've been waiting for something like this. Thank you!

  • @cappedpluto7638
    @cappedpluto7638 5 ปีที่แล้ว +6

    you have no idea how much this helped me, i had almost given up on trying to figure this out

  • @dacelo3
    @dacelo3 5 ปีที่แล้ว +1

    You made it pretty simple! I was very confused from this library till now. CONGRATS!

  • @johangoethe2472
    @johangoethe2472 3 ปีที่แล้ว

    I gave a "like" and I suscribed. Thank you very much for this amazing tutorial. It is so helpful.

  • @bigpickles
    @bigpickles 3 ปีที่แล้ว

    I've referred to this several times, and your code. Thanks so much, bro!

  • @ArcticSeaCamel
    @ArcticSeaCamel ปีที่แล้ว

    This is so awesome!
    I'm planning to do Spider Cam system to my biggish workshop. One arduino is the "controller" and then on each corner (four of course) of the workshop there's stepper motors to control the single wire.
    ChatGPT implemented some code for me already for this! 😀

  • @Sailingon
    @Sailingon 5 ปีที่แล้ว +1

    this is excellent im going to make something not sure what but definitely something using your tutorial.

  • @HaiTHaMKoBeIssI
    @HaiTHaMKoBeIssI 5 ปีที่แล้ว +6

    thanks you, very easy to understand, it cant be more simple and clear ,
    i"ve been trying to understand how to code the mesh network,
    now it is easy and clear,
    Thank you for this tutorial......

  • @jcjames9361
    @jcjames9361 5 ปีที่แล้ว

    Thanks for clear expanatios how to build or install the sencor..

  • @3washoka
    @3washoka 5 ปีที่แล้ว +2

    Thank you. this video is the best! Wish you all the luck in your life !!!!!

  • @soovui
    @soovui 4 ปีที่แล้ว +3

    Wow, thanks a lot for sharing such a perfect talented tutorial. Can it be applied for ESP32? If not, can't wait to see that u may come out with ESP32 mesh tutorial. 😊

  • @capiberra4118
    @capiberra4118 5 ปีที่แล้ว +4

    Excellent tutorial! Very well explained. Thank you

  • @MrMan6663
    @MrMan6663 5 ปีที่แล้ว +2

    Excellent video...can u teach us to build the same network using LORA instead of NRL24

  • @galaxylive6512
    @galaxylive6512 3 ปีที่แล้ว

    u are really great boss. ur every tutorial is real and good . i follow ur project also try those and be success.

  • @hubertmargreiter3508
    @hubertmargreiter3508 5 ปีที่แล้ว

    You really know how to explain. Great, please continue.
    I have a question: Which programmer do you recommend for programming the Arduino Nano? Please supply a link. Thanks in advance.

  • @keitholiver3981
    @keitholiver3981 5 ปีที่แล้ว

    Excellent video I have been looking for something like this for a long time. A couple of thoughts first thing can you use an ESP8266 for all nodes if you can which library’s would you use, second if you use an ESP8266 you can do away with the Arduino boards.

  • @exe_
    @exe_ 4 ปีที่แล้ว

    DUUDE! awesome video and awesome example. We need more awesome dudes like you.

  • @niranjanmallick4411
    @niranjanmallick4411 3 ปีที่แล้ว

    That's great project description Sir......

  • @jeevanshrestha8888
    @jeevanshrestha8888 5 ปีที่แล้ว +1

    Your videos are really..... Cool.....
    Can you create...... A full playlist of....... Using NRF24L01 from..... Beginning to.... End...... Complete tutorial........

  • @SoloNey
    @SoloNey 4 ปีที่แล้ว +1

    i...love... you, thank you so much for the Ecuador, Sir

  • @bigheat86
    @bigheat86 5 ปีที่แล้ว

    great content an super animation/video editing

  • @jstro-hobbytech
    @jstro-hobbytech 3 ปีที่แล้ว

    Awesome video. I have a bunch of those nrf modules

  • @pacowang283
    @pacowang283 5 ปีที่แล้ว +6

    Excellent lesson! Thank you

  • @pecilijevelicanstveni4973
    @pecilijevelicanstveni4973 3 ปีที่แล้ว +1

    Thank you! Concise and full of information!
    According to diagram @3:00 minutes the hierarchy works in that way that the message for the lower nodes can go up/down a straight way from/to base node. When message needs to go to other node in the same hierarchy level or on the other level it must first go straight way up to base node than down to the destination node.
    But, if we look on the diagram @6:11 minutes it looks that that hierarchy is not respected. How?
    1. Base 00 (blue line) to Node 012: first send message to Node 02 than Node 02 will send to Node 012. The line must go through the rectangle of Node 02, not away of it.
    2. Base 00 (pink line) to Node 022: first send message to Node 02 than Node 02 will send to Node 022.The line must go through the rectangle of Node 02, not away of it.
    3. Node 012 (green line) to Node 01: first send message to Node 02, Node 02 to Base 00 and Base 00 will send message to Node 01. The line must go through the rectangle of Node 02 than to Base 00 than to Node 01, not away of it.
    All of that to avoid confusion.

    • @zafkeilgaming1280
      @zafkeilgaming1280 2 ปีที่แล้ว

      pretty sure it was just explaining where data goes not HOW it gets there

  • @GAment_11
    @GAment_11 3 ปีที่แล้ว

    Great video. I assume the same can be done with a mix of Arduinos and Raspberry Pi’s at different notes? I am trying to mix Arduinos and Pi’s on the same network.

  • @Smartliving-udanagayan
    @Smartliving-udanagayan 5 ปีที่แล้ว

    very nice and clear tutorial..thank you

  • @donderladdich5811
    @donderladdich5811 2 ปีที่แล้ว

    Hi, a very good Tutorial!
    And it works fine! But i have a question...
    Which variable i have to change in the code, to create another Mesh-Network? I need a second one in the near of the other.

  • @AliRashidi97
    @AliRashidi97 2 ปีที่แล้ว +1

    Hello tnx for the GREAT tutorial. Can I connect a nodemcu to an Arduino which is wired to an NRF module? If yes , can I use the same libraries you used ?

  • @tseckwr3783
    @tseckwr3783 4 ปีที่แล้ว +1

    Great job on explaining. Thank you.

  • @SuperbTech
    @SuperbTech 5 ปีที่แล้ว

    hi, great videos! can you please tell what software you use for animation?

  • @hapysethi1306
    @hapysethi1306 5 ปีที่แล้ว +1

    Great work! Thanks

  • @just4electronics101
    @just4electronics101 5 ปีที่แล้ว

    Awesome video going to use soon

  • @tornado66videoaviations
    @tornado66videoaviations 5 ปีที่แล้ว

    Hello and congratulations for your videos.
    I'm a newbie.
    I need to receive information from two sensors on two different cards: I can't diversify the two packages on the receiving card and the result is that I receive only one.
    How can I do?

  • @RahulKumar-zs2wv
    @RahulKumar-zs2wv 5 ปีที่แล้ว

    Nice Video... can you explain about"LoRa" module in next video.

  • @sohaibsdq4280
    @sohaibsdq4280 3 ปีที่แล้ว

    never success communication while using NRF on bredboard, may b the loose connection or something else, but working perfectly on PCB

  • @electronic7979
    @electronic7979 5 ปีที่แล้ว

    Useful video. Excellent

  • @gurdyalsingh1857
    @gurdyalsingh1857 5 ปีที่แล้ว

    Awesome explained

  • @elaminenour3548
    @elaminenour3548 4 ปีที่แล้ว

    it's really good !! thnx
    can connecting nodemcu with nrf24l01 ??

  • @connectingthesciences4621
    @connectingthesciences4621 ปีที่แล้ว

    Is there a reason you used long instead of int data types? Wouldn't it be more efficient to use an unsigned int and byte for 0 ~1023 and 0 ~180 respectively?

  • @jeelansoni2866
    @jeelansoni2866 8 หลายเดือนก่อน +1

    One video make tv(analog) transfer signal used rf module 😊

  • @salh2665
    @salh2665 4 หลายเดือนก่อน

    ❤❤❤❤احسن قناة لتبسيط الالكترونيك ❤❤❤❤

  • @wjimenezu
    @wjimenezu 5 ปีที่แล้ว +1

    Priceless

  • @scottkennedy7741
    @scottkennedy7741 5 ปีที่แล้ว

    Excellent video, would you be able to expand the tutorial to discuss the rf24mesh library?

    • @HowToMechatronics
      @HowToMechatronics  5 ปีที่แล้ว

      Thank you! That's a good suggestion but currently I have quite a big do-to list with other projects and tutorials, so it would take me some time to get to this one. Cheers!

  • @GabrielSousa-hw4mg
    @GabrielSousa-hw4mg 5 ปีที่แล้ว

    Thank you a lot!!!

  • @Isambardify
    @Isambardify 3 ปีที่แล้ว

    Very nice. Thanks. What's the lag like?

  • @gsambolin
    @gsambolin ปีที่แล้ว

    I don't even have and Adruino (yet) and I understood everything. The potential here is ENDLESS !!! One new SUB here.
    What is the distance of the NRF24L01 module ?

    • @HowToMechatronics
      @HowToMechatronics  ปีที่แล้ว

      Thanks! The NRF24L01 module distance in open space should be up to 100 meters, and if the model is with the big antennas it should be up to 700 meter. But that would be significantly less if there are obstacles.

    • @gsambolin
      @gsambolin ปีที่แล้ว

      @@HowToMechatronics Thanks for your response. Very kind of you. I am looking at a project that will have obstructions in it maximum 150 feet... Wires concrete... etc etc. I would need to find the strongest module of this type out there.

  • @tabii3346
    @tabii3346 5 ปีที่แล้ว

    what is the full list of channels that i can use in the network.begin(xx,xx) aside from channel 90.

  • @jjjunkie
    @jjjunkie 5 ปีที่แล้ว

    Thank you so much - excellent work!!!

  • @RashidAli-oc6yl
    @RashidAli-oc6yl 3 ปีที่แล้ว

    Excellent carry on

  • @jeffvenqueleir2036
    @jeffvenqueleir2036 4 ปีที่แล้ว

    verry nice now i get it thanks

  • @OthmanAlikhan
    @OthmanAlikhan 3 ปีที่แล้ว

    Thanks for the video =)

  • @3washoka
    @3washoka 5 ปีที่แล้ว

    Thank you!

  • @dekipet
    @dekipet 5 ปีที่แล้ว

    Maybe i missed it in video, but... These modules are great for almost 100m distance, in open area and 2m above ground. Every single tree will drop range significaly. In a house project two of these modules separate by two walls can hardly achieve 8-10m range. If there are bunch of wires in walls behind one of them, range will drop more, and loss of packets will increase. Better solution would be use of PA-LNA versions. Or, to use third one for a bridge between two of them in a node manner as Dejan pointed in video. Beside, local network can mess up things even more. So, channel must be set 108 or above. 115 is pretty much ok. Data rate to 250.
    The other thing to notice is, these modules has Gremlins. Dupont cables can be used for making a project. For a finish product, dupont cables are out of business. Only hard-wired and capacitor on power lines is a MUST. Or to use an adapter for them, which is pretty good.
    Good one, btw, Dejan.
    Cheers.

  • @christianhansen2676
    @christianhansen2676 4 ปีที่แล้ว +6

    Great video! - if I wanted to make two systems with this setup so having in total 6 arduinos. Would the systems interfere with each others?

    • @maerufomer5469
      @maerufomer5469 4 ปีที่แล้ว +2

      i had the same thought, anyone with an answer pls

    • @bigpickles
      @bigpickles 3 ปีที่แล้ว

      Use different channels

    • @saajidthakur6027
      @saajidthakur6027 2 ปีที่แล้ว

      at nRF24L01 Network No any protocol follow as nrf24L01.h pipe following

  • @coffeewithconcepts862
    @coffeewithconcepts862 4 ปีที่แล้ว

    Can u make a video on how to push data from these to cloud

  • @Ammy-bc6bh
    @Ammy-bc6bh 3 ปีที่แล้ว

    such a great project with explanation. thanks up share it.
    I am doing the same project.
    i have one master controller having 2 relays. (relay A for On and Relay B for off the load). and two remote controllers with on and off commands. these controllers will be fix in different location. so i need to control the relays with remote commands. i am able to control the relay individually from each remote. but when both are online, then the command will conflicts. i have tried a lot from your given examples but could not find the solution, please help me regarding this.

  • @condronugroho9388
    @condronugroho9388 4 ปีที่แล้ว +1

    Thank you so much

  • @feliwein_cc
    @feliwein_cc 3 ปีที่แล้ว

    thank you a lot, so it has to be 5 level deep network? my network has to be vertically long, not horizontally, because i need a long range coverage, is there a way around this?

  • @AhmedAli-sn3ty
    @AhmedAli-sn3ty 5 ปีที่แล้ว

    sir can you make a project using RFID module to take roll calls and store data in a local data base or web data base??

  • @Science3D
    @Science3D 4 ปีที่แล้ว

    SOOO NICE !!! this is a great video !

  • @unglaubichuberlieber8048
    @unglaubichuberlieber8048 5 ปีที่แล้ว

    greetings, wonderful work, thanks you very much; i have one question, i understand the nrf libraries
    are required, so why the spi library ???

    • @thestig2382
      @thestig2382 4 ปีที่แล้ว

      As far as I understand it, its only for compiling purposes.

  • @maulanawahyudi7127
    @maulanawahyudi7127 2 ปีที่แล้ว

    Thankyou sir, Can this method still be used when using up to 5 NRF24 in both directions(receive and transmit all of NRF24) together sir? Will the response time be long?

  • @nurrudinazzaky8374
    @nurrudinazzaky8374 3 ปีที่แล้ว +1

    Great video!
    Can this topology behave like an extender? For the example, sending data from node 011 to node 01, then forward it to master 00?

    • @zafkeilgaming1280
      @zafkeilgaming1280 2 ปีที่แล้ว

      pretty sure it can
      but all the correct modules will need to be powered and in range so it wont be like 01 to 0122 without first going thro 012

  • @ksalva23
    @ksalva23 5 ปีที่แล้ว

    hello I would like to carry out this project, having 1 receiver and 20 transmitters, on the transmitters having 2 buttons which, by pressing them, send a signal on the receiver, on the receiver a LED and a string on I2C lcd with the number of the transmitter are lit.
    Thank you

  • @traitimchonha
    @traitimchonha 5 ปีที่แล้ว

    Thank for your video....

  • @davewalters9926
    @davewalters9926 5 ปีที่แล้ว

    Hi. Appreciate your videos. Did you explain the 10microfarrad capacitor? I see it in the schematic, but didn't hear anything about it in this video, or your previous videos. Maybe I missed it, but a refresher would be great.

    • @HowToMechatronics
      @HowToMechatronics  5 ปีที่แล้ว

      Thank you! Well I mention the capacitor in the first NRF24L01 Tutorial. It it used as bypass capacitor, or to stabilize the power supply to the module, because when starting transmitting data the module could draw a bit more current, so in such a case the capacitor will help the circuit maintain stable power supply.

  • @sonusagarkoo7123
    @sonusagarkoo7123 5 ปีที่แล้ว

    Please make vedio on gas sensor

  • @alexandrugroza839
    @alexandrugroza839 4 ปีที่แล้ว

    hi, if i use an nrf2401 with antenna as transmitter paired with a simple one as receiver , i will get the maximum 1km range comunnication ?

  • @bikramdeb8459
    @bikramdeb8459 5 ปีที่แล้ว

    Please make a video about how to make wireless cat6 transmitter and receiver

  • @zindhumaulanaahmadputra2414
    @zindhumaulanaahmadputra2414 4 ปีที่แล้ว

    Can i use this method for multihop communication?
    I'll make transfer data from node to master, with node is much

  • @joycealaras7641
    @joycealaras7641 5 ปีที่แล้ว

    hello! do you have the circuit diagrams of each node at least in image?

  • @zhungonlyx
    @zhungonlyx 3 ปีที่แล้ว

    Thank you for your interesting project. It is exactly what I am doing, however, I am using 10 Arduino MKR 1010 wifi boards (one is a host and the others are sensor nodes. Can these wifi boards connect in the same way as your design?
    Ps for more detail: I would like to get data from the sensor network, each node of the network is a MKR 1010 wifi connected to several sensors. These nodes transfer the data to a host (MKR 1010 too), and this board is connected to PC to get the data in text file or csv.
    Thanks!

  • @HighlandViolinist
    @HighlandViolinist 4 ปีที่แล้ว

    In comparison to OSC, how stable is the wireless network? Latency? Does it drop data with distance?

  • @savithaiyer8017
    @savithaiyer8017 3 ปีที่แล้ว

    Can we connect node 01 directly to node 02, so that every successful step in the tree the nodes are connected to each other to reduce traffic through the central node?

  • @gjdanco4260
    @gjdanco4260 3 ปีที่แล้ว

    Good morning...a question...I made up wire harnesses with CE to pin 8 and CSN to pin 10 for another project tutorial. I notice you have CE to pin 10 and CSN to pin 9... Would these work if I changed Node 00 code on line 13 to "RF24 radio(8, 10);" and Node 01 code on line 10 to "RF24 radio(8, 10);" ...just wondering if any of your included libraries reference this? Thanks for making this tutorial...look forward to your reply.

  • @MrBobWareham
    @MrBobWareham 3 ปีที่แล้ว

    Loved the video but I want to make 4 door sensors and one receiver with led indicators on the receiver so is it posable to change your sketch to do this thanks Bob

    • @rolandberendonck3900
      @rolandberendonck3900 3 ปีที่แล้ว

      In this case you can just use the rf24 library; your application does not need the mesh network.

  • @danieleplacenti4988
    @danieleplacenti4988 4 ปีที่แล้ว

    Hi sir, do you think that it possible 30 tx trasmit to 1 receiver? if more than one tx in simultaneous will be lost data? Thanks so much .

  • @3washoka
    @3washoka 5 ปีที่แล้ว

    Do you believe a bluetooth module can be added to the Base micro controller to send and receive the data from an android phone ?

  • @chirots
    @chirots 3 ปีที่แล้ว

    Best of the best

  • @b17_igedeparadiptadharmasa7
    @b17_igedeparadiptadharmasa7 2 ปีที่แล้ว

    if i use nodemcu for this project, can u show how make if use nodemcu
    please

  • @MinhLe-rd1xt
    @MinhLe-rd1xt 5 ปีที่แล้ว

    I heard that rf24network.h can find a path to send to destination node like node011 to node00
    So i just use this function in node011 and it autumatically send to node00
    Network.header header(node00)
    Network.write(...)
    Am i correct

  • @neerajtenthouse-gosaipurse1190
    @neerajtenthouse-gosaipurse1190 5 ปีที่แล้ว +1

    thank you sir for this excellent video,
    but its not working when i checked for Node 00 and Node 012 and when i does not connected other nodes (when i want to on or off led of NODE 012 controlled by Node 00)
    please help me sir

    • @MinhLe-rd1xt
      @MinhLe-rd1xt 5 ปีที่แล้ว

      shubham jaiswal have you fixed? I think it need node01 online act as a router in case node012 too far away

  • @basavarajd4183
    @basavarajd4183 2 ปีที่แล้ว

    Sir can u plz tell me the single line of program that can send the data for maximum distance while using nrf24l01+pa+lna in multiple nodes network.

  • @kumarjha1729
    @kumarjha1729 5 ปีที่แล้ว

    Very nice video. Can you provide the addressing scheme/code for implementing star topology, five/six transmitters and one Receiver?

  • @atomicalgaming
    @atomicalgaming 3 ปีที่แล้ว

    Can this work over two different networks? So if I have an Arduino board in my house and one in my neighbors house can they still communicate to each other?

  • @therisingedge755
    @therisingedge755 4 ปีที่แล้ว +1

    Can you make a tutorial on how to push data from these nodes to cloud for iot use

    • @maerufomer5469
      @maerufomer5469 4 ปีที่แล้ว

      may be u could send the data serially to a raspberry pi then upload it to the cloud,, or add one node that connects to the cloud directly

  • @Arduino.bibassata
    @Arduino.bibassata ปีที่แล้ว

    Thank you

  • @kishoreysn7801
    @kishoreysn7801 4 ปีที่แล้ว

    What can the range be if we need to communicate between base 00 and base 01111

  • @migace7
    @migace7 5 ปีที่แล้ว

    Great information. Are you for hire?

  • @RealElaineee
    @RealElaineee 5 ปีที่แล้ว

    I prefer to use Pcbway because they can check my design files mantually and help fix the small design error. So PCB always works perfectly and Fab quality is flawless. Moreover, there is no difference for me between $5 and $2.

  • @music4u1235
    @music4u1235 3 ปีที่แล้ว +1

    sir I faced issue while storing the different sensor data at receiver side . In which the value get shuffled between two variables .

  • @estebanmercier9652
    @estebanmercier9652 5 ปีที่แล้ว

    Hello witch capacitor i need to use ? Sorry for my english

  • @atefmk2328
    @atefmk2328 3 ปีที่แล้ว

    hi sir
    i have a problem with module nrf24
    with using multiples noeuds
    and one of this noeud play the rules of router
    sending and receving data
    can you help mee please

  • @chiragburye793
    @chiragburye793 5 ปีที่แล้ว +7

    Sir can u make use of Wi-Fi module(esp8266) instead of Bluetooth

    • @mihailazar2487
      @mihailazar2487 3 ปีที่แล้ว

      Wi-Fi uses -master - slave- oops, I mean primary-secondary connections (it's 2020 lol) while Bluetooth is peer-to-peer
      you can connect a bunch of wifi clients to a hotspot but then that hotspot will not be able to connect to another hotspot ... you would need 2 wi-fi modules on a single device for that, which is really innefficient. wi-fi wasn't designed for this. wi-fi modules are for many-to-one connections where a device can be wither a client or a host but now both, and the networn is encrypted, secured and high-bandwidth ... basically for internet tethering ... that's what wi-fi was designed to do
      connecting a whole bunch of devices through wi-fi, even if some of them had multiple modules so you could link them together would still be a huge pain in the ass because you would soon get horrible interference because there's only so many possible wi-fi channels
      so if you want to make a wi-fi network ... just go ahead and get a powerful enough router and connect everything in a single network instead

  • @lankazoneuw
    @lankazoneuw 4 ปีที่แล้ว

    Sir
    i want 1 receiver and 50 transmitters can't change it ??
    thank

  • @bhimchand8464
    @bhimchand8464 3 ปีที่แล้ว

    Can we use multiple nodes with same address in a network? Actually, my requirement is to send same data to all (up to 20) clients a time and all clients has to send data to master individually.