How long can the esp32 run on batteries while remaining connected?
Posted: Wed Dec 12, 2018 2:52 am
I've working quite a bit on answering that question for the esp32 and the esp8266. Using both deep-sleep and automatic light-sleep. I ended up writing a pretty long and in-depth blog post series that looks at both microcontrollers. The series starts at https://blog.voneicken.com/projects/low ... ifi-intro/ and you can see from the TOC where the esp32-specific posts start.
As a teaser the final chart is: That's both uC's compared, deep-sleep and automatic light-sleep, open and secure access points, TCP and MQTT/TLS. Plus some dotted lines for what could be achieved if Espressif fixed some issues in the Wifi binary blobs...
The X axis shows the period at which the app sends a message to a server on the local network. In the esp8266 case it's just a simple TCP message, in the esp32 case it's MQTT/TLS pub+sub.
There are so many knobs and so many corner cases in Wifi that I may well have made a mistake or overlooked something. Please let me know if you spot an inaccuracy. Also, questions & comments appreciated...
As a teaser the final chart is: That's both uC's compared, deep-sleep and automatic light-sleep, open and secure access points, TCP and MQTT/TLS. Plus some dotted lines for what could be achieved if Espressif fixed some issues in the Wifi binary blobs...
The X axis shows the period at which the app sends a message to a server on the local network. In the esp8266 case it's just a simple TCP message, in the esp32 case it's MQTT/TLS pub+sub.
There are so many knobs and so many corner cases in Wifi that I may well have made a mistake or overlooked something. Please let me know if you spot an inaccuracy. Also, questions & comments appreciated...