State Of Charge control of Lithium-ion battery in MATLAB/Simulink!
Summary
TLDRThis video demonstrates how to control the charging and discharging of a lithium-ion battery based on its state of charge (SOC). The simulation uses a 7.2V, 5.4Ah battery and a 1000W purely resistive load. The video explains how to set up a simulation in a power GUI block, connect a DC voltage source, and implement an SOC-based control system with an ideal switch and state flow chart. The battery charges and discharges between specified time intervals, and the video provides step-by-step instructions for replicating this simulation. Viewers are encouraged to engage and explore more content.
Takeaways
- 🔋 The video explains how the state of charge (SOC) of a lithium-ion battery can be used to control charging and discharging.
- ⚡ The battery has a nominal voltage of 7.2 volts and a nominal capacity of 5.4 ampere hours.
- 📉 It's advised not to fully charge or discharge the lithium-ion battery to extend its lifespan.
- 🔌 The battery is connected to a resistive load with a power of 1000 watts.
- ⏳ The discharge time is set between 50 seconds to 150 seconds of the simulation.
- 🖥️ A power GUI block is required for the simulation, and the battery must be connected to a DC voltage source with a higher voltage than the battery’s rated 7.2 volts.
- 📊 A state flow chart is used to manage the battery's charging and discharging states based on the SOC parameter.
- 🔄 When the SOC exceeds 80%, the battery stops charging, and if it falls below 40%, it stops discharging and begins charging.
- 🔌 The load is purely resistive with 1000 watts of power, and ideal switches are used to control the charge and discharge timing.
- ⏲️ A clock, compare block, and logic components are used to ensure that the discharge happens only between 50 and 150 seconds of simulation.
Q & A
What is the nominal voltage and capacity of the lithium-ion battery mentioned in the video?
-The nominal voltage of the battery is 7.2 volts, and its nominal capacity is 5.4 ampere-hours.
Why is it advised not to fully charge or discharge a lithium-ion battery?
-It is recommended not to fully charge or discharge a lithium-ion battery to prevent degradation of the battery's lifespan and to maintain its efficiency.
What is the load on the battery, and what type of load is it?
-The load on the battery is 1000 watts, and it is a purely resistive load.
During which time interval does the battery discharge in the simulation?
-The battery discharges between 50 seconds and 150 seconds of the simulation.
What is the purpose of the 'power GUI block' in the simulation?
-The 'power GUI block' is used to set up the simulation environment for simulating power systems, such as the charging and discharging of the battery.
How is the state of charge (SOC) monitored in the simulation?
-The SOC is monitored by using a bus that selects only the SOC parameter from the lithium-ion battery and displays it using a scope.
What does the state flow chart represent in this simulation?
-The state flow chart represents the different charging states of the battery, allowing transitions between charging and discharging based on the SOC level.
What conditions trigger the battery to switch between charging and discharging?
-The battery switches to charging if the SOC is less than 40% and switches to discharging if the SOC is greater than 80%.
How is the load represented in the simulation, and what are its characteristics?
-The load is represented by an RLC load block, and in this case, it is modeled as a purely resistive load with 1000 watts of active power, zero inductance, and zero capacitance.
How does the simulation ensure that the discharge occurs only between 50 and 150 seconds?
-The simulation uses a clock block and compare blocks to define the time interval, ensuring the discharge happens between 50 and 150 seconds, controlled by logic gates and switches.
Outlines
🔋 Overview of Battery Charge and Discharge Control
In this introduction, the video outlines how to use the state of charge (SOC) to control the charging and discharging of a lithium-ion battery. The battery has a nominal voltage of 7.2V and a capacity of 5.4 Ah. The load is 1000W, purely resistive, and the discharge occurs between 50-150 seconds during the simulation. The video starts by explaining the necessary components, such as a power GUI block, a battery, and a DC voltage source, highlighting that the voltage source should exceed the battery voltage for proper charging.
⚙️ Selecting SOC Parameters and Implementing Circuit Components
This section focuses on the SOC (state of charge) and how to select it as a parameter to monitor in the simulation. It covers the use of a bus to select only the SOC parameter of the battery and provides a step-by-step guide to connect the components. The video demonstrates how to add a scope and switching components for monitoring the battery's charge and discharge behavior. An ideal switch is introduced to control the battery states based on SOC values, connecting these states to a state flow chart and defining parameters such as 'pulse' for charging and discharging.
🔄 Logic Design for Battery Discharge Timing
Here, the video details the logic for discharging the battery between 50 and 150 seconds. It explains how to set up a clock, compare blocks, and product blocks to control the timing. The design ensures the battery discharges only within the specified time frame. Additionally, a NOT gate is used for logic inversion. This part also addresses some troubleshooting aspects, such as correcting case-sensitive naming errors for parameters and ensuring proper pulse assignment for switching between charging and discharging states.
🔍 Final Simulation and Conclusion
The video concludes by running the simulation and showing that the battery charges and discharges as expected between 50-150 seconds. The presenter also corrects some minor mistakes in the model and parameter names, ensuring the simulation runs smoothly. The video closes by encouraging viewers to watch more simulation-related content, inviting them to like, subscribe, and engage with the channel.
Mindmap
Keywords
💡State of Charge (SOC)
💡Lithium-Ion Battery
💡Nominal Voltage
💡Purely Resistive Load
💡Power GUI Block
💡DC Voltage Source
💡SOC Parameter
💡Switching Component
💡Stateflow Chart
💡RLC Load
Highlights
Introduction to controlling the charge and discharge of a lithium-ion battery using the state of charge (SOC) parameter.
The battery used in the simulation has a nominal voltage of 7.2 volts and a capacity of 5.4 ampere hours.
Warning about not fully charging or discharging lithium-ion batteries to preserve battery life.
The load for the battery is set at 1000 watts, and it is purely resistive.
The discharge operation region for the battery is set between 50 and 150 seconds in the simulation.
The setup of the simulation requires a power GUI block, a battery block, and a DC voltage source.
The DC voltage source must have a voltage higher than the battery's 7.2V to charge it effectively.
A bus is connected to select only the SOC parameter, which will control the charge and discharge states.
An ideal switch is added to the circuit to manage charging and discharging based on SOC.
A state flow chart is used to create two states for the battery: charging and discharging, based on SOC levels.
If the SOC is greater than 80%, the battery stops charging and can discharge if needed.
If the SOC falls below 40%, the battery stops discharging and begins charging.
A purely resistive RLC load is configured with 1000 watts of active power, zero inductance, and zero capacitance.
Simulation logic is created to manage discharge between 50 and 150 seconds using a clock, comparison block, and logic gates.
After corrections and proper configuration, the simulation successfully demonstrates battery charging and discharging.
Transcripts
welcome to this video in this video we
shall see how the state of charge of a
battery
can be used to control the charge and
discharging
of a lithium ion battery
nominal voltage of the battery provided
is 7.2 volts the nominal
capacity is 5.4 ampere hours
since it's lithium-ion battery it's
advised not to completely charge your
battery
at the same time not to discharge it
fully now
the load of the battery is 1000 watts
and it's purely resistive and the
operation region that is that the
discharge
time is between 50 seconds to 150
seconds of the simulation
so to begin assimilation we need a power
gui block
and after gui block we'll be taking a
battery
now we need a dc voltage source
so this volt dc voltage source the
positive terminal of the battery should
be connected to the positive terminal of
the dc voltage source
and since the rated voltage the battery
is going to be 7.2 volts
the bat the dc voltage sources by
voltage should be greater than the
voltage of the battery
[Music]
and now we need a bus
which can select only the soc
parameter of the lithium ion battery
so let's connect the bus and select
only the soc parameter so soc as you
know stands for state of charge
now we need to go to tag
[Music]
so let's name this as sock
and let's get a scope to see if this
much works
[Music]
[Music]
yes so as you can see that the battery
charges
[Music]
let's add a switching
component to the circuit such that
it discharges and charges
or stops charging after a certain point
so we'll consider an ideal switch
for this purpose
and we need a state of a state flow
chart
to indicate when what state the battery
is in
based on the soc so we'll connect the
soc as the input parameter to the
state flow chart
and the output parameter let's be let us
call it a pulse
[Music]
now we'll have to go to the model
explorer
and in the model explorer we'll have to
rename these
parameters data is known as the input
so as you can see it's input so we'll
have to name
it rename it as soc yeah apply
and the output we'll have to name it as
pulse
because that's what we'll be using
now let's call the first state to be
charged
and the second state to be discharged
[Music]
and this provided condition saying that
if the soc is greater than
80 then the battery need not
charge anymore and it can go to the
discharge state if required
and if the soc is greater than 40 less
than 40
the battery must stop discharging and it
must charge
and upon entry of this state the pulse
should be high so we'll call it we'll
assign the value one let me just copy
paste this
yeah on discharge we call it
to be zero the value of pulse should be
low so we
assign the value zero
[Music]
so we'll get an rlc load
so load can be represented in two ways
in terms of
the impedance or in terms of watts
so in this case we'll take the load and
we'll give the active power to be
1000 watts and inductance to be zero
capacitance to be zero so we'll make it
a purely resistive load
let's just move it there for a
convenience
and let's give two more ideal switches
so we needed the discharge to happen
between
50 seconds to 150 seconds of simulation
right so
we will design a logic for the same
so we need a clock
we need a compare block we need a
product plot
and we'll need a constant block as well
[Music]
and we'll need a not gate
[Music]
so the clock block basically
stores the value of time
so the constant 15
so the if the value of time is greater
than 15 that
output of the compare block will be high
and let's do the same
for lesser than 150
just move the other side to make it look
[Music]
neater
[Music]
okay so we'll connect it to another
product block so this
output of this block is basically an
indication
of the region between 50 seconds to 150
seconds it'll be high during this time
and it will be low
otherwise so
you know let's not do this let's give it
the go-to tag
[Music]
let's call this discharge so this charge
is high
only during these periods of time
and obviously the pulse has to be zero
for it to be high
so let's run this simulation
so as you can see i've made a mistake in
naming the parameter we must make sure
it's case sensitive so it has to be
capital p let's try it again
[Music]
uh there's another mistake i forgot to
change the other one
so yeah this is case sensitive so you'll
have to make it
capital t we have to provide the pulses
to the battery
connection to the pc source
now let's run the simulation
so as you can see the battery charges
and then
between 50 and it waits till 50 seconds
for the discharge and discharges to 150
seconds and that's constant
after that hopefully this video was
informative
and provided you guidance regarding the
simulation kindly check our other videos
and do let us know if you have any
queries
and kindly like and subscribe and click
on the bell icon
near the channel's name thank you
[Music]
Посмотреть больше похожих видео
Battery driven Electric vehicle with regenerative Braking operation | Electric vehicle Simulation |
Battery Management System Development in Simulink
Calculating the State of Charge of a Lithium Ion Battery System using a Battery Management System
Time Charging via Soliscloud
MATLAB simulation on speed control of induction motor | Scalar Control of induction motor
Make your own LED Battery Level Indicator
5.0 / 5 (0 votes)