Battery switch to grid

3 views (last 30 days)
Reinier
Reinier on 8 Jul 2024
Commented: Reinier on 9 Jul 2024
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%.

Accepted Answer

Yeow Yu Leong
Yeow Yu Leong on 8 Jul 2024
Edited: Yeow Yu Leong on 8 Jul 2024
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 Comment
Reinier
Reinier on 9 Jul 2024
Ah yes, you are right! I made it work without mosfet. Thank you for your help!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!