Fork me on GitHub

Project Notes

#664 Light Control Switch Kit

Building an LDR-controlled relay kit with hysteresis/delay for on and off transitions (LM393 comparator with RC-dampened inputs).

Build

Here’s a quick demo..

clip

Notes

Another cheap little kit from aliexpress. I love’em!

This circuit demonstrates how to use a light-dependent resistor to switch a heavy lead (via a relay), but with a dampening delay implemented with an RC circuit squashing the inputs to an LM393 comparator.

The Kit

From aliexpress, but probably widely available with similar specs.

kit_parts

pcb

Parts

Ref Item Qty
R1 4.7kΩ 1
R4,6 10kΩ 2
R3 10kΩ pot 1
D3 1N4007 1
Q1,2 805 2
C1 104, 100nF 1
C2 10µF 1
J1,2 2 x 2pin headers 4p
J4 KF301-3P, 3pin terminal block (missing/not included in the kit) 1
R2 510kΩ 1
R5,7 2.2kΩ 2
D1 Red LED 5mm 1
D2 Green LED 5mm 1
U1 LM393 1
U1 DIP8 socket 1
J3 DPDT switch 1
K1 relay 1
J2 LDR 1
  PCB 1

Circuit Design

LightControlSwitchKit_bb

schematic

Credits and References

About LEAP#664 LDRCMOS/TTL
Project Source on GitHub Return to the LEAP Catalog

LEAP is just my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know (or send a PR!). See the individual projects for credits where due.

For a while I have also included various scale modelling projects here too, but I've now split those off into a new repository. Check out LittleModelArt if you are looking for the modelling projects!

Project Gallery Notebook LittleCodingKata LittleModelArt More on my blog