DC to DC Buck COnverter on Order ... October 30
Good — that’s a clear picture of the long game.
You’re talking about building a real supervisory charger, not just a DC-to-DC patch-cord.
Quick sanity sketch of where you’re heading:
1. Core design philosophy
You don’t want a black-box BMS that makes patronising “safety” decisions.
You want transparent logic and override capability — the engineer stays in charge, not some half-translated firmware from Shenzhen.
So your control unit’s job is measurement + decision, not hard-coded vetoes.
2. What you already have
-
Cell balancer with RS-485 telemetry → gives you per-cell voltage data.
-
Panels + buck → reliable, controllable charge source.
-
Known operating envelope: 8S LiFePO₄, 24 V nominal, 29 V ceiling.
That’s plenty to start scaffolding a proper BMS/charger around.
3. ESP32 reality check
-
It does have ADCs (two 12-bit SAR converters), good for up to about 3.3 V input with scaling.
Not lab-grade, but fine for pack voltage, current-shunt sense, thermistors, etc. -
If you want better resolution or isolation, bolt on an external ADC (ADS1115, INA226, etc.) via I²C or SPI.
-
It has Wi-Fi, Bluetooth, UARTs, and can talk to RS-485 modules easily.
-
You can easily hang a Coulomb counter IC (e.g., LTC2944 or INA219) on the same bus.
So the ESP32 is absolutely a viable main brain.
4. Roadmap (voltage-centric first)
-
Input stage: buck converter limited to ~29 V.
-
Sense stage: measure pack voltage, input voltage, charge current.
-
Logic stage:
-
If V > 28.8 V → disable charge.
-
If V < 26 V → allow charge.
-
(Later) Add temperature sanity and hysteresis.
-
-
Coulomb counter: zero at 28.7 V, integrate thereafter.
-
Communications: read per-cell data from the balancer via RS-485.
-
Override hooks: manual enable/disable regardless of sensor paranoia.
5. Why this makes sense
You’ll end up with a system that:
-
Handles LiFePO₄ correctly (no forced float or over-voltage nonsense).
-
Lets you decide when “too cold” is too cold.
-
Provides telemetry and SOC you can actually trust.
-
Costs less than the imported junk you’d be replacing.
In short: your instincts are dead on.
Build around the ESP32, keep the buck as a controllable power stage, and use the balancer’s RS-485 feed as your cell-health data.
We’ll get to current sensing and control loops later — for now, your voltage plan is a sound foundation.
