We're doing a deep dive into deep sleep! Thanks to PCB Way for sponsoring the videos -
https://www.PCBWay.com/?from=atomicThe ESP32 e-Paper weather display lasted exactly 2 months on its 1000mAh battery. It achieves this by spending most of its time in deep sleep, only waking up every 30 minutes to get a fresh forecast and update the display.
We're going to look at:
[0:00] Intro
[1:33] How to get into deep sleep
[1:42] Waking up by using a timer
[2:56] Waking up by GPIO pins (single and multiple)
[5:26] Waking up with the touch sensors
[6:13] How to know why you were woken up?
[7:37] How to persist state during deep sleep?
[8:24] How much current do we use in deep sleep?
It's pretty interesting stuff and opens up some great possibilities.
Sample code for this video is here:
https://github.com/atomic14/esp32_deep_sleepHere's a link to one of @AndreasSpiess videos (the guy with the Swiss accent)
https://www.youtube.com/watch?v=ajt7vtgKNNM he's got a bunch more videos measuring different ESP32 boards - definitely worth having a watch.
----
Patreon:
https://www.patreon.com/atomic14ko-fi:
https://ko-fi.com/atomic14