Inverter and Battery Connection: The wiring diagram will also illustrate how the solar panels are connected to the inverter and batteries. The inverter is responsible for converting the direct current (DC) generated by the panels to alternating current (AC) that can be used to power appliances and equipment.