In practical work, solar cells are the basic devices that play the photovoltaic effect. When sunlight strikes the semiconductor material of the solar cell, the photons are absorbed and excited electrons in the semiconductor material. These excited electrons are subjected to an electric field, which forms an electric current.