Silicon based PV cells work by converting light energy into electrical energy through a doping process that creates a p-n junction in silicon. The doping process involves adding atoms with different numbers of electrons to create an imbalance and charge on the silicon material. This can be done through ion implantation or diffusion of boron to create a positive charge or arsenic/phosphorus to create a negative charge. When light hits the p-n junction, electrons flow from the n-junction to the p-junction, creating an electric current.