Session 36: Resistive sensors and the LDR
Learning outcomes
- Wire an LDR divider in the course order
- Calculate sensor resistance from an ADC count and check it with a multimeter
- Choose a fixed resistor for sensitivity at a chosen light level
- Switch an output with hysteresis
Kit and components
- Uno, LDR, 1 kΩ, 10 kΩ and 100 kΩ resistors, LED and 330 Ω resistor, breadboard
- Multimeter and oscilloscope
Pre-reading about 25 min
Students read these on their phones before class. They are listed on the student Before class page.
Session plan
- 0:0010 minRecap
Quiz: formatting
- 0:1020 minDemo
Resistance to voltage to count
Cover and uncover the LDR while Serial shows counts and resistance; swap the fixed resistor and show how sensitivity changes.
- 0:3030 minMeasure
Calibration logger
Students run the calibration logger, record counts and resistance covered, in room light and under a lamp, and check one resistance with the meter (power off).
- 1:0035 minBuild
Night light with hysteresis
Students choose darkOn and brightOff from their own table and show no flicker at the boundary.
- 1:3525 minCode Along
Hysteresis and divider maths
Checkpoint: ready to move on?
Students' night light switches cleanly using thresholds chosen from their own measurements, recorded in the logbook.
Extension for fast finishers
Start-up threshold calibration (lesson challenge).
Catch-up path
Use the lesson's thresholds unchanged, then adjust them once.
Homework and practice
Draft Task B success criteria and a calibration plan.
Facilitator notes
- Under mains lighting the scope may show 100 Hz ripple on the divider - a good discussion of why readings wobble.