Sensor dividers: the light sensor
So far a divider's two resistors have stayed put. Make one of them a part whose resistance changes with the world around it, and the divider's output becomes a voltage that follows the world: a sensor.
This part is a light-dependent resistor, or LDR. It's a resistor made of a material that conducts better the more light falls on it.
On the board, a multimeter set to ohms is across it. There's no battery: an ohmmeter supplies its own tiny current to measure with. Press Run and open the multimeter (the button at the bottom left of the board) to see its reading. Then click the sensor and drag its light slider slowly from Dark to Sunlight, watching the meter.
As the light gets brighter, the LDR's resistance:
- Falls
- Rises
- Stays the same
That way is a voltage divider. Put the LDR in as one of the two resistors, and the output moves as the LDR's resistance does.
Build it with the LDR at the bottom: a 10 kΩ resistor from the + rail to the output column, then the light sensor from the output column to the − rail.
Measure the output: the multimeter's red probe in the column where the resistor and the sensor meet, black on the − rail.
Now turn the lights down. Slide the sensor's light towards Dark until the output is above 6 V.
Somewhere between light and dark the output passes through 4.5 V, half the supply. A circuit watching the output can use that as its dividing line, its threshold: above it means dark, below it means light.
How big is the LDR's resistance at the moment the output is exactly 4.5 V?
Answer in Ω.
A dark detector's output rises as the light falls. For an output that rises as the light rises, swap the two halves.
On this fresh board, build the divider the other way up: the light sensor from the + rail to the output, and a 10 kΩ resistor from the output to the − rail.
A porch light should come on at dusk. At the light level where it should switch, the LDR measures about 47 kΩ.
The circuit switches when the divider's output passes half the supply. Which fixed resistor should the divider use?
- 1 kΩ
- 47 kΩ
- 1 MΩ
A sensor divider:
- one fixed resistor and one resistor that changes with the world, here an LDR, whose resistance falls as the light grows;
- sensor at the bottom: the output rises in the dark. Sensor at the top: the output rises in the light;
- the output is half the supply when the sensor's resistance equals the fixed resistor, so the fixed resistor picks the light level the circuit reacts at.
On a real bench an LDR is slow, taking a good fraction of a second to respond, and no two are quite alike. They are fine for telling day from night and poor for measuring light accurately.