Electrification

Battery State of Charge

Estimate battery state of charge with Simulink

Simscape Battery

Design and simulate battery and energy storage systems

State of charge (SOC) is a relative measure of the amount of energy stored in a battery, defined as the ratio between the amount of charge extractable from the cell at a specific point in time and the total capacity. Accurate state-of-charge estimation is important because battery management systems (BMSs) use the SOC estimate to inform the user of the expected usage until the next recharge, keep the battery within the safe operating window, implement control strategies, and ultimately improve battery life.

Traditional approaches to state-of-charge estimation, such as open-circuit voltage (OCV) measurement and current integration (coulomb counting), can be reasonably accurate for cell chemistries with a significant OCV variation throughout the SOC range, as long as the current measurement is accurate. However, estimating the state of charge for battery chemistries that exhibit a flat OCV-SOC discharge signature, such as lithium iron phosphate (LFP), is challenging. Kalman filtering is a promising alternative approach that circumvents these challenges with a slightly higher computational effort. Such observers typically include a nonlinear battery model, which uses the current and voltage measured from the cell as inputs, as well as a recursive algorithm that calculates the internal states of the system, including state of charge.

With Simulink® you can:

  • Use built-in estimation techniques such as Kalman filters and extended Kalman filters
  • Use reference examples to design your own state-of-charge observers
  • Create accurate battery models to verify the performance of your state-of-charge algorithm in simulation
  • Use estimated state of charge to develop BMS algorithms (e.g., to control the charging profile and monitor imbalance)
  Estimating battery state of charge using an unscented Kalman filter in Simulink.

Estimating battery state of charge using an unscented Kalman filter in Simulink.

Panel Navigation

Go from basic tasks to more advanced maneuvers by walking through interactive examples and tutorials.

Power Electronics Control

Explore the Power Electronics Control Community

The MathWorks community for students, researchers, and engineers using Simulink to apply power electronics control to Electric Vehicles, Renewable Energy, Battery Systems, Power Conversion, and Motor Control.

30-Day Free Trial

Get started