feat(firmware): battery coulomb counter — track charge/discharge cycles and estimate remaining capacity #325

Closed
opened 2026-03-03 00:45:46 -05:00 by sl-jetson · 0 comments
Collaborator

Create an STM32 firmware module that reads battery current via ADC (INA219 or shunt resistor) and integrates over time (coulomb counting). Track total charge in/out per cycle. Publish battery_state with voltage, current, percentage (based on coulomb count vs rated capacity), and cycle count. Store calibration in flash. Single C file: src/battery_coulomb.c + header.

Create an STM32 firmware module that reads battery current via ADC (INA219 or shunt resistor) and integrates over time (coulomb counting). Track total charge in/out per cycle. Publish battery_state with voltage, current, percentage (based on coulomb count vs rated capacity), and cycle count. Store calibration in flash. Single C file: src/battery_coulomb.c + header.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seb/saltylab-firmware#325
No description provided.