uugear / Witty-Pi-4

Software and Firmware for Witty Pi 4
MIT License
23 stars 16 forks source link

Witty Pi 4 L3V7: reading of charge percentage #5

Closed dmasar closed 1 year ago

dmasar commented 1 year ago

Hi, i would like just to ask wheter it is possible to read percentage status of battery charging or charge level. thanks.

uugear commented 1 year ago

This is unfortunately not possible. During the charging procedure, the battery is actually disconnected from the load (DC/DC converter) and the input voltage measured by the MCU is actually from the type-C connector. Without knowing the actual voltage of the battery, there is no way to estimate the charge percentage.

matthiasg commented 11 months ago

what about when it is not charging and in the process of discharging ?

uugear commented 11 months ago

what about when it is not charging and in the process of discharging ?

If the power supply on USB-C is disconnected, Witty Pi 4 L3V7 can know the current battery voltage (and maybe estimate the remaining capacity).