-
Notifications
You must be signed in to change notification settings - Fork 23
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
Sudden battery drain #59
Comments
What does your battery voltage graph look like? The battery % is calculated based on the voltage, and every battery will be a little different. I calibrated this for the batteries I had for testing, but yours may have a different charge/discharge curve. |
Could you also show the boots for the same timerange? Assumptions: About the battery: I am using a LiPo, 3.7V, 1200mAh (from Eckstein, ZB07002) and that gives the following discharge curve. You see a steep(er) drop at around 3.45V, that's more or less the cut-off voltage for my battery. |
How can I see the boots? Are they published via MQTT to Home Assistant? My battery is specified as Rated voltage: 3.7V, capacity: 3000mAh, 11.1Wh, it shouldn't start discharging so fast at around 4.0V. I'll keep an eye on it, it's currently approaching 4V again (after about 10 days of use). |
Okay, with that specs it's really odd that it empties that rapid. For comparsion: Mine usually lasts ~1 month, with sleep cycle set to 20 minutes and a weekday speed up between 6 and 9 o'clock to 5 min intervals. Yes, it's published via MQTT under homeassistant/sensor/<hostname>/boot/state -> {"boot": <value>} |
@klopyrev Could you provide the commit hash the old version is running on? @airmaxx Good catch! My assumption would be, that the ESP32 is not going to sleep (anymore) Is any of you using the feature to modify the sleep times via MQTT? |
@elratt0r I checked the version date printed in the main.cpp file, and I think both my devices have been running the new version (I forgot I reflashed the older device). So, good chance it's not new code. I just reflashed both devices again to make sure. I'll monitor to see what happens. |
Also experiencing this. Looking at a few cycles wild guess there may be an issue with the voltage calibration as a pretty typical LiPo discharge curve can be observed over the span of (in my use case) 1 month before it drops off a cliff at a reported 3.8-3.9 volts or so. After recovering it reported 3.2-ish volts. Unfortunately I was not logging boot reason but I have turned all of those on now and will see if there's anything to report there (with reference to the configurable sleep duration feature which I am using) Using the 3000mAh battery included with the Inkplate 10 |
I know this may be difficult, but getting the device's serial logs while it tries to go into sleep would help. However this would need to be done while not providing any power over USB in order to not affect the battery readings. This could be done by using a USB cable that has the VCC line cut, or an external UART connected directly to the UART pins on the ESP32. |
This is from using an external UART adapter connected to the ESP32 TX / RX pins. I can leave this setup connected to my PC until the issue reoccurs. 13:19:33.884 > ets Jul 29 2019 12:21:46 |
@klopyrev Thanks for the logs. It looks like its reporting the battery is at 100% when you took these. is that is correct? Additionally, do you know if it stayed in sleep mode for the 20 minutes? or did it wake early for anything? |
Yeah, the device was fully charged at the beginning. Here are the logs from a few hours: https://pastebin.com/fADMkRPj |
I don't see anything out or the ordinary in the logs. And your reported battery drain looks normal too. |
@airmaxx , it may be unrelated to the battery drain issue, but it looks like your homeplate crashed towards the end of the boot count graph. I'm thinking on how to go about debugging this. |
I'm still running with my inkplate connected to my PC with the external UART adapter. I'll keep it running until the issue happens. It make take some time. 2 of the times the drain happened it was after about a week. 1 of the times it was after about a month. |
I am not 100% sure about this - I pressed the button to (re?)start Homeplate at that time because I thought it was already crashed - but it seems to have continued to run while losing a lot of battery. I have now restarted it with only 35% battery to see if the behaviour is related to battery level/voltage. |
From a fresh boot, the boot count counter starts at 0, and is incremented every time the homepalte wakes from sleep. It only resets to 0 when doing a fresh boot (not waking from sleep). |
I'm experiencing a sudden battery drain, after 1-2 weeks of running just fine. Any idea what could be the cause, or how I can debug it?
The text was updated successfully, but these errors were encountered: