Did you ever think that how the street lights automatically turn ON in the night and turn OFF automatically at morning? Is there any person who comes to ON/OFF these lights? There are several ways to turn on the street lights but the following circuit describes an Automatic Street Light Controller Circuit that uses LDR and Relay to perform this job automatically.
The circuit employed here is an uncomplicated light/dark activated switch and contains a relay at its output, which simply turns ON/OFF a street light and further can be extended to control any electrical appliance in a household.
Related Post: Auto Intensity Control of Street Lights
Many people have a phobia of darkness, so to assist them in such situations, we have explained a simple circuit that will automatically turn on the street light consisting of LEDs or bulb coupled with relay. It is lit well enough to see the objects nearby.
This circuit is very easy to work around and also it is battery operated. The power consumed by the circuit is very low because of the very few components used in the circuit.
The whole circuit is based on IC LM358, which is basically an operational amplifier that is configured in a voltage comparator. LDR (Light depending resistor), whose resistance is based upon the quantity of the light falling on it, is the main component for sensing the light. Along with these, a few more components are also used.
Circuit Diagram of Automatic Street Light Controller Switch Circuit
- IC LM358 – 1
- Resistor 10KΩ – 1
- Potentiometer 10KΩ – 1
- 5V Relay Module – 1
- Small LED Strip
- 9V Battery
- LDR – 1
- Connecting Wires
Note: This circuit can also be built using microcontroller. To get an idea about the circuit built using microcontroller, read the post:Street Lights that Glow on Detecting Vehicle Movement.
It is an Operational Amplifier IC. It is available ib 8-pin DIP Package and can be used in several configurations like Amplifier, oscillator, comparator etc.
LDR is a device whose sensitivity depends upon the intensity of light falling on it. When the strength of the light falling on LDR increases the LDR resistance decreases, while if the strength of the light falls on LDR is decreased, its resistance increased.
In the time of darkness or when there is no light, the resistance of LDR is in the range of mega ohms, while in the presence of light or in brightness in decrease by few hundred ohms.
Testing of LDR
Before mounting any component in the circuit it is a good practice to check whether a component works properly or not so that you can avoid consumption of time in troubleshooting. For testing LDR set the range of multimeter in resistance measurement.
Measure the resistance of LDR in the light or brightness and the resistance must be low. Now, cover the LDR properly so that no light falls on it and once again measure the resistance. It must be high. If you got the satisfactory result, then your LDR is good.
[Also Read: How To Make an Adjustable Timer ]
It is a passive component having two terminals that is used to manage the current flow in the circuit. A current that flows via a resistor is directly proportional to the voltage that appears across the resistor.
Resistors are of two types –
i) Fixed Resistor – having a fixed value of resistance
ii) Variable Resistor – whose value of resistance can be changed for example if we have a resistor of 5K then the value of resistance will vary from 0 to 5 k.
Value of resistance can be calculated with the help of multimeter or with the color code that is visible on the resistor.
It provides isolation between the controller and the device because as we know devices may work on AC as well as on DC but they receive signals from microcontroller which works on DC hence we require a relay to bridge the gap. The relay is extremely useful when you need to control a large amount of current or voltage with the small electrical signal.
Factors for Selecting an appropriate Relay
- The voltage and current required to strengthen the coil.
- The maximum voltage which we will acquire in the output.
- Amount of the armature.
- Amount of contacts for the armature.
- Number of electrical associates (N/O and N/C).
NOTE: The Relay module used in this project is an active LOW Relay.
Automatic Street Light Controller Circuit Simulation Video (Old Circuit)
Working of Automatic Street Light Controller Switch Circuit
The working of circuit is very much easy to understand. In this circuit, we used IC LM358, which is basically an operational amplifier. Pins 2 and 3 of these IC are used to compare the voltage and give us an output as high or low depending on the voltages at the input pins.
In this circuit, LDR and 10KΩ Resistor form one potential divider pair, which is used to provide a variable voltage at the non-inverting input (that is Pin 3). The second potential divider is built around inverting input (Pin 2) with the help of 10KΩ Potentiometer, which will supply half of the supply voltage to inverting pin.
As we know the property of LDR that during the day time, its resistance is low, the voltage at the non-inverting input (i.e. pin 3) is higher than the voltage at the inverting input (pin 2). Hence, the output at the pin 1 is high. As a result, the relay is OFF and the LED (or the bulb) will not glow.
But in dimness or at night time, we know that resistance of LDR is high. Hence, the voltage at non-inverting input pin 3 of the IC LM358 decreases than the inverting input pin 2. As a result, the output pin 1 moves to low state, which further makes the relay to activate and the LED or bulb associated to it will glow.