Dark detector circuit using LDR and relay
This dark detector circuit uses as a main component an LDR. An LDR changes its resistance value depending on the amount of light it receive. The more light means less resistance, the less light means more resistance. To activate the output (for example a lamp), a relay is used
How the Dark detector circuit works?
The set R2, VR1 (potentiometer) and R4 (LDR), form a voltage divider. The output voltage of this voltage divider is taked at the junction of the LDR and the potentiometer.
- When the LDR receives light, there is a low voltage at the base pin of the transistor. The transistor is in the cut-off region, there is no collector-emitter current and the relay will not activate.
- When the LDR receives no light, the voltage at the base pin of transistor rises high enough to put the transistor into the saturation region, there is collector-emitter current and the relay is activated.
As the level of illumination on the LDR gradually changes, a potentiometer is used to set the appropriate voltage level of activation of the relay. The D1 LED indicates that the circuit is in operation and the D3 LED lights when the light level decreases. The semiconductor diode D2 is used to protect the transistor when the relay is switched off.
Dark detector circuit list of components
- 1 transistor 2N2222A (Q1)
- 2 LEDs green and red, (D1 and D3)
- 1 semiconductor diode 1N4001 (D2)
- 2 1K, 1/4W resistors (R1 and R3)
- 1 10K, 1/4W resistor (R2)
- 1 LDR / photoresistor (R4)
- 1 47K potentiometer / variable resistor (VR1)
- 1 10uF / 25Volts or more Electrolytic Capacitor (C1)
- 1 12 volts relay (RL1)