The principle of power generation by solar panels is the "photovoltaic effect". The crystalline silicon/amorphous silicon wafers (commonly known as solar cells) in the solar panels have a pn junction.