Such a panel gathers solar radiation or the heat from the sun and converts it into electrical power
. It contains silicon cells which interact with the sunlight and capture its radiation to be converted into electricity. The cells make effective use of the p-n junction diode. When this diode is exposed to sunlight it switches the sunlight into practical electric supply. The whole conversion procedure is called the Photovoltaic Effect. As energy is generated from photons which hit the solar panel, it makes the electrons release outside their orbit later the electric fields pull these electrons in different dimensional current and thus, metal conductors are allowed to generate electricity from them. There are many tutorials which will guide you to make a solar panel kits at home all by yourself.