Skip to content

Firmware improvements: Input VIN gating, fast parallel calibration, and smooth non-blocking LED animations#25

Merged
napowderly merged 3 commits intomainfrom
firmware-improvements
Feb 21, 2026
Merged

Firmware improvements: Input VIN gating, fast parallel calibration, and smooth non-blocking LED animations#25
napowderly merged 3 commits intomainfrom
firmware-improvements

Conversation

@napowderly
Copy link
Copy Markdown
Contributor

@napowderly napowderly commented Aug 19, 2025

Summary

  • Add input-voltage sensing on IO16 and block startup until VIN is stable between 11–13 V.
  • Replace per-cell sequential calibration with a fast parallel routine.
  • Add smooth, non-blocking LED animations via a dedicated FreeRTOS task (breathing red for VIN wait, full-strip progress bar for calibration).
  • Add GETVIN UART command and switch CALIBRATE_ALL to use the fast method.

Motivation

  • Prevent bringing up the system on bad or unstable input power.
  • Cut calibration time by broadcasting DAC setpoints to all cells, settling once, and reading all cells in a batch.
  • Keep LED feedback smooth and responsive during blocking operations.

@napowderly napowderly merged commit 10c3ff3 into main Feb 21, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant