-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Power consumption far too high in deep-sleep mode #144
Comments
Test this example https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/blob/esp32s3/examples/demo/demo.ino Remember, the current is measured from the battery, not from the USB-C. |
Thanks for the quick feedback! :-) I use timed control to wake up, every hour during the day, only once at night. Here is the code: if (hour >= 6 && hour <= 22) {
esp_sleep_enable_timer_wakeup(Time_To_Sleep * 1000000ULL);
}
else {
esp_sleep_enable_timer_wakeup(Time_To_Sleep_Night * 1000000ULL);
}
epd_poweroff_all();
WiFi.disconnect(true);
touch.sleep();
delay(100);
Wire.end();
Serial.end();
esp_deep_sleep_start();
} I don't understand why the current consumption in deep sleep is almost 20 times higher than in the demo.ino? |
Note that the timer wakeup you use has the low-speed clock turned on. You can try turning off the RTC peripheral manually. For deep sleep, see the documentation here. esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH,ESP_PD_OPTION_OFF);
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM,ESP_PD_OPTION_OFF); https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/sleep_modes.html |
I've tried that too, there were a few tips on the internet from people with the same problem, but it didn't help. esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF); I also replaced the timer wakeup with external wakeup with an onboard button, same problem. |
OK, I don't have a board right now, I will apply for a board to test, and the results should be available tomorrow. |
Have you connected an external sensor? I tested the timing + external wake-up and both were 388uA. I cannot measure the 6mA you mentioned. Can you provide the minimum test code? 53d75c7c1c73bf4f6a6e3d7147e2277f.mp4 |
I have a Lilygo T5, 4.7 epaper display in version 2.4, which I program via Arduino.
For a battery-powered application, I only need an update once an hour.
Since the power consumption should be kept as low as possible, I switch off the display
epd_poweroff_all();
and then I put the ESP32 S3 into deep sleep mode
esp_sleep_enable_timer_wakeup(Time_To_Sleep * 1000000ULL);
esp_deep_sleep_start();)
However, the current consumption it still at 5-6mA and way too high for my application and far above the values specified in the data sheet for the deep sleep mode.
What can I do to keep the current consumption in deep sleep mode well below 1mA?
The text was updated successfully, but these errors were encountered: