Tutorial: Sending Data Between Multiple Raspberry Pi Pico W's in Thonny

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 มิ.ย. 2024
  • Support these videos here: www.buymeacoffee.com/mmshilleh
    Learn how to send messages between two or more Raspberry Pi Pico W's connected to your local network. This is done with Thonny and MicroPython. This can be incredibly useful for projects involving distributed systems and can form the bases of a multi-device IoT system.
    Blog Post:
    shillehtek.com/blogs/news/sen...
    TIMESTAMPS
    00:00 Intro
    05:35 Demonstration
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Dont forget to subscribe and support the channel if you learned anything new in this video! Thanks y'all!

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

    Thank you. That's really neat!

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

      Appreciate it Matt, going to follow up on another video to show how to connect multiple Picos across any network for a truly distributed system using MQTT. Stay tuned, dont forget to sub :)

  • @PatrickConstant
    @PatrickConstant 4 หลายเดือนก่อน +1

    I've done a comment on serial data transfer. This method is BETTER for me. I will test on Pico W with DHT11 temperature/humidity module and a Raspberry Pi Zero 2w for recording data every hour on crontab scheduling. Thanks.

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

      Welcome friend

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

    Hi, I've just ordered one of these devices. I have a few others. Have you tried a different IDE, like VSCode or Pycharm for this type of development?

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

      I actually have not! I usually prefer Thonny for IoT development on the Pico

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

    I'm interested in extending this to do bi-directional transfers between a Pi Pico W and a Raspberry Pi. Any thoughts you have would be very appreciated.

    • @mmshilleh
      @mmshilleh  8 หลายเดือนก่อน

      Hey Dave! I think it would be possible. Personally, I have never tried it with different microcontrollers but I thought about doing it in the future for sure. I actually do not have a full-fledged Raspberry Pi sitting around I prefer smaller microcontrollers. Good luck Dave

  • @PatrickConstant
    @PatrickConstant 4 หลายเดือนก่อน +1

    With a Raspberry Pico W as server (with DHT11) and a Raspberry Zero 2 W I can easely check temperature and humidity. And with pushover module I can push an alert on my smartphone if data is over limits. Thanks very much from France.

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

      merci je suis contente de t'avoir aidé. J'espère que vous pourrez vous abonner !

  • @donpearson
    @donpearson 2 หลายเดือนก่อน +1

    Just wondering if you are seeing the same behavior. I copied the server/client code EXACTLY per your github repository. I then changed the secret credentials to match my router and the line in the client code to point to the server's IP address. I can start the server and see it connect to my router and then wait for the client. I can then start the client and see it connect to my router. Only occasionally (rarely), after 10-30 seconds does the server and client connect. When they do connect, everything runs fine. I have been wrestling with this problem for a while now and just want to see if you (or others) have had connection problems with the 2 pico-w. I have the latest micropython installed on the picos and the latest Thonny app version.

    • @mmshilleh
      @mmshilleh  2 หลายเดือนก่อน

      A few quick tips to potentially improve connectivity:
      Ensure both Pico W devices are within a good range of the router with minimal interference.
      Check for any power supply issues; a stable and adequate power source is crucial.
      Consider adding retry logic in your code to handle reconnection attempts more gracefully.
      For more personalized support, consider booking a consulting slot with me on my BuyMeACoffee page, or explore a membership level on my channel for in-depth responses and tailored advice. Your support not only helps me dedicate more time to solving issues like these but also connects you with more direct assistance and exclusive content.

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

    A great example that I search the internet for a long time.
    Is it possible to give us an example of one PICO sampling the sound and the other playing it at the push of a button, like a simple intercom?
    I would like to allow my elderly parents to call someone in other rooms at the push of a button!!!

    • @mmshilleh
      @mmshilleh  8 หลายเดือนก่อน +2

      That would be an awesome application wow never thought of that. I do not have the parts and I am overseas but I will write this down in a potential list for future videos!

  • @Kattoe
    @Kattoe 4 หลายเดือนก่อน +1

    Im not using your code, I wrote my own before watching a tutorial. But i have a problem. When I unplug the power from the client the server doesn't know it disconnected so it cannot connect to a new client. Do you know how to fix this?
    Ps: it works fine if i just press stop in thonny

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

      Hey Kattoe cant say I know exactly how to resolve that without doing a deep dive. You can always add code to the main.py file that runs upon boot up to ensure you dont have to run again in the IDE

  • @damianacfr3950
    @damianacfr3950 7 หลายเดือนก่อน +1

    Can you make one for connecting the PI4 and the Pi Pico W?

    • @mmshilleh
      @mmshilleh  7 หลายเดือนก่อน

      Funny enough I just got a new Pi 4 and trying to figure out some video logistics. Will be on that soon once I get my setup correct

    • @shikhag257
      @shikhag257 5 หลายเดือนก่อน +1

      @@mmshilleh Did make any video on sending data from Pi 4 to pico w (to display on LCD 16x2) ? If yes, please share .

    • @mmshilleh
      @mmshilleh  5 หลายเดือนก่อน

      Not yet sorry man!@@shikhag257

  • @harutyunkoshetsyan7094
    @harutyunkoshetsyan7094 4 หลายเดือนก่อน +1

    HEY EVERYONE FOLKS
    Bind picos WITHOUT a network? Does anyone know how to do that?

    • @mmshilleh
      @mmshilleh  4 หลายเดือนก่อน +1

      I tried doing that in AP Mode but to be honest I think it has a lot of bugs and does not work that well when I tried it a few months ago. You can look into that route further

    • @harutyunkoshetsyan7094
      @harutyunkoshetsyan7094 4 หลายเดือนก่อน +1

      @@mmshilleh thanks for your reply mate, that will save my time to do my research in the right way

    • @mmshilleh
      @mmshilleh  4 หลายเดือนก่อน +1

      I am happy to help and very happy that you watched my videos for your research means a lot to me@@harutyunkoshetsyan7094