How to wire up a circuit for the inverter