How do I switch on and off my voltage source to charge batteryes based off of my current state of charge?

1 次查看(过去 30 天)
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.

采纳的回答

madhan ravi
madhan ravi 2023-11-26
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 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Energy Storage 的更多信息

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by