Photons carry a bit of energy. The solar panels are semiconductors made in such a way, that if an electron gets a bit of a kick from a photon, it will then escape and travel through a wire as electricity in the desired direction.
The specifics of how exactly that operates is more difficult, because it requires a lengthy explanation of how conductivity works in the first place.
Latest Answers