MicroPython #5 - JSON & Network Modules + Practical Example

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 43

  • @paulrautenbach
    @paulrautenbach 5 лет назад +3

    Quite a complicated example but I understood it. Real examples are always best, as long as they can be understood. Thanks Seon.

    • @UnexpectedMaker
      @UnexpectedMaker  5 лет назад

      Cheers Paul. I agree that real examples are best to learn from, but it's also hard for me to judge what's too complex or not to show, as I have a wide range of people watching these videos.

  • @fvgoya
    @fvgoya 4 года назад +1

    By far one of the best, or THE BEST, videos about Micropython. Straight to the point, well explained and lots of valuables commands. Turn the device in a access point was extremely helpful as well. I never saw anyone here explain it. Serious, thank you very much for shared this amazing knowledge. SUBSCRIBED!!!

  • @jerril42
    @jerril42 5 лет назад +1

    I just got a PyBoard, a little different from the TinyPICO, a bunch of new stuff to learn. Now I've caught up on the videos. I'll be rewatching most of this after I get more familiar with the PyBoard or when my TinyPicos arrive. Thanks Seon.

    • @UnexpectedMaker
      @UnexpectedMaker  5 лет назад

      Wicked! Is it an original PyBoard? Have fun learning MicroPython :-)

  • @DustinWatts
    @DustinWatts 5 лет назад +1

    Thanks Seon! I love this series. Started learning Python a while ago and was so pleased to learn it was ported to the ESP32!

    • @UnexpectedMaker
      @UnexpectedMaker  5 лет назад +1

      Hey Dustin! Yeah, how good is Python.. I'm annoyed with myself I put off learning it for so long!

    • @DustinWatts
      @DustinWatts 5 лет назад

      @@UnexpectedMaker It's so intuitive!

  • @christopherlyons7613
    @christopherlyons7613 4 года назад

    These are great, thanks. Really wish you would continue the series!!!

  • @peter.stimpel
    @peter.stimpel 3 года назад

    Nice. Me looking for ressources for Micropython, learning a channel I was subscribed to already, has such explanations. Great stuff. Thanks Seon.

  • @tav9755
    @tav9755 3 года назад

    Thanks Seon! This is a very good channel and I liked and subscribed. Keep on the excellent work

  • @HariWiguna
    @HariWiguna 5 лет назад +1

    Great content Seon! I'm excited to start using WiFi in MicroPython! Thanks for sharing your knowledge Seon. I've been learning a lot from you.

    • @UnexpectedMaker
      @UnexpectedMaker  5 лет назад

      Cheers Hari. I'm super glad you've been learning it!

  • @BenDover-pq8xj
    @BenDover-pq8xj 3 года назад

    BRIL - could do with a little less complex example for newbie uP but will be back after i learn more uP to replay - keep up the GREAT work & thanks.

  • @BrianLough
    @BrianLough 5 лет назад +1

    This looks great, the faffing around you'd have to with arduino to do the equivalent would be pretty huge!

    • @UnexpectedMaker
      @UnexpectedMaker  5 лет назад

      Cheers Brian! Thanks again for making the data scraper!

  • @SeanAlcorn
    @SeanAlcorn 4 года назад

    What device are you using for the light sensor? Do you have an LCSC part number?

  • @MicheleHjorleifsson
    @MicheleHjorleifsson 5 лет назад +1

    thanks that lil dict population trick is awesome

    • @UnexpectedMaker
      @UnexpectedMaker  5 лет назад +1

      Yeah List Comprehensions are amazing, but can also be mind bending ;)

  • @Konrad_Wallmeier
    @Konrad_Wallmeier 5 лет назад +5

    When is there a continuation of these fantastic series?

  • @ssgoh4968
    @ssgoh4968 5 лет назад +1

    Thank you for making it so easy to understand and learn. Where can I find videos after your #5 video?

    • @UnexpectedMaker
      @UnexpectedMaker  5 лет назад

      I have more videos planned... but a sever lack of time to execute atm. But there will be more!

  • @johnwilson3918
    @johnwilson3918 3 года назад

    Thank you for sharing this. Your code is very clean!
    I'm using an AP_IF for setting up JSON config files using a simple webserver and json module.
    The config files are used to set up internet wifi credentials and pin info for a few alarm sensors. The AP_IF is only activated if a link is closed on one of the ESP pins, otherwise, the main application runs - sending MQTT messages to my node-red server.
    My micropython webpage code which handles the html form data is horribly messy (with string splits etc). I really wish - I could send the form response as a JSON body or string. Do you know any suitable libraries which may be able to help clean up my rubbish?
    Thanks again!

  • @HaiNguyen-nf9pr
    @HaiNguyen-nf9pr 2 года назад

    Quá tuyệt vời! Cảm ơn bạn nhiều nhé!

  • @receptemelli5925
    @receptemelli5925 4 года назад +2

    Hi Seon! Thank you for an amazing series of micropython tutorials. I would like to ask something: Is there any way to use some python modules that are not in the list of micropython modules? For example some machine learning libraries like tensorflow, numpy, Tflearn... I would really appreciate any help about this topic. Thanks in advance :)

    • @UnexpectedMaker
      @UnexpectedMaker  4 года назад +1

      I there is no MicroPython variant of the library, then no, as the requirements for libraries for MicroPython are What they need to be very lightweight and not everything in CPython is available int MP.

    • @receptemelli5925
      @receptemelli5925 4 года назад

      @@UnexpectedMaker So, the best way to apply machine learning to microcontrollers is still coding in C/C++ :) Thanks a lot !

    • @UnexpectedMaker
      @UnexpectedMaker  4 года назад

      No, there is MicroPython and CircuitPython based libraries for some stuff, but that's not what you asked. You can't just take a CPython library and use it, but lots of more lightweight libraries are being developed all the time. Just do some research :)
      www.tensorflow.org/lite/microcontrollers

  • @Huynh-Tan-Quoc
    @Huynh-Tan-Quoc 4 года назад

    pls help me, i want to connect esp32 to blynk by python. But, when i code, and i debug then have a problem: mportError: no module named 'blynklib'. I had installed this library blynklib.

  • @PaulTurner_Haizo
    @PaulTurner_Haizo 5 лет назад +2

    At 4:05, what happened to "server_url" ? that flustered me.

    • @UnexpectedMaker
      @UnexpectedMaker  5 лет назад +1

      Oh I never noticed that! I must have forgotten to copy the updated config.json to my TinyPICO before I started. Sorry! My example code is using the configseon,json file and because it was working, I assumed I'd copied both over :(

  • @leewenger4401
    @leewenger4401 4 года назад

    Did I miss it or do you not share the actual server_url you are using for the example? I'm one of those people that just has to do things to actually understand them. Great series - I wish i'd ditched arduino/c a long time ago - running python is just so much more intuitive - I haven't gotten far enough in my training but my fingers are crossed that there's support for usual OOP concepts in micropython.

    • @leewenger4401
      @leewenger4401 4 года назад

      i found this => github.com/witnessmenow/crowdsupply-tp-scraper - but t looks like crowdsupply is not putting claimed values on the page anymore so I just modified the index.js script to return the json the produces the necessary content.

  • @givemerandom8617
    @givemerandom8617 5 лет назад

    Hi again Sr, me again! I've gonne trough a lot this hours, i've watched this video like ten times by now and I've learned a lot!!
    I have now my application running, Just a simple JSON logger to store wifi ssid and password IF a button is pressed on boot start, otherwise it just get connected to the stored wifi credentials.
    I've a problem by now that is my esp8266 lost wifi connection every 1 or 2 secs. I will google it. Thx again.

  • @ico-theredstonesurgeon4380
    @ico-theredstonesurgeon4380 4 года назад +1

    Yes, but... WHY micropython? Is it practical to use if the majority of libraries for microcontrollers are written in c? Why not just a rasberry pi? Why struggle to make python run on a esp32 that will never achieve performances similar to C code or a pi? I would like to know your opinion :)

  • @givemerandom8617
    @givemerandom8617 5 лет назад

    Hi Sr.! I've really enjoyed a lot this video but I'm getting "OSError: can't set AP config" when i either try to "wlan.config(essid="myESSID")" or "wlan.config(password="myESSIDpasword12345")".
    I'm ussing a NodeMCU 0.9 ESP8266, recently flashed with micropython V1.11 and i don't see the same amount of network modules that you have when you type "help".
    I was following along your tutorial, checked spell, syntax twice and do some google, but i can't figure it out.
    Thanks a lot for your vids!!

    • @givemerandom8617
      @givemerandom8617 5 лет назад

      Hey Sr. Sorry to bother you but I get this working.
      If there is someone asking, the module doesn't allow me to change essid or stuff because it was wlan.active()=False. When I switched to wlan.active(True) It start working and allow me to change essid.
      Greetings.