Can I read the battery voltage and charge status?

I was testing a LiPo battery and drained it flat. The cell would not charge (tried overnight) and so I changed disable_charging=1 to 0 i.e.

optargs=atmel.pm_modes=standby,ulp1 giantboard.disable_charging=0

and tried again, but still no luck.

I then charged the cell with a different Feather board.

I was wondering, is there a way to read the cell voltage and/or charge status?

Colin

I need to add some more information in the docs about battery stuff. To enable battery charging you need to remove that line completely, setting it to zero wont do anything. I need to make a small change to how that variable works. You can see all of the availble information about the charger in /sys/class/power_supply/act8945a-charger. You can cat /sys/class/power_supply/act8945a-charger/status to see what the current charging state is. The orange LED near the battery will also be on when the battery is charging and turn off when the battery is full.

1 Like