# How do solar panels turn sunlight into electricity?

29 November 2009

## Question

How do solar panels turn sunlight into electricity?

A solar panel is a semi-conductor device which will produce an electrical voltage and current if light falls on it.

It is actually a giant diode - a one way valve for electricity, and when light falls on it this gives some electrons enough energy to jump through the valve, and the only way they can get back is to flow around the circuit doing useful work.

What is going on in more detail? Normally each atom in the semi-conductor has 4 electrons and there are none free, but if you add a few atoms with 5 electrons there are some extra electrons which can move easily and carry a current (an N-type semi-conductor).

Similarly if you add some atoms with only 3 electrons and then you get some gaps which other electrons can move into (a P-type semi-conductor). The electrons can now move a bit like the tiles in a sliding tile puzzle, but it is easier to think of a positively charged hole moving through the semiconductor.

n-type has a few extra electrons to carry current; p-type semiconductors have a few electrons missing which can be thought of as positively charged 'holes' and can carry current.

A diode is made if you join a lump of p-type semi-conductor to a lump of n-type. When you do this there are lots of extra electrons in the n-type region which will tend to diffuse into the p-type region and holes from the p-type region will diffuse into the n-type.

So you end up with the p-type region being negatively-charged and the n-type region being positively charged. Electrons and holes diffuse over the border.

This means that if you connect the diode to a circuit this charge flows around the circuit very quickly. This charge will even out the voltage on the two sides and you will be left with a region in the centre with no charge carriers.

Light can hit this non-conducting region in the middle with no free electrons , and knock an electron off an atom. This creates a free electron and a hole. These can then flow through the circuit as electricity and do useful work. The more light which hits it the more current and therefore power it will produce.