Javier Gazzarri, MathWorks
Battery management systems balance the state of charge of individual cells and ensure the proper charging, discharging, and safe operation of rechargeable battery packs. Simulink® is used to create a model of a three-cell battery pack that is charged using a constant-current constant-voltage (CCCV) profile, and simultaneously equalizes the state of charge of the cells using on-charge passive balancing. The balancing logic is designed in Stateflow®, and it is ready for automatic C-code generation for hardware implementation.