The fundamental building block of any solar panel circuit is the photovoltaic (PV) cell, which converts incident photons into electrical energy via the photovoltaic effect. A PV cell operates as a p-n junction semiconductor, where electron-hole pairs are generated upon photon. Photovoltaic refers to the direct conversion of sunlight into electricity using solar panels Population growth, urbanization, and industrialization have drastically increased our demands for power. To address this, various electric power generation options have been developed. When photons with energy Ephoton ≥ Eg (where Eg is the bandgap energy) strike a semiconductor, they excite electrons from the valence band to the conduction band. Because the source of light is sually the sun, they are often called solar cells.