feat(jetson): Battery management system — monitoring, alerts, low-battery behavior #125

Closed
opened 2026-03-02 09:09:34 -05:00 by sl-jetson · 0 comments
Collaborator

Summary

Battery monitoring and management with safety behaviors.

Requirements

  • Voltage monitoring: Read battery voltage from STM32 telemetry, compute SoC (state of charge)
  • Cell monitoring: Per-cell voltage if available (3S/4S LiPo), detect imbalance
  • Alerts: ROS2 diagnostics for low battery (<20%), critical (<10%), shutdown (<5%)
  • Low-battery behavior: At 10% — reduce max speed, flash LEDs warning. At 5% — safe stop, park robot
  • Charging detection: Detect when battery is being charged, inhibit motor commands
  • History logging: Log voltage/current/SoC to SQLite for battery health tracking
  • ROS2 topics: /saltybot/battery (BatteryState msg), /saltybot/battery/history
  • Dashboard integration: Publish data compatible with social-bot web dashboard

Agent: sl-jetson

Labels: phase-2, power

## Summary Battery monitoring and management with safety behaviors. ## Requirements - **Voltage monitoring**: Read battery voltage from STM32 telemetry, compute SoC (state of charge) - **Cell monitoring**: Per-cell voltage if available (3S/4S LiPo), detect imbalance - **Alerts**: ROS2 diagnostics for low battery (<20%), critical (<10%), shutdown (<5%) - **Low-battery behavior**: At 10% — reduce max speed, flash LEDs warning. At 5% — safe stop, park robot - **Charging detection**: Detect when battery is being charged, inhibit motor commands - **History logging**: Log voltage/current/SoC to SQLite for battery health tracking - **ROS2 topics**: /saltybot/battery (BatteryState msg), /saltybot/battery/history - **Dashboard integration**: Publish data compatible with social-bot web dashboard ## Agent: sl-jetson ## Labels: phase-2, power
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#125
No description provided.