42V Battery Management System for 10S Packs
Overview
A battery management system for the 10S lithium-ion pack on my skateboard, because a pre-built pack costs a lot more than its cells and I wanted to understand what keeps a big pack from catching fire. The analog front end is a TI BQ77PL900, which monitors 5 to 10 cells and hands cell voltages to an RP2040's ADC. The RP2040 switches the charge and discharge paths through back-to-back P-channel MOSFETs with their drains facing each other so current can flow both ways, rated at 20 A, or 840W peak. Protection covers over-current through a shunt and op-amp, over-temperature, and over- and under-voltage, all of it cutting the pack at the MOSFETs. A switching regulator makes 5V for the RP2040 from 42V, and a UART and a 5-pin JST-PH go to a small button-and-LEDs board. It's a 4-layer board drawn in Fusion 360 and made at JLCPCB. Revision A is from November 2024; it shorted on first power-up from two leads routed too close, and the respin fixed the clearance. I took an MIT power electronics course over summer 2024 to get the high-current part right.
Photo gallery
What I learned
- A linear regulator from 42V to 5V is a heater. 1 A at 5V out is 5W; 1 A at 42V in is 42W. That's 12 percent efficiency and 37W into a small board. I'd have picked an LDO out of habit. The arithmetic made it a switcher.
- Thermal runaway starts near 125 C, not 500 C. I'd been thinking about the explosion. The protection has to act where a cell starts heating faster than about 20 C a minute, long before anything dramatic, which is why every fault path cuts the pack instead of flagging it.
- Back-to-back P-channel MOSFETs are how one switch handles both directions. A single MOSFET's body diode conducts one way whatever the gate says. Two with their drains facing each other block both ways and let charge and discharge share one path.
- Two layers would have worked and been worse. The 4-layer board exists for footprint and trace width: inner copper kept the high-current paths wide in a small area, and the third layer, mostly empty, carried the UART and low-voltage lines across the board without crossings.
- The short was a clearance mistake, not a schematic one. Rev A failed on first power-up because two leads sat too close on the board. I'd run the design rule check with default clearances meant for 5V logic on a 42V board. Clearances now come from the voltage, before routing starts.
- Take the course when the project needs it. The MIT power electronics class in summer 2024 was the fastest way to stop guessing about the high-current stage, and both the BMS and the motor controller came straight out of it.