Photovoltaics are solid-state semiconductor devices that convert light directly into electricity. They are usually made of silicon with traces of other elements and are first cousins to transistors, LEDs and other electronic devices. In a typical Solarex polycrystalline cell, the bulk of the material is silicon, doped with a small quantity of boron to give it a positive or p-type character. A thin layer on the front of the cell is doped with phosphorous to give it a negative or n-type character. The interface between these two layers contains an electric field and is called a junction.
Light consists of particles called photons.
When light hits the solar cell, some of the photons are absorbed in the region of the junction, freeing electrons in the silicon crystal. If the photons have enough energy, the electrons will be able to overcome the electric field at the junction and are free to move through the silicon and into an external circuit. There are no moving parts and no materials are consumed or emitted. Solar power is a viable energy source. By using the modern inverter, often called power inverter, you can convert your solar power to normal AC current when used with a battery.