Create an Arduino Wireless Network Using NRF24L01 modules

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • A 4 node wireless network setup using the NRF24L01.
    Code link:
    github.com/web...

КОМЕНТАРІ • 10

  • @smoua4588
    @smoua4588 Рік тому +1

    Good demo. Good job.

  • @malobertibertrand9326
    @malobertibertrand9326 3 роки тому +1

    Thank you for your answer, you are right, it works with « ok » and « ok2 ».
    Is there a possibility to send the same data from node00 to node01 and node02 at the same time ? I have tried the code below but it doesn’t work.
    unsigned long buttonState00 = digitalRead(button00);
    RF24NetworkHeader header(node01;node02);
    bool ok = network.write(header, &buttonState00, sizeof(buttonState00));
    Basically it's to push a button on node00 and light up a led on node01 and 02 at the same time.

    • @webslinger2011
      @webslinger2011  3 роки тому +1

      Refer to the example for node0111 (uses if statement) which assigns the value depending on which node it came from. Also, why assign one header for 2 different nodes? Try separating them and assigning a different variable ex: header2020(node01), header2021(node02)

    • @malobertibertrand9326
      @malobertibertrand9326 3 роки тому +1

      Thank you ! Your advices and your vidéo help me a lot !

  • @tolits_electronics
    @tolits_electronics 3 роки тому +1

    i like the concept. this is great idea.

  • @malobertibertrand9326
    @malobertibertrand9326 3 роки тому

    Thanks for this great video, I dont understand a tricky part on line 61 70 and 79 on node00 code. You write: "bool ok" or "bool ok2" what is the difference ? Same question about "header" why sometime it is "header1" header2" or "header7" the number is corresponding to what ?? Thanks you your help

    • @webslinger2011
      @webslinger2011  3 роки тому +2

      Declared boolean variables "ok" and "ok2" just to distinguish one from the other (but I think it's all the same- can try just using "ok" and see if it works the same). As for header1...2...3 etc... is to keep track where I'm at. You could just declare as just plain "header" if you're not sending or receiving from multiple nodes. Kept it that way to avoid naming confusion. But you can experiment declaring your own variables if you like.

  • @rogermoseley7554
    @rogermoseley7554 3 роки тому

    What kind of range say, between rooms?

    • @webslinger2011
      @webslinger2011  3 роки тому

      Not sure if it works well between rooms since I haven't tried it yet. Will get back to you on that.

    • @webslinger2011
      @webslinger2011  3 роки тому +1

      Not effective thru walls. Maybe try one with the extra antenna?