How to model a switch to charge/discharge a battery and/or supercapacitor equivalent circuit.

20 views (last 30 days)
So I am very new to simscape and I was wondering if anyone could help me model a switch for charging and discharging an equivalent circuit. Basically, I just need to figure out how to get the switch to open and close using either a voltage or time threshold.
Any help would be VERY appreciated as ive been stuck at this for some time now.
Thanks!

Accepted Answer

Maadhav Akula
Maadhav Akula on 26 Jul 2019
I understand from your question that you want to implement a switch that can be controlled using voltage/time threshold and in that context the Simscape library has a switch block in it, and you can access it by going to Simulink Library Browser>Simscape>Foundation Library>Electrical>Electrical Elements>Switch.
You can also check the documentation page for Switch block below:
  4 Comments
Yashendra Mohan
Yashendra Mohan on 9 Jun 2022
I also wanted to show charge/discharge in a battery. But I'm not able to. I've used the same switch. Can you please share how you got it to work? Or even if you share your file, that might help!
Thank you in advanced!

Sign in to comment.

More Answers (0)

Categories

Find more on Electrical Systems in Help Center and File Exchange

Tags

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!