WiFi Control Your Micropython Project Using a Web Interface

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ย. 2024

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

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

    Hands down, THE best tutorial I have ever come across.

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

      Thanks. Glad you found it useful.

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

    Bob, Thanks for this fantastic series of tutorials on webserver for Pico.

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

      Thank you very much. I hope you've found them useful.

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

    Thank you, I wish more you tubers can adopt your way of explaining. Well done to you sir!

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

      Happy to help

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

    Thanks for making this video and the ENTIRE series.
    Your work is greatly appreciated. 😊
    Patrick from Bethesda, Maryland, USA

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

      Glad you enjoy it!

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

    Awesome. 19:50: You can get the correct time every night or so (and at startup) - maybe from a button. I like clocks.

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

      Yes. Having the Internet opens up a lot of useful opportunities.

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

    I liked the drawing animation in the beginning, very cool indeed.

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

      Thank you! Cheers!

  • @rajbudhabhatti3449
    @rajbudhabhatti3449 10 หลายเดือนก่อน

    Thank you for developing such a great video. I managed to connect my pico to router and as a AP with first try. Excellent support. Thanks.

    • @BytesNBits
      @BytesNBits  10 หลายเดือนก่อน

      Glad it helped

  • @janinnz1261
    @janinnz1261 9 หลายเดือนก่อน

    This was a perfect beginner video ! You were very clear - Thank you !

    • @BytesNBits
      @BytesNBits  9 หลายเดือนก่อน

      Glad it was helpful!

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

    I’m glad I found this video and your channel. Your explanation really helped me.
    I’m looking forward to the follow up with REST! Also, looking to learn a simple way to pass variables via get or post that can then be used elsewhere in the code.

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

      Hi. Glad you found it useful. The REST API video should be out this weekend. It will cover data passing in both directions.

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

    Bro!! A full video and posting a summary is such a great idea!! This is so awesome. Liked & Subscribed!!

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

      Thanks for the sub!

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

      @@BytesNBits no problem, well deserved!

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

    This is excellent! Thank you for your teaching and explanations, this is just what I needed to help learn the Pi Pico W and Micropython!

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

      Glad it was helpful!

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

    Fantastic work, you sir are a Grade 1 communicator.

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

      Thanks. Glad it helped.

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

    Most excellent tutorial. I look forward to seeing and learning more. Thank you

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

      Thanks.

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

    Very good explanation of each part of the program . Thank you !!

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

      Thanks. I hope you found it useful.

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

    This excellent! I've studied micropython for a long time, and this the best tutorial that I have ever seen. Thank you very much sir for sharing this.

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

      Glad it was helpful!

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

      I have an idea for a project for you on your channel. It would be for a timelock device (like for a bank, but for personal use). It would comprise a scheduler, a calender, a schedule, perhaps an mqtt interface, and an a hardware interlock for actuating door lock relays. If you consult, and are interested, please quote me. I've looked at iec61131 and openplc to do this, but it has to be designed properly, and tested. Having an open source program would create a community, and I think that such a project would be very popular. I have a garden that I must tend, haven't coded for years, and also have other building construction that I is higher priority.

  • @rahulathsr
    @rahulathsr 10 หลายเดือนก่อน

    Loved your structured explanation!

    • @BytesNBits
      @BytesNBits  10 หลายเดือนก่อน

      Glad you liked it!!

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

    Thank you ... I am an absolute beginner when it comes to MicroPython ... your video is excellent.
    Instead of the Raspberry Pi Pico I am using an ESP8266 Node MCU and the Mu editor.
    The only change that I found necessary to adapt your code to my ESP8266 was to change the 3 to a 5 when reporting a successful connection ... for some reason wlan.status() returns a different set of numbers when using an ESP8266.
    I look forward to your future videos

  • @rd-tk6js
    @rd-tk6js 8 หลายเดือนก่อน

    Very well explained, thanks !

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

      Glad it was helpful!

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

    Thank you!

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

    Thanks for this excellent video. I will expand this to a mobile robot control. Currently controlling using RC PWM via Pico and I though I could expand to DIY telemetry if the processing power and signal is solid.

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

      Sounds great! Let me know how you get on.

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

    A very nice video, can I use ESP32 and Thonny to follow along with this tutorial?

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

      This video should work fine on the ESP32. Some of the later videos in the series will need adjusting as the ESP32 handles multiple cores and async processing differently to the Pi Pico.

  • @RezaShafiei-w3y
    @RezaShafiei-w3y 2 หลายเดือนก่อน

    thanks for the great tuturial. I have a question though, how did you copy the html file into Pi Pico using Pycharm?

    • @RezaShafiei-w3y
      @RezaShafiei-w3y 2 หลายเดือนก่อน

      all good, I found you explained in another video, thanks again

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

      No problem. Hope you get it working.

  • @rd-tk6js
    @rd-tk6js 5 หลายเดือนก่อน

    Excellent tutorial, thanks ! I have one query. How do you actually load the simpleled.html file to PicoPi from PyCharm ?

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

      If you right click on a file you'll get the option to Run 'Flash..... This will upload it to the Pi Pico.

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

    Excellent video! I have an sensor and i want to display new values every 2 seconds. Could this be done without refresh the page? Something like ajax method. Pico return the date to javascript, and javascript change data via ellement id

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

      Yes. Create a read data API endpoint and use it to read the data every 2 seconds.

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

    dig the channel name!

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

      Thanks. I like it too!

  • @የትራፊክህጎችንበተግባርመ

    one of the best!

  • @tubenutzer0007
    @tubenutzer0007 11 หลายเดือนก่อน

    In terms of content, I am looking for a way to store the access data for the WLAN securely, i.e. not in a separate file as plain text. As the RP2040 does not have a CryptoChip, the integration of an external chip such as the ATECC608A would be a possibility. But to be honest, that's a bit too much for me without help...

    • @BytesNBits
      @BytesNBits  11 หลายเดือนก่อน

      Sounds like an interesting project.

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

    Excellent!

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

      Glad you liked it!

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

    Thanks!

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

      No problem! And thank you!

  • @Neil264Hoskins
    @Neil264Hoskins 6 หลายเดือนก่อน

    In ap mode, did you need to turn off the sim on the phone?

    • @BytesNBits
      @BytesNBits  6 หลายเดือนก่อน

      The sim shouldn't get in the way. You should see it as just another wifi network to connect to.

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

    Stupid question: is there a way to program the pi pico w over wifi?

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

      Not such a stupid question. Not directly. You'd need some sort of base image running in the Pico that allows the files to be uploaded. I'm not sure if that exists yet for the Pico but it's not unfeasible. Have a search on Google.

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

      @@BytesNBits Thanks for not calling it stupid 😀, I indeed did some google foo and found something called "OTA" (Over the air) update like JFrog, it seems is used for large companies when they need to updates hundreds of IoT devices (pi Pico w). Perhaps a future video about it?

  • @TOMTOM-nh3nl
    @TOMTOM-nh3nl ปีที่แล้ว

    Thank You

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

    Can it be controlled by any place in the world

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

      You'd need to expose your Pico through your router. By default your home router won't let external traffic onto your network - at least it shouldn't!!! You need to set up port forwarding to allow connections through your router to the Pico port 80 (HTTP port). Once you do that you can access the Pico on your home IP address (you'll find this in your router settings but note it can change over time unless you've got a static IP address).

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

      @@BytesNBits thank you

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

    That piece of code at 24:00 is not in your github.

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

      Hi. It's the simpleled.py file. The one on the GitHub repo is the final version. At 24 minutes we're just building up the code. Just comment out some of the url decoding bits. I hope this helps.

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

      @@BytesNBits - OK, got it!

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

      Very well explained tutorial. Looking forward to more on the Pico. You took a several month break, hope that isn't the case after this one.

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

      @@jimcraig5727 Hi. Work got in the way as usual. Back on the electronics again. These projects take a bit more time to create.

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

      @@BytesNBits I'm hoping you may expand this Pico WiFi tutorial to include a wifi manager. I'd like to be able to use my robot car projects on other networks without recoding each time. Your detailed, clear method of instruction would be beneficial.

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

    Web Server Project HTML included in file. th-cam.com/video/nV1lVYWCnYw/w-d-xo.html

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

      Thanks for the link. Good to see you got it working.

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

    please mention that pico w only supports 2.4 ghz speed or else you will destroy the brain of pico w users with only 5g wifi available LOL

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

      Thanks for the tip. I forget there are routers without 2.4GHz.

  • @Andrey-rc6wp
    @Andrey-rc6wp 8 หลายเดือนก่อน

    By far the coolest nerd on TH-cam. Bro looks like a Chad and explains things like a Chad too 🫡

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

      Thanks... I think.

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

    12:54 *hawk tuah*

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

    Why am I getting this ERROR: OSError: [Errno 9] EBADF. on the following: client.close()

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

      I think it's telling you the client object wasn't connected to a valid stream or file when you tried to close it. Did it get closed in some error before the close call or something like that? Were you able to read anything through it? You'll need to put some debug output in the code leading up to the close statement to find out what's gone wrong.