Dear Student,
For the conversion of solar energy into electrical energy, solar panels are used.The solar panel are made up of solar cells. A cell is a small disk of semiconductor like silicon. They are attached by wire to a circuit.As light strikes the semiconductor, the photons within the sunlight knocks electrons free from the semiconductor. The electrons starts to flow thereby producing electricity. It can also be stored in a battery.
Regards..........