How to connect the inverter capacitor and battery