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)
Figure 1: Complete Block Architecture showing Simscape Plant Layer and Control Subsystem Integration.
Figure 2: Over-Temperature Isolation Logic Waveforms (Fault Code 32) |
Figure 3: Passive Shunt Equalization and Voltage Trajectory Convergence |
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.
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)
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.
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 broadcastsFault Code = 32.
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 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.
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.

