State Of Charge control of Lithium-ion battery in MATLAB/Simulink!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
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]
Info
Channel: The Urban Scholar
Views: 17,449
Rating: 4.9752321 out of 5
Keywords: state of charge of lithium ion battery, state of charge of battery, state of charge battery simulink, state of charge estimation, state of charge battery calculation, state of charge lithium ion, state of charge, li-ion battery in simulink, li-ion battery in matlab, state of charge control in simulink, state of charge of battery in simulink, state of charge of battery in matlab, matlab simulink tutorials, how to control state of charge of battery
Id: Xnpxyj8OsXM
Channel Id: undefined
Length: 10min 29sec (629 seconds)
Published: Wed Jul 15 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.