I'm trying to make an inverter (DC to AC), for a university class project.
The DC source is powered from two DC batteries 12V each, then this provides energy to a SPWM generator which then goes to an H-bridge, then a transformer, and finally to a lowpass filter.
My problem begins with Proteus. When I try to make a battery level indicator, it has to be one for each battery. Besides that, ground must be connected between the (-) terminal of the first battery and the (+) terminal of the second one.
In picture 1 and 2 are the circuits working for each battery, but when I try to connect both with the two batteries connected and the ground, it goes all to 0V as seen in picture 3.
What do I need to do to solve this, but meeting the requirements -ground between the two batteries and a battery level indicator system for each battery. The LEDs are supposed to turn on when the battery level is less than 11V.