As you would know, solar panels harness the Sun’s energy to produce electricity. They are made of photovoltaic (PV) cells sandwiched between layers of semi-conducting materials such as silicon. When the sunlight falls on the panels the PV cells get charged and an electric field is created. And the electrons that get knocked off the atom start to move in a particular direction thereby generating direct current (DC). The direct current is then passed to the solar inverter that converts it into AC before supplying it to the home electrical appliances.