glenn20 / upy-esp32-experiments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Experiments and Measurements with Micropython on ESP32* devices

Here are some of my experiments and measurements on running micropython on ESP32* devices, including:

Comments, suggestions, criticisms and requests are welcome via the Issues or Discussions tabs above.

NOTE: I was a bit time constrained during these initial measurements, so they are not as systematic, consistent or clearly presented as I would prefer, but there are still some useful conclusions to be drawn, so I thought I'd share this early work.

One big caveat is that most of these initial measurements are made by monitoring the power consumption on the USB power line which will over-estimate power consumed when the devices are powered by battery.

Highlights

Measuring time to wake ESP32-S3 and ESP32 devices from deepsleep, boot micropython and return to deepsleep:

Wake from deepsleep, boot and return to deepsleep Time (ms) Charge (mC) Energy (microWh)
Unoptimised (boot to main.py) 635.1 41.9 58.3
Optimised (boot to frozen _boot.py) 48.8 1.8 2.5
Optimised boot and send ESPNow Mesage 119.0 7.7 10.7
Optmised boot and send MQTT message (static IP) 774.3 108.6 150.9
Optmised boot and send MQTT message (DHCP) 1626.0 204.3 283.8
ESP32 Wake Stub 2.8 0.044 0.06

drawing

About


Languages

Language:Python 100.0%