Skip to content
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 (deep sleep) and recovering from drained battery #42

Open
phooji opened this issue Dec 21, 2024 · 2 comments
Open

Power consumption (deep sleep) and recovering from drained battery #42

phooji opened this issue Dec 21, 2024 · 2 comments

Comments

@phooji
Copy link

phooji commented Dec 21, 2024

I was hoping to understand more about power management on this board. I'm running the board off of a single 18650 cell and hoping to maximize battery life. I'm using the 'wake on motion' interrupt from an accelerometer to wake from deep sleep, so ideally I'd like to power the I2C bus, the ESP32 itself, and nothing else.

  • What's the best way to minimize power consumption while in deep sleep? At the moment I'm turning off WiFi/Bluetooth, setting the backlight pin to LOW, and putting the display to sleep, then putting the ESP32 into deep sleep. Is there more I could/should be doing?

  • If the battery drains completely while the device is in deep sleep, it appears to put the PMU in a state where it refuses to charge the battery, and also doesn't boot the device, once plugged in again. Is there a setting I can change to ensure the PMU prevents or recovers from accidental battery drain?

I recognize these are more questions rather than real bugs, but it'd be great to see some examples / documentation to cover this! Thanks!

@phooji
Copy link
Author

phooji commented Jan 2, 2025

Happy new year! Still pretty interested in this!

@lewisxhe
Copy link
Contributor

lewisxhe commented Jan 6, 2025

  1. The best way to sleep is to turn off all peripherals that can be turned off. You have mentioned it, and I think you did a good job.

  2. Refusal to charge? Did you turn on the PMU to charge? Because it can be turned off, even a completely over-discharged battery can be fully activated and charged by the PMU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants