Closed Makhaos closed 4 years ago
On T-Beam v10/v11 DCDC3 powers the ESP32 CPU. Thus, if you switch off DCDC3 line of AXP192, you cut off power of ESP32, what means the CPU is not in sleep mode, but just off.
To save power, you need to select one of the sleep modes of ESP32 https://lastminuteengineers.com/esp32-sleep-modes-power-consumption/#:~:text=ESP32%20Sleep%20mode%20is%20a,it%20to%20retain%20its%20data. and carefully design your code to control / shutdown all peripherals.
Since this is not an issue of this library, i suggest to close this.
Thank you for your input
I'm currently using the ESP32's deep sleep mode (and leave DCDC3 enabled), but i noticed that the AXP library also provides a setSleep()
function, and the example for it does turn off the DCDC3, too. I'm wondering if this can be combined with the setShutdownTime()
, setTimeOutShutdown()
or any of the other related functions to delegate the wakeup from the ESP32 to the AXP? Neither my C++ skills nor my understanding of registers is good enough to figure this out on my own.
According to my multimeter, i'm already at 0.8mA when in deep sleep, by the way. But lower is always better ;-)
PS: If anyone knows how to switch off the dim red LED when in deep sleep, i'd be very grateful! :-)
@jangrewe ESP32 cannot be woken up by AXP192. setSleep can only be woken up by clicking the PEK button. SetShutdownTime and setTimeOutShutdown are all just to set the time of the button.
Ah, that makes sense. Thank you for clearing that up!
Hi there, first of all, thank you for this library :)
I am working with a TTGO T-Beam 1.0 and I followed their repo here: https://github.com/Xinyuan-LilyGO/LilyGO-T-Beam to configure the board to go to sleep. I noticed that DCDC3 is commented out for powering it down. You mentioned that the T-Watch uses DCDC3 as the esp32 to power the main chip, so probably is the same for the T-beam? I am reading current consumption of 40mA like this and would much prefer to get the consumption they promised of around 0.9mA. Do you know if I can safely power down DCDC3 and can I wake it up afterwards as well with esp_sleep_enable? Below I have a snippet of the code:
Thank you
EDIT: bad formatting