Solar panels are made up of photovoltaic cells, which are typically made of silicon. These cells absorb sunlight and convert it into electrical energy through the photovoltaic effect.
Electrons become excited by the sunlight and move from one layer of the cell to another, creating an electrical current.
The solar panels generate direct current (DC) electricity, which is then converted into alternating current (AC) electricity through an inverter so that it can be used to power appliances and homes. Solar panels can be installed on rooftops, in fields, or on small portable devices.