A solar cell , or #photovoltaic cell, is an electrical device that converts the energy of light directly into electricity by the photovoltaic effect, which is a physical and chemical
phenomenon
The #solar cell consists of two layers of semiconductors , first one is n-type in the top , second one is p-type and a p-n junction between them , also there is a metal
conductor mesh up and down these layers to transfer electric current .
When sun light falls on a cell a photon hits electron in the n-type layer giving it a high power to let its atom and cross the junction p-n . Junction p-n works as #diode so the electron can’t get back to his atom so the metal mesh collects electrons to make an electric current that crosses the circuit to reach n layer and refill the leakage .
Solar cells are covered with a transparent cover and packed in panels and connected in serial and parallel to make the requested voltage , amperage and #power .