A photovoltaic cell is a device that generates an electric current when exposed to light. The basic principle behind its working is the photovoltaic effect.

The photoelectric cell is formed of a p-type and an n-type semiconductor. The p region contains more number of holes and the n region consist of more electrons. They are joined together to create a p-n junction. The photons striking in the cell pass through the positively charged holes and are absorbed by negatively charged electrons and cause a potential difference.
Advantages
- Fast response.
- High efficiency.
- Generate voltage without any bias.
Disadvantages
- Powe generation depends on weather conditions.
- Easily damaged.