Battery switch to grid
3 views (last 30 days)
Show older comments
Hi, I have a rather simple model with a battery, an dynamical load and a source representing the grid. Now I want the battery to shut off at 20%. I am using two ideal switches for it but I just cannot seem to get it to work. The battery is discharging but it does not stop at 20%. 

0 Comments
Accepted Answer
Yeow Yu Leong
on 8 Jul 2024
Edited: Yeow Yu Leong
on 8 Jul 2024
Hi @Reinier
I think your connection of the gate is wrong. You are providing additional path between the battery and voltage controller ( i guess). You suppose to connect the gate within the positive line of battery and voltage controller. Besides, I would prefer mosfet to as the switch for the battery (suggestion). Hope you can try it, thanks and good luck.
More Answers (0)
See Also
Categories
Find more on Sources 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!