image thumbnail

Battery Modeling

version 1.27 (2.16 MB) by Javier Gazzarri
Lithium ion battery characterization, state estimation, cell balancing, and thermal management

40K Downloads

Updated 03 Jun 2021

View License

Editor's Note: Popular File 2020

This file contains Simscape Electrical Lithium-ion battery models for parameter estimation and simulation.
1. Unzip the project.
2. Double-click BatteryModeling.prj to set up the MATLAB path. The html index contains links to open each example.
Demos:
1. 3S-1P battery pack CCCV charge with passive balancing using Simscape Electrical. Charge / discharge cycling with passive balancing, including thermal effects.
2. EV battery cooling. Liquid cooling of an automotive battery pack.
3. Cell characterization. Parameter estimation of single cell using pulsed discharge experiments.
4. SOC Estimation using UKF.
5. SOH (internal resistance) online estimation using EKF. Internal resistance grows over time and the nonlinear Kalman Filter estimates its evolution.
6. Battery App. This app can be used to find battery parameters from datasheet information.
This site contains additional information on battery modeling using MathWorks(R) tools:
https://www.mathworks.com/solutions/power-electronics-control/battery-models.html
----------------------------------------------------------------------------
Additional literature:
SAE 2015: Model-Based Parameter Identification of Healthy and Aged Li-ion Batteries for Electric Vehicle Applications
http://www.mathworks.com/company/newsletters/articles/model-based-parameter-identification-of-healthy-and-aged-li-ion-batteries-for-electric-vehicle-applications.html
Webinar: Battery Data Acquisition and Analysis Using MATLAB
http://www.mathworks.com/videos/battery-data-acquisition-and-analysis-using-matlab-89170.html
Webinar: Lithium Battery Model with Thermal Effects for System-Level Analysis
http://www.mathworks.com/videos/lithium-battery-model-with-thermal-effects-for-system-level-analysis-81886.html
IEEE 2012: Lithium Battery Model with Thermal Effect
https://www.mathworks.com/content/dam/mathworks/tag-team/Objects/i/71900-ieee-2012-high-fidelity-lithium-battery-model-with-thermal-effect.pdf
SAE 2013: Simplified Extended Kalman Filter Observer for Battery SOC Estimation
https://www.mathworks.com/content/dam/mathworks/tag-team/Objects/s/76108-sae-2013-simplified-ekf-battery-model.pdf
SAE 2013: Battery Model Parameter Estimation Using a Layered Technique
http://www.mathworks.com/company/newsletters/articles/battery-model-parameter-estimation-using-a-layered-technique-an-example-using-a-lithium-iron-phosphate-cell.html?s_tid=srchtitle
SAE 2014: Battery Pack Modeling, Simulation, and Deployment on a Multicore Real Time Target
http://www.mathworks.com/company/newsletters/articles/battery-pack-modeling-simulation-and-deployment-on-a-multicore-real-time-target.html?s_tid=srchtitle
Webinar: Optimizing Vehicle Electrical Design through System-Level Simulation
http://www.mathworks.com/videos/optimizing-vehicle-electrical-design-through-system-level-simulation-81919.html
Video: Real-Time Simulation of Battery Packs Using Multicore Computers
http://www.mathworks.com/videos/real-time-simulation-of-battery-packs-using-multicore-computers-92061.html
Video: MATLAB & Simulink Racing Lounge: Battery Modeling with Simulink
http://www.mathworks.com/videos/matlab-simulink-racing-lounge-battery-modeling-with-simulink-96690.html
Using Model-Based Design to Build the Tesla Roadster
http://www.mathworks.com/company/newsletters/articles/using-model-based-design-to-build-the-tesla-roadster.html
----------------------------------------------------------------------------
MathWorks(R) Consulting offers services on this topic. For assistance, please contact me or your MathWorks(R) representative.
http://www.mathworks.com/services/consulting/proven-solutions/battery-simulation-and-controls.html

Cite As

Javier Gazzarri (2021). Battery Modeling (https://www.mathworks.com/matlabcentral/fileexchange/36019-battery-modeling), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with R2019a and later releases
Platform Compatibility
Windows macOS Linux
Communities

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

passiveBalancing

socEstimation

sohEstimation

syntheticData

sohEstimation

syntheticData