How do I switch on and off my voltage source to charge batteryes based off of my current state of charge?
1 view (last 30 days)
Show older comments
I'm trying to implement a closed-loop system that uses a state of charge percentage which turns on/off a DC voltage source for charging batteries as seen in my attached simulink project.
What blocks or set ups would I use that would disconnect the batteries in series when the SOC is <20% and then connect a DC voltage source to charge the batteries until they reach 80%, where then the system would switch back from the voltage source and the batteries would resume powering the DC system.
Basically the blocks would be set up such that:
if state of charge from batteries in series is less than 20%, then disconnect the batteries from what they're powering and connect them to a DC voltage source to charge them until they reach 80% where then the switch would go back to before and the batteries would return to powering a system until they reach 20% again.
0 Comments
Accepted Answer
madhan ravi
on 26 Nov 2023
I don"T have Simscape License. But the logic can be implemented.
Feed the SOC signal to the switch Switch provide the threshold, by using this switch you need to use it for load and the voltage source. But using PS Switch you can close and open load and voltage source by giving the appropriate threshold.
Note make sure to convert the SOC Simulink Signal to Physical Signal using Simulink - PS Converter block.
11 Comments
More Answers (0)
See Also
Categories
Find more on Energy Storage in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!