LearnTronics
Light-Controlled Transistor Switch
Recipe #16 — light-controlled switch
This circuit combines a sensor, a voltage divider, and a transistor switch.
Bright light: the LDR resistance falls, the divider voltage rises, and the transistor can be driven on strongly enough to operate the load.
Several earlier lessons are now working together
The LDR and R1 form a voltage divider. RB limits base current. The transistor acts as the electronic switch. The LED and its resistor are the load.
Real threshold circuits often add a comparator
A single transistor can make a useful simple light switch, but the change from OFF to ON is not especially sharp. A comparator or Schmitt trigger can give a cleaner switching threshold and better noise immunity.