No video

MicroPython #5 - JSON & Network Modules + Practical Example

It's no secret I like MicroPython... and MicroPython on the ESP32 is amazing, so I decided to start a video series about MicroPython.
In this episode I take a look at the JSON and Network modules and then show a practical example where I use them to download data scraped from my TinyPICO Crowd Supply website and display it in a human readable form.
#MicroPython #esp32 #tutorial
[ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ]
If you'd like to support me on my journey, please consider buying one of my products on tindie
www.tindie.com...
or becoming a Patron at
/ unexpectedmaker
★ Subscribing, Liking and Sharing my videos really makes a difference. If you are not subscribed, please consider it and then click the alarm button to be notified when I release new videos. Thanks!
★ FOLLOW ME
/ unexpectedmaker
/ unexpectedmaker
/ unexpectedmaker

Пікірлер: 43

  • @paulrautenbach
    @paulrautenbach5 жыл бұрын

    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
    @fvgoya4 жыл бұрын

    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!!!

  • @UnexpectedMaker

    @UnexpectedMaker

    4 жыл бұрын

    Cheers!!!

  • @jerril42
    @jerril425 жыл бұрын

    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
    @DustinWatts5 жыл бұрын

    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 жыл бұрын

    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!

  • @HariWiguna
    @HariWiguna5 жыл бұрын

    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!

  • @christopherlyons7613
    @christopherlyons76133 жыл бұрын

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

  • @peter.stimpel
    @peter.stimpel3 жыл бұрын

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

  • @tav9755
    @tav97553 жыл бұрын

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

  • @BenDover-pq8xj
    @BenDover-pq8xj3 жыл бұрын

    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.

  • @MicheleHjorleifsson
    @MicheleHjorleifsson5 жыл бұрын

    thanks that lil dict population trick is awesome

  • @UnexpectedMaker

    @UnexpectedMaker

    5 жыл бұрын

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

  • @Konrad_Wallmeier
    @Konrad_Wallmeier5 жыл бұрын

    When is there a continuation of these fantastic series?

  • @UnexpectedMaker

    @UnexpectedMaker

    5 жыл бұрын

    As soon as I find some free time :-)

  • @HaiNguyen-nf9pr
    @HaiNguyen-nf9pr2 жыл бұрын

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

  • @BrianLough
    @BrianLough5 жыл бұрын

    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!

  • @ico-theredstonesurgeon4380
    @ico-theredstonesurgeon43804 жыл бұрын

    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 :)

  • @SeanAlcorn
    @SeanAlcorn4 жыл бұрын

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

  • @ssgoh4968
    @ssgoh49685 жыл бұрын

    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
    @johnwilson39183 жыл бұрын

    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!

  • @receptemelli5925
    @receptemelli59254 жыл бұрын

    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 жыл бұрын

    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

  • @PaulTurner_Haizo
    @PaulTurner_Haizo5 жыл бұрын

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

  • @UnexpectedMaker

    @UnexpectedMaker

    5 жыл бұрын

    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 :(

  • @Huynh-Tan-Quoc
    @Huynh-Tan-Quoc4 жыл бұрын

    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.

  • @givemerandom8617
    @givemerandom86175 жыл бұрын

    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.

  • @leewenger4401
    @leewenger44014 жыл бұрын

    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
    @givemerandom86175 жыл бұрын

    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.