Design and Test Lithium Ion Battery Management Algorithms

Version 2.0.3 (35.1 MB) by Chirag
This example project can be used as a reference design to get started with designing Battery Management System with MATLAB and Simulink.
22.1K Downloads
Updated 12 Dec 2023

View License

This example project can be used as a reference design to get started with designing Lithium Ion Battery Management System (BMS) with MATLAB and Simulink.
Project includes Simulink models for BMS Algorithms such as:
1. State of Charge estimation using Extended Kalman Filter, Unscented Kalman Filter
2. Passive Battery Cell Balancing
3. State Machine for Pre-charging and Contactor Management
4. Fault Management - Over/Under Voltage, Over Current, Over Temperature etc.
5. Charge and Discharge Current Limit Calculations
To design and test these algorithms, project also includes files for
1. Li-ion Battery Cell Parameter Estimation
2. Battery Pack with 6 cells in series and 96 cells in series
3. Simulink Test files with test cases to test State Machine Logic
4. Linking requirements to Models

Cite As

Chirag (2024). Design and Test Lithium Ion Battery Management Algorithms (https://www.mathworks.com/matlabcentral/fileexchange/72865-design-and-test-lithium-ion-battery-management-algorithms), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
2.0.3

Added Simscape Battery as Required MathWorks Products

2.0.2

Updated Project files with fixes to BatteryPackDesignScript.mlx
Updated documentation files (.mlx and .html)

2.0.1

Fixed Bug in the BatteryPackDesignScript.mlx
Updated Documentation (live scripts and html files)

2.0.0

Update to R2022b
Added Fault Management
Added SOC Estimation using Deep Neural Network
Simplified State Machine
Removed additional data files

1.0.6

Added R2020a Version

1.0.5

Default Configuration for Battery Pack Changed to 6 - Cells.
Updated Test Harness for State Machine Software Component

1.0.4

Updated Required MathWorks Products

1.0.3

Removed Extra Files

1.0.2

Download file is now .zip folder instead of MATLAB project package.

1.0.1

Changed Description

1.0.0