ESP32 MicroPython Web Server

preview_player
Показать описание
This tutorial demonstrates how to set up a MicroPython web server on an ESP32. A web page will show the temperature and humidity from a DHT22 sensor connected to an ESP32. Another web page will provide remote color and brightness control of a NeoPixel RGB LED.

This is the 3rd in a series of MicroPython ESP32 tutorials. The prior 2 videos demonstrate how to load the MicroPython firmware, manipulate files, run code, use MQTT, work with sensors and NeoPixels.

Рекомендации по теме
Комментарии
Автор

Really great series of tutorials. I keep thinking "this looks complicated", but I follow your instructions and everything works! Thanks for taking the time to put the videos together.

rogrevs
Автор

Great tutorial, really enjoying your ESP32 videos... Thanks so much for helping out us newbies!

RCTurbine
Автор

Awesome tutorial, thanks for taking the time to do it.

cokegen
Автор

Amazing job, thank you for recording that.

GmanBB
Автор

Great tutorial as are you others. Keep them coming. I especially like the ESP32 / Micropython tutorials. Could you do a tutorial using the internal ADCs and DACs and other builtin functions of the ESP32.

tlschreur
Автор

Super amazing tutorial. Ty for sharing I am looking to make complex dynamic server that monitors sensors and runs a pump for a garden watering system, that at the moment handles over 40 potted plants. I hope you post again as its really nice, and full of detail. I subbed too :)

davidmarks
Автор

Looking forward to your new videos on Raspberry PI, MicroPython, ESP32 topics...

ae
Автор

Well, my head is spinning but I'm learning. Thanks!

capiberra
Автор

...wow great video, great exposure for micropython, well done and thanks for sharing, amazing :)

cad
Автор

How to use ESP32 as a client and Windows desktop PC as a Web Server to control ESP32?

explorerofinfinity
Автор

Hi rdagger68, I got errors when I wrote the code to set station mode (station = So I also try to import bluetooth. It neither works and shows like this (no attribute "Bluetooth"). What should I do? Is it firmware problem? Cheers John

johnmoore
Автор

Do you think an ESP32 could be used for your Tracer MPPT Dashboard? Could your mobile app be modified to use bluetooth?

CollinBaillie
Автор

File "start.py", line 2, in <module>
MemoryError: memory allocation failed, allocating 72 bytes
???? any ideas???

clownzfeet
Автор

I like this tutorial and the microWebSrv! I've tried to install the microWebSrv/microWebSrv2 on a ESP8266-12f with 4MB and get a memory error, when starting main.py. As the ESP32 (you are using for the tutorial) also has 4MB I don't understand where this memory error comes from. I already stripped the microWebSrv down to just one module and removed the www-folder. Any idea how to get it running. I don't like the idea of baking a new micropython image with a frozen microWebSrv, while I'm in an early evaluation and testing phase of my project.

svenscheil
Автор

Enjoying the tutorials. Come up against a problem using a DFRobot FireBeetle ESP32. When I tried using the command 'rsync . /pyboard' or indeed attempt to copy the 'www' folder over to the ESP32 I get the error 'timed out or error in transfer to remote'.

The 'rsync' command works fine with other ESP32's like the Lolin32 or the DevKitV1 - just a problem with The DFRobot Firebeetle. It has 16MB of flash on board and the flash was wiped with the latest MicroPython firmware copied over using ESPTool - so I don't know what's wrong.

MikeNewham
Автор

I'm using an ESP32-WROOM-32 board . - It does NOT have a reset button. I'm using it with Thonny IDE does a "Start/Restart backend" function which does not use REPL. So I'm not getting any startup messages that conveniently reveal the IP address of the network it creates. You instantiate the network by.... station = network.WLAN(network.STA_IF)
station.active(True)
station.connect("aWhisper", "my-password")
This did NOT create a hot spot, as it never showed up in my WIFI SSID listings. So was this a mistake? Should you have used...
station = network.WLAN(network.AP_IF) instead, to create the hot spot?


I thought that to create a hot spot, I would do the following....ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid='aWhisper', authmode=network.AUTH_WPA_WPA2_PSK, password='my-password')
ap.ifconfig(('192.168.84.1', '255.255.255.0', '192.168.4.1', '192.168.4.1')) # ip, netmask, gateway, dns
NOTE: then, when I went to my ifconfig, it came in on en1, inet 192.168.84.2 netmask broadcast 192.168.84.255
Which is correct. I think this might have been an error.

jdcrunchman
Автор

Great tutorial. Thank you a lot. Is there a way to increase rshell connection speed? I'm transferring 2.9 Mb web app to esp32 board, it takes ages to finish using rsync.

alexbokhankovich
Автор

Any reason why rshell hangs at "Connecting to /dev/ttyUSB0..."? Tried flashing the micropython firmware at both 0x0000 and 0x1000 addresses but still no luck. I'm using an ESP8266 but I don't know if that would make any significant differences (other than the micropython firmware being used).

fetchdcode
Автор

Omfg, thanks a ton, I couldn't get picoweb working but this did work

rednassie
Автор

rshell doesn't return ip address for ESP32 after resetting. Any suggestions?

juanvalverde
join shbcf.ru