Battery voltage telemetry and low-voltage cutoff #613

Closed
opened 2026-03-15 10:02:45 -04:00 by sl-jetson · 0 comments
Collaborator

Add battery voltage monitoring to STM32 firmware. Read battery voltage via ADC (voltage divider on existing battery_adc.c). Implement 3-stage low-voltage protection: WARNING at 21.0V (3.5V/cell for 6S), CRITICAL at 19.8V (3.3V/cell, reduce motor power to 50%), CUTOFF at 18.6V (3.1V/cell, disable motors, buzzer alarm). JLINK telemetry: battery_voltage_mv, battery_percent (simple linear 18.6-25.2V mapping), protection_state. Buzzer output on existing GPIO for audible low-battery warning.

Add battery voltage monitoring to STM32 firmware. Read battery voltage via ADC (voltage divider on existing battery_adc.c). Implement 3-stage low-voltage protection: WARNING at 21.0V (3.5V/cell for 6S), CRITICAL at 19.8V (3.3V/cell, reduce motor power to 50%), CUTOFF at 18.6V (3.1V/cell, disable motors, buzzer alarm). JLINK telemetry: battery_voltage_mv, battery_percent (simple linear 18.6-25.2V mapping), protection_state. Buzzer output on existing GPIO for audible low-battery warning.
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#613
No description provided.