Using WebSocket in MicroPython - A Practical Example

preview_player
Показать описание
This post/video will show you how you can implement your own WebSocket server using the MicroDot web framework and your MicroPython device.

WriteUp:

Code:

Contents of the Video:
0:00 - Intro
1:30 - Demo
3:07 - DonskyTech
3:51 - Design
4:43 - Why use WebSocket?
6:38 - Wiring/Schematic
7:21 - Code
16:11 - Outro

If you like my post or videos then please consider subscribing to my channels and sharing them with your friends:

If you are generous and think I have helped you, please consider buying me a coffee. 🙂
Buy Me a Coffee:

Patreon:

#micropython
#microdot
#websocket
#ldr
#photoresistor
Рекомендации по теме
Комментарии
Автор

Hi, Nice video. I think these types of projects would be easier for someone with a web development background. As I come as a long time Arduino hobbyist and more recent Python/microPython hobbyist I struggle to understand the html, css, and javascript. I am impressed that you are fluent in at least 4 code languages. Maybe one day I will get there.

keithlohmeyer
Автор

Thank you very much for your thorough explanation and tutorial. I have decided for my robotics use case that I am going to experiment with MQTT instead. It seems like WebSockets may be more complicated than necessary for my communication system.

whitneydesignlabs
Автор

All your tutorials are excellent !
Nothing could be missed and skipped...
Btw, how to implement Cloudflare Tunnel on ESP32 to access the web interface from anywhere on internet ?

Gaamaa-ozeflfn
Автор

Hey, let me know if something is not clear with this project. I am quite surprised myself how responsive MicroPython is in handling the insane amount of sensor readings and how Plotly.js is still able to display the chart. Both these two combination is really awesome.

DonskyTech
Автор

Compelling, and challenging. I do struggle keeping nodejs/js and python straight...maybe chatgpt will rescue me. Now consider adding some rotary encoders and interrupts to the mix, and please continue the great work.

quaternion-pi
Автор

Very interesting, is there a minimal example how to update a single value on the html page? Lets say a temp value read by a dht sensor.

Daniel-riys