Automatic night lamp circuit. 1

Automatic Night Lamp Using LDR

Share this

LDR darkness sensor circuit

dark sensor circuit

 This Automatic light-operated light switch circuit is Based on LDR. LDR is a Light Dependent Resistor. It is also called a Photoresistor.


Introduction of LDR

LDR (Photoresistor) is a type of variable resistor that Increases its Resistance when the Light is Decreases and its Resistance Decreases When Light is Increases. It means in a dark place or when no light falls on LDR, the resistance of its is very HIGH  and in Sufficient light, the resistance of LDR is very LOW. 

LDR Working

This resistor works on the principle of photoconductivity. These devices depend on the light. The most obvious application for an LDR is to automatically turn on a light at a certain light level. 

Construction And Working Of Circuit

Construct the circuit as shown in fig. Two NPN transistors are used to switching operations. The LDR is connected between the supply voltage and Base terminal of transistor Q2. The Emitter terminal of this transistor is connected with the ground through a variable resistor or potentiometer (POT).  This variable resistor is used to adjust the sensitivity of the circuit.

LDR circuit diagram

ldr circuit diagram

At Day When  Light falls on LDR then conductivity increased and current flows between supply to the base of the transistor and then transistor Q1 will on. Transistor Q1 And Transistor Q2 are connected as NOT Gate. When transistor Q1 is on by conducting even small current on base, The output of transistor Q2 is LOW (OFF). 

At night when there is no light falls on LDR, then high resistance will create and there are no current flows on the base of transistor Q2.  As there is no supply comes on the base of transistor Q1, this is in OFF state, When this transistor has LOW input then the output of Transistor Q2 will HIGH   When transistor Q2 is in HIGH mode then is energized (turned on) the relay connected with its collector and Electric Lamp will be Switched ON. 

Assemble the circuit at any general PCB board and set the adjustment of pot according to required sensitivity. Fix the LDR out of the cabinet for detecting the light.

pin diagram of 2N2222A


LDR (medium size)-1








Relay 6v -1




Also read

What is DIAC 

Remote controlled  switch 

Share this

1 thought on “Automatic Night Lamp Using LDR”

Leave a Comment

Your email address will not be published. Required fields are marked *