Blog
What Need to Consider When Designing a BMS, and How to Design It?
Is Choosing the Right Chips Half the Battle Won?
- The AFE is “the one on the front lines”—it’s closest to the battery and responsible for accurately collecting data like voltage, current, and temperature. It also needs to make quick decisions in emergencies; for example, if the battery shorts, it can’t wait for the MCU’s approval but must cut off the circuit directly. A split second of delay could cause the battery to bulge.
- The MCU is “the coordinator”—it integrates the raw data from the AFE and the SOC (State of Charge) calculated by the fuel gauge, then tells the charger “it’s time to reduce power” or sends a signal to the instrument panel saying “how much power is left.”
- The fuel gauge is “the translator”—it converts the “how many volts, how many amps” collected by the AFE into understandable info like “30% power remaining” or “the battery will last another 2 years.” If its calculations are inaccurate, users will feel like “the range is falsely advertised.”
Replace the AFE When SOC Accuracy Is Insufficient?
- OCV (Open Circuit Voltage) calibration: When the battery is idle for ≥2 hours (OCV stabilizes), use the OCV value to correct the SOC. If the calibration deviation exceeds 3%, trigger a parameter reset.
- ESR (Equivalent Series Resistance) compensation: Based on the voltage and current data collected synchronously by the AFE, calculate ESR changes in real time to correct the impact of voltage drop under dynamic loads on SOC estimation.
- For consumer electronics, use 10Hz to balance accuracy and power consumption.
- For energy storage systems (e.g., home energy storage), use 50Hz to capture current mutations during charge-discharge switching.
- For automotive scenarios, use 100Hz to adapt to rapid current changes during regenerative braking.
If a Fault Occurs, Should You Cut Off Power Directly?
- For high-power projects like automotive or energy storage, prioritize high-side protection. Although you need to install an additional charge pump to drive the MOSFET, the grounding is stable—and even if a fault occurs, communication won’t be interrupted.
- For low-power devices like phones or earbuds, low-side protection is more convenient. No extra components are needed, and it saves costs.
What Do You Need to Consider for Balancing Design?
- External balancing: Connect a high-power resistor (e.g., 10Ω/1W) in series outside the AFE. The balancing current can reach 300-500mA, making it suitable for large-capacity battery packs (e.g., ≥10Ah for electric bikes or energy storage). During design, pay attention to resistor heat dissipation—for example, place the resistor on the edge of the PCB and reserve a heat dissipation gap of ≥2mm to prevent the local temperature from exceeding 60°C. At the same time, use the MCU to control the balancing timing, prioritizing execution at the end of charging (SOC ≥90%) to reduce energy waste.
- Internal balancing: The AFE integrates a balancing resistor, so no additional components are needed, and the BOM (Bill of Materials) cost is low. It’s suitable for small-capacity battery packs. However, the balancing current is smaller, so the balancing time needs to be extended. Additionally, you should pay attention to the AFE’s power consumption control to avoid self-heating during balancing affecting stability.
How to Design a BMS Charge-Discharge Circuit?
Which Path Does Current Take During Discharge?
When the load is connected to P+ and P-, the battery supplies power outward. Current flows out from B+ to P+, passes through the load, and flows back to the BMS from P-. Next, it goes through the discharge MOS (Q9) and the sampling resistor R1, and finally returns to B-. At this time, Q9 must be turned on—for an N-channel MOSFET, the condition for turning on is that the gate voltage is higher than the source voltage (you can think of it as the gate needing power to connect the drain and source).
Which Path Does Current Take During Charging?
After connecting the charger, current enters from C+, first passes through the Schottky diode D4 (since it has a small voltage drop, generates less heat when the charging current is large), and then enters the battery B+ (to charge the battery). When the battery is fully charged, current flows out from B-, passes through R1, Q9, and the charging MOS (Q10), and finally flows back to the negative terminal of the charger from C-. At this time, both Q9 and Q10 must be turned on: Q9 allows current to pass through itself after flowing from the B- side through R1, and Q10 sends the current back to the charger.
What Is the Sampling Resistor R1 Used For?
When current flows through it, a voltage is generated (Ohm’s Law: V=I×R). This voltage reflects the current magnitude—the larger the current, the higher the voltage across R1. The capacitor C2 behind it is for filtering; it smooths out current fluctuations, allowing the control circuit to detect the current more accurately (e.g., for sudden inrush currents, the capacitor can buffer the impact).
How Are the MOSFET Controlled?
The gates of Q9 (discharge MOS) and Q10 (charging MOS) have transistors Q1 and Q2 acting as switches behind them. During normal operation, Q1 and Q2 are off, and the gate of the MOSFET is pulled to a high voltage by the internal circuit (meeting the turn-on condition). Once overcurrent or short circuit is detected (e.g., the voltage across R1 exceeds the safe value), the control circuit will apply power to the base of Q1 or Q2, turning them on and pulling down the gate voltage of the MOSFET—the MOSFET then turns off, the circuit is cut off, and the battery and load are protected.
What Are the Protective Components Used For?
- Diode D4: It conducts unidirectionally! During discharge, the potential of B+ (battery positive) is higher than that of C+ (charger positive), so D4 is reverse-biased and cut off, preventing the battery from discharging into the charger (otherwise, the battery would be drained in reverse).
- Zener diode D1: It protects Q1. If the voltage output by the control circuit suddenly rises, D1 will break down and clamp the base voltage of Q1 to an appropriate level, preventing Q1 from being burned out.
- Diodes D5 and D6: They protect the gate of the MOSFET. The oxide layer between the gate and source of a MOSFET is very thin and easily broken down by overvoltage. D5 and D6 act like safety valves—if the gate voltage is too high, they clamp the voltage near the potential of the drain or source to prevent breakdown.
- Capacitors C1, C3, C4, C5: All are for filtering. C1 and C3 filter out noise on the power line; C4 and C5 stabilize the gate voltage of the MOSFET (preventing the MOSFET from being turned on or off by mistake due to noise).
How to Protect Against Overcurrent?
Suppose the load is short-circuited during discharge—the current suddenly surges, and the voltage across R1 rises sharply. The control circuit detects this abnormal voltage, immediately applies power to the base of Q1, turns on Q1, and pulls down the gate voltage of Q9. Q9 turns off, the discharge circuit is cut off, and the battery won’t be damaged by the large current. The same logic applies to charging: Q2 will cut off Q10 to stop charging.
How Does the BMS Perform Current Sampling?
Low-side sampling connects the sampling resistor R_SHUNT in series between the load and ground. When the load current I_LOAD flows through it, a voltage drop ΔV_SHUNT = I_LOAD × R_SHUNT is generated. The operational amplifier (op-amp) amplifies this voltage differentially and outputs V_O for ADC collection, which is finally used to back-calculate the current value.
Low-Side Sampling
Scale: The Sampling Resistor
Airbag: The Protection Diode
Filter: The Filter Capacitor
Tips
Note that a +5V power supply is used here, so you need to choose a single-supply op-amp (a dual-supply 5V one won’t work). On the PCB, the high-current power circuit (near the sampling resistor) and the op-amp’s signal circuit should be routed separately to prevent interference from being introduced. The reverse voltage rating of the diode should be higher than the op-amp’s power supply to prevent it from being broken down by surge voltages.