A solar cell’s core is a p-n junction, an interface between p-type and n-type semiconductor materials. This junction creates a built-in electric field in a depletion region. When photons with sufficient energy strike the semiconductor, they create electron-hole pairs. The electric field separates these charge carriers, driving electrons to the n-side and holes to the p-side, generating a voltage.
