Skip to main content

Subsection 14.1.1 What a Photocell Is

A photocell is a resistor whose resistance depends on how much light falls on its face (Figure 14.1.1). It is also called a CdS cell, after the cadmium sulfide it is made of, a light-dependent resistor (LDR), or a photoresistor. Cadmium sulfide’s resistivity decreases with increasing light exposure. A photocell is made of semiconductor material with a high resistance, because very few of its electrons are free to move: the vast majority are locked into the crystal lattice and cannot move. As light falls on the semiconductor, photons are absorbed by the lattice and some of their energy is transferred to the electrons. The amount of energy transferred gives some of the electrons sufficient energy to break free from the crystal lattice, so that they can then conduct electricity, and the resistance of the photocell falls. The process is progressive: as more light shines on the photocell, more electrons are released, and the resistance falls further.
Figure 14.1.1. A CdS photocell. The face is the cadmium sulfide: the dark meander is the sensing material, and the two posts are where the leads attach. The two leads are the resistor’s two terminals, and there is no polarity. Image from Adafruit.
Photocells are small, inexpensive, low-power and easy to use, and for that reason they often appear in toys, gadgets and appliances. They do age, and a cell’s resistance drifts over time. They are also very inaccurate. Each photocell will act a little differently from the next, even if the two are from the same batch, and the variation can be really large, 50% or higher, so a photocell should not be used to determine a precise light level in lux (lumens per square meter, the unit of illuminance). Instead, you can expect to be able to determine basic light changes, and we will not use a photocell to measure how bright the light is. The Adafruit guide to photocells covers the same ground and is worth reading. Its wiring examples use a different board; our circuit is in Subsection 14.1.3.