Professional Documents
Culture Documents
Lithium Ion Battery: Simplified Simulink Model Using MATLAB
Lithium Ion Battery: Simplified Simulink Model Using MATLAB
Bee Technologies
All Rights Reserved Copyright (C) Siam Bee Technologies 2015 1
Contents
• This Li-Ion Battery Simplified Simulink Model is for users who require the
model of a Li-Ion Battery as a part of their system.
• Battery Voltage(Vbat) vs. Battery Capacity Level (SOC) Characteristic, that can
perform battery charge and discharge time at various current rate conditions,
are accounted by the model.
• As a simplified model, the effects of cycle number and temperature are
neglected.
PLUS
1
2
MINUS
Li-Ion battery
+
Simplified Simulink Model Output
[Spec: C, NS] Characteristics
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 6
5. Pin Configurations
Model Parameters:
C is the amp-hour battery capacity [Ah]
– e.g. C = 0.2, 1.4, or 2.0 [Ah]
Probe
“SOC”
NS is the number of cells in series
– e.g. NS=1 for 1 cell battery, NS=2 for 2 cells
battery (battery voltage is double from 1 cell)
• From the Li-Ion Battery specification, the model is characterized by setting parameters
C, NS, SOC and TSCALE.
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 7
6. Li-Ion Battery Specification (Example)
Nominal
Typical 1400mAh (0.2C discharge)
Capacity
Charge 1400mA
Max Current
Discharge 2800mA
• The battery information refer to a battery part number LIR18500 of EEMB BATTERY.
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 8
6.1 Charge Time Characteristic
Datasheet Simulation
%SOC
Voltage=4.20V
Current=700mA
(Second)
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 9
6.1.1 Charge Time Characteristic
Simulation Circuit
Input Voltage
Over-Voltage Protector:
(Charging Voltage*1) - VF of Diode
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 10
6.1.2 Charge Time Characteristic
Simulation Settings
StartTime 0
StopTime 12000
AbsTol auto
InitialStep auto
ZcThreshold auto
MaxConsecutiveZCs 1000
NumberNewtonIterations 1
MaxStep 1
MinStep auto
MaxConsecutiveMinStep 1
RelTol 1e-3
SolverMode Auto
Solver ode23t
SolverName ode23t
SolverType Variable-step
SolverJacobianMethodControl auto
ShapePreserveControl DisableAll
ZeroCrossControl UseLocalSettings
ZeroCrossAlgorithm Adaptive
SolverResetMethod Fast
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 11
6.2 Discharge Time Characteristic
Simulation Circuit
• Battery voltage vs. time are simulated at 0.2C, 0.5C, and 1C discharge rates.
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 12
6.2.1 Discharge Time Waveform
1400mAh (0.2C discharge)
(Second)
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 13
6.2.2 Discharge Time Waveform
1400mAh (0.5C discharge)
(Second)
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 14
6.2.3 Discharge Time Waveform
1400mAh (1.0C discharge)
(Second)
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 15
6.2.4 Discharge Time Characteristic
Simulation Settings
StartTime 0
StopTime 24000, 9600, 4800
AbsTol auto
InitialStep auto
ZcThreshold auto
MaxConsecutiveZCs 1000
NumberNewtonIterations 1
MaxStep 10
MinStep auto
MaxConsecutiveMinStep 1
RelTol 1e-3
SolverMode Auto
Solver ode23t
SolverName ode23t
SolverType Variable-step
SolverJacobianMethodControl auto
ShapePreserveControl DisableAll
ZeroCrossControl UseLocalSettings
ZeroCrossAlgorithm Adaptive
SolverResetMethod Fast
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 16
6.3 Vbat vs. SOC Characteristic
Datasheet Simulation
4.40
4.20
4.00 0.2C
3.80
Voltage (V)
0.5C
3.60
1C
3.40
3.20
3.00
2.80
2.60
1 0.8 0.6 0.4 0.2 0 -0.2
Capacity (%)
Simulation
1.2
Discharge Capacity
1.0
(%vs. 0.2C)
0.8
0.6
0.4
Mesurement
0.2
Simulation
0.0
0 0.2 0.4 0.6 0.8 1
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 18
6.3.2 Vbat vs. SOC Characteristic
Simulation Settings
StartTime 0
StopTime 19200
AbsTol auto
InitialStep auto
ZcThreshold auto
MaxConsecutiveZCs 1000
NumberNewtonIterations 1
MaxStep 10
MinStep auto
MaxConsecutiveMinStep 1
RelTol 1e-3
SolverMode Auto
Solver ode23t
SolverName ode23t
SolverType Variable-step
SolverJacobianMethodControl auto
ShapePreserveControl DisableAll
ZeroCrossControl UseLocalSettings
ZeroCrossAlgorithm Adaptive
SolverResetMethod Fast
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 19
7. Extend the number of Cell (Example)
NS=4, TSCALE=3600
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 20
7.1.1 Charge Time Circuit
NS=4, TSCALE=3600
Number of Cells
Input Voltage
Over-Voltage Protector:
(Charging Voltage 4) - VF of Diode
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 21
7.1.2 Charge Time Waveform
NS=4, TSCALE=3600
The battery needs 5 hours to be fully charged
Capacity=100%
Voltage=16.8V
Current=880mA
(hour)
Number of Cells
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 23
7.2.2 Discharge Time Waveform
NS=4, TSCALE=3600
16.4V
2200mA (0.5C)
Output
voltage
range
12.8V
(hour)
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 24
7.3 Charge & Discharge Time
Simulation Settings
StartTime 0
StopTime 8, 3
AbsTol auto
InitialStep auto
ZcThreshold auto
MaxConsecutiveZCs 1000
NumberNewtonIterations 1
MaxStep 0.01
MinStep auto
MaxConsecutiveMinStep 1
RelTol 1e-3
SolverMode Auto
Solver ode23t
SolverName ode23t
SolverType Variable-step
SolverJacobianMethodControl auto
ShapePreserveControl DisableAll
ZeroCrossControl UseLocalSettings
ZeroCrossAlgorithm Adaptive
SolverResetMethod Fast
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 25
8. Port Specifications
Table 6
NS O
C O
TSCALE O
%SOC O
VSOC O
PLUS O
MINUS O
Battery Model
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 26
Simulation Index
All Rights
All Rights Reserved
Reserved Copyright
Copyright (C) (C)
BeeSiam Bee Technologies
Technologies 2015
Corporation 2015 27
Appendix
If Diode is error, Please choice Diode of SPICE-Compatiable
Semiconductors/Diode