Skip to main content

Module battery

Module battery 

Source
Expand description

Battery voltage on GPIO10 (ADC1) through a 100 kΩ / 100 kΩ divider.

The board routes no charge-status or USB-presence signal to a GPIO, so voltage is the only battery information available. While USB power is connected, the reading is the charger’s output, not the cell’s resting voltage.

Structs§

Battery
Battery voltage monitor.
BatteryResources
ADC1 and the sense pin.

Functions§

estimate_percent
Rough state of charge for a single Li-ion cell from its voltage, in %.