Battery switch to grid

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%.

 采纳的回答

Yeow Yu Leong
Yeow Yu Leong 2024-7-8
编辑:Yeow Yu Leong 2024-7-8

1 个投票

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.

1 个评论

Ah yes, you are right! I made it work without mosfet. Thank you for your help!

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by