GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SOUMYASHUKL/EV-BMS-Dashboard-Simulation: Battery Management System (BMS) for Electric Vehicles using MATLAB & Simulink

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
Matlab_code
Matlab_code
 
 
Matlab_json
Matlab_json
 
 
Matlab_mat
Matlab_mat
 
 
Report
Report
 
 
Screenshots
Screenshots
 
 
Simulink_Model
Simulink_Model
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

EV Battery Management System (BMS) Dashboard & Cell Balancing Simulation

šŸ“„ Project Documentation & Report

Aap is project ki complete technical documentation, formulas aur simulation graphs ki detailed PDF report yahan se direct view aur download kar sakte hain:

šŸ‘‰ Download Full Technical Industry Report (PDF)


šŸ“ø Project Architecture & Simulation Results

Full Simulink Model Figure 1: Complete Block Architecture showing Simscape Plant Layer and Control Subsystem Integration.

Fault Detection Transient Waves
Figure 2: Over-Temperature Isolation Logic Waveforms (Fault Code 32)
Passive Cell Balancing Convergence
Figure 3: Passive Shunt Equalization and Voltage Trajectory Convergence

šŸ› ļø Project Overview

This repository contains an automotive-grade Battery Management System (BMS) developed using MATLAB and Simulink for Electric Vehicle (EV) applications. The project focuses on real-time battery parameter monitoring, ISO 26262 functional safety protection alignment, deterministic fault mapping, passive cell balancing loops, and continuous state estimation. The simulation comprehensively demonstrates how an embedded controller protects multi-cell packs and optimizes operational lifespans.


⚔ Key Features

1. Battery Safety & Protection (ASIL-D Alignment)

The BMS continuously monitors the multi-cell pack telemetry and applies strict defensive protection logic when parameters breach electrochemical safety envelopes.

  • Over Voltage (OV) | Under Voltage (UV)
  • Over Current during Charging | Over Current during Discharging
  • Short Circuit Detection (Sub-millisecond Interlock)
  • Over Temperature (OT) | Under Temperature (UT)
  • Low State of Charge (Critical Low SOC Hysteresis Loop)

2. High-Fidelity State Estimation

The simulation dynamically tracks and estimates critical internal pack parameters with mathematical precision:

  • State of Charge (SOC): Modeled via discrete Coulomb Counting (Ampere-Hour Integration) handling continuous charging and discharging load trends seamlessly.
  • State of Health (SOH): Evaluated via a Throughput Aging Estimation model that tracks degradation based on the absolute current integration loop over time, bound within a 0.70 end-of-life framework.
  • State of Voltage (SOV): Continuously logs internal cell potentials and accounts for transient diffusion dynamics.

3. Centralized 8-Bit Fault Logging Registry

To optimize bandwidth across standard automotive CAN bus frames, the controller packs multiple asynchronous protection events into a single compressed 8-bit Fault Code (double/uint8):

Monitored Fault System Bit Placement Binary Decimal Value Threshold Boundaries
Over Voltage (OV) Bit 0 1 Pack Voltage > 54.0 V
Under Voltage (UV) Bit 1 2 Pack Voltage < 42.0 V
Over Current (Charge) Bit 2 4 Input Current < -5.0 A
Over Current (Discharge) Bit 3 8 Output Current > 8.0 A
Short Circuit (SC) Bit 4 16 Shock Current ≄ 20.0 A
Over Temperature (OT) Bit 5 32 Core Temperature > 60.0 °C
Under Temperature (UT) Bit 6 64 Core Temperature < 0.0 °C
Low SOC Flag Bit 7 128 Capacity Level ≤ 20% (Recovers ≄ 25%)

šŸ“‘ Example Execution: If an Over-Temperature fault occurs: Core registers OT = 1, safety contactors trip (Charge_Enable = 0, Discharge_Enable = 0), and the CAN-ready diagnostic word broadcasts Fault Code = 32.


4. Deterministic Passive Cell Balancing

The algorithm monitors a four-cell series configuration suffering from manufacturing divergence:

  • Continuously tracks and logs the absolute dynamic minimum cell voltage ($V_{min_ref}$).
  • Evaluates cell-to-cell delta matrices: $V_{n} - V_{min_ref}$.
  • Activates individual bypass bleeding shunt switches (Bal_n = 1) for any cell exceeding the target tolerance window ($\Delta V = 30\text{ mV}$), provided cell potential is above $3.00\text{ V}$.
  • Automatically breaks the shunts once voltage equilibrium is achieved across the pack.

šŸ’» MATLAB & Simulink Framework

  • MATLAB Function Blocks: Running embedded-ready code optimization scripts with discrete state tracking.
  • Simscape Battery Components: Simulating complex non-linear cell physical chemistry and electrical load dynamics.
  • Dashboard Gauges & Lamps: Providing interactive real-time HMI controls for parameter variant testing.
  • Structured Bus Elements: Decoupling high-voltage power paths from low-voltage control logic signaling.

šŸ“‚ Folder Structure

EV-BMS-Dashboard-Simulation
ā”œā”€ā”€ Simulink_Model/
│   └── BMS_Controller.slx
ā”œā”€ā”€ MATLAB_Code/
│   ā”œā”€ā”€ BMS_Controller_Day10_Final.m
│   └── Cell_Balancing.m
ā”œā”€ā”€ Screenshots/
│   ā”œā”€ā”€ model.png          # Main Model Image
│   ā”œā”€ā”€ fault.png          # Fault Waveforms Graph
│   └── cellbalancing.png  # Balancing Waveforms Graph
ā”œā”€ā”€ Report/
│   └── BMS_Project_Report.pdf
└── README.md


šŸ› ļø Technologies Used
* MATLAB & Simulink (R2024b or newer recommended)
* Simscape Electrical (Physical Systems Modeling)
* Embedded MATLAB Coder Control Logic Blocks

šŸš€ Future Horizons
* Physical CAN Bus Network Protocols Streaming Integration.
* Extended Kalman Filtering (EKF) configurations for adaptive SOC tracking under dynamic stress cycles.
* Microcontroller target production code compilation for ARM Cortex-M (STM32) hardware-in-the-loop (HIL) platforms.

šŸ‘¤ Author
Soumya Shukla
B.Tech in Electrical & Electronics Engineering (3rd Year)
Core Interests: Electric Vehicles (EVs), Battery Management Systems (BMS), Embedded Control Firmware, Power Electronics.

About

Battery Management System (BMS) for Electric Vehicles using MATLAB & Simulink

Topics

batterybattery-management-systemcell-balancingelectric-vehicleembedded-systemsfault-detectionmatlabpower-electronicssimulinksocsoh

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.