LDR Switch Relay Circuit

7,888 views

In this tutorial, we are going to make an “LDR Switch Relay Circuit”.

Most of the time the process of appliance controlling may cause wastage of power due to the carelessness of human beings or unusual circumstances and sometimes it is also very risky, as the controlling of lights and home appliances is generally operated and maintained manually. Let’s say the bathroom switch, what if we use our wet fingers to turn it on or off it may give an electric shock. So, it would be dangerous, to avoid these situations we can use the simple LDR switch relay circuit. An LDR or a photoresistor is a device that is made up of high resistance semiconductor material, it is a type of variable resistor that increases its resistance when the light decreases and its resistance decreases when light increases. Here LDR acts as a shadow sensing device and makes turns ON or OFF the Relay whenever it detects the shadow and keeps the relay in either ON or OFF condition until the next detection of shadow. We can swipe our hands above the LDR to turn ON/OFF the electrical appliances. It means this LDR switch relay circuit eliminates physical contact with an electrical appliance. 

Hardware Required

S.noComponentValueQty
1.Decade Counter ICCD40171
2.Dual Operational Amplifier IC LM3581
3.Relay Module9V1
4.LDR (Light Dependent Resistor)1
5.Variable Resistor10KΩ1
6.Resistor10K, 100K, 330Ω2, 1, 1
7.Capacitor33uF1
8.Diode1N40071
9.LED1
10.NPN Transistor BC5471
11.AC Bulb230V1
12.Connecting Wires
13. Battery/ DC power supply9V, 9V1

Circuit Diagram

ldr-switch-relay-circuit-diagram-schematic

Working Explanation

As we can see this LDR switch relay circuit has two stages to drive the relay, the first one is the sensor-operational amplifier and another one is a decade counter. Here LDR is connected with Variable resistor VR1 and a variable terminal connected with operational amplifier inverting input, we can adjust the sensitivity level of LDR by changing the value of VR1. Voltage divider circuit which has R1 and R2 resistors are made to balance the operation of a non-inverting input of amplifier LM358. Then the output of operational amplifier one is obtained from pin 1 and fed into the clock input of the decade counter. Here C1 and R3 are used to stabilize the output from the operational amplifier. Now the IC CD4017 is placed to count the clock and gives 10 outputs from Q0 to Q9. Here output relay is connected with Q0 through switching transistor BC547. And an LED1 is connected which indicates the ON condition of the relay.  

As LDR is a type of variable resistor that increases its resistance when the light decreases and its resistance decreases when light increases. It means in a dark place or when no light falls on LDR, the resistance of it is very HIGH and in Sufficient light, the resistance of LDR is very LOW. Here electrical appliance (bulb) is connected between N/O (Normally Open) and Common pin with a relay. When any human or object approaches the LDR, it detects the shadow then the relay gets supply and turns ON the bulb, and stays in the same condition until another shadow detection by the LDR. If you’re using this circuit as a permanent setup then you have to use Step down transformer and rectifier-regulator to have a 9V DC power supply. 

Applications

Can be used to control lights and other electronic appliances at home, offices, malls, and hospitals.