Automatic Light Intensity Controller Using LDR and Relay
Automatic Light Intensity Controller Using LDR and Relay
Automatic Light Intensity Controller Using LDR and Relay
CHAPTER 1
INTRODUCTION
Automatic Street Light Control System is a simple and powerful concept, which
uses transistor as a switch to switch ON and OFF the street light automatically. By
using this system manual works are removed. It automatically switches ON lights
when the sunlight goes below the visible region of our eyes. It automatically
switches OFF lights under illumination by sunlight. This is done by a sensor called
Light Dependant Resistor (LDR) which senses the light actually like our eyes By
using this system energy consumption is also reduced because now-a-days the
manually operated street lights are not switched off properly even the sunlight
comes and also not switched on earlier before sunset.
In sunny and rainy days, ON time and OFF time differ significantly which is one of
the major disadvantage of using timer circuits or manual . A street light, lamppost,
street lamp, light standard, or lamp standard is a raised source of light on the edge
of a road or walkway, which is turned on or lit at a certain time every night.
Modern lamps may also have light-sensitive photocells to turn them on at dusk, off
at dawn, or activate automatically in dark weather The system itself detects
whether there is need for light or not. When darkness rises to a certain value
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.
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.
CHAPTER 2
● IC LM358 – 1
● Resistor 10KΩ – 1
● Potentiometer 10KΩ – 1
● 5V Relay Module – 1
● Small LED Strip
● 9V Battery
● LDR – 1
● Connecting Wires
● Breadboard
LM358 IC:
The LM358 IC is a great, low power and easy to use dual channel op-amp IC. It is
designed and introduced by national semiconductor. It consists of two internally
frequency compensated, high gain, independent op-amps. This IC is designed for
specially to operate from a single power supply over a wide range of voltages. The
LM358 IC is available in a chip sized package and applications of this op amp
2.2 fig.1 LM IC 35
Resistor(10k):
Resistors are common elements of electrical networks and electronic circuits and
are ubiquitous in electronic equipment. Practical resistors as discrete components
can be composed of various compounds and forms. Resistors are also implemented
within integrated circuits.
Potentiometer 10k:
5v Relay Module:
The isolation relay module is an electrically operated switch that allows you to turn
on or off a circuit using voltage and/or current much higher than a microcontroller
could handle. There is no connection between the low voltage circuit operated by
the microcontroller and the high power circuit. The relay protects each circuit from
each other. The module has three connections named NC, COM, and NO.
Depending on the input signal trigger mode, the jumper cap can be placed at high
level effective mode which ‘closes’ the normally open (NO) switch at high level
input and at low level effective mode which operates the same but at low level
input.
Specifications:
Onboard EL817 photoelectric coupler with photoelectric isolating
antiinterference ability strong.
Onboard 5 v, 10 A / 250 VAC, 10 A / 30 VDC relays, relay long life can
absorb 100000 times in a row.
Module can be directly and MCU I/O link, input signal trigger mode (high
level effective mode and low level effective mode) can be choose by jumper
cap.
Module with the instructions and signal output diode current protection.
PCB size: 46 (mm) x17.6 (mm).
The 5v relay has three high voltage terminals (NC, C, and NO) which
connect to the device you want to control. The other side has three low
voltage pins (Ground, Vcc, and Signal) which connect to the arduino.
Pin terminals:
NC: Normally closed 120-240V terminal
NO: Normally open 120-240V terminal
C: Common terminal
Ground: Connects to the ground pin on the Arduino
5V Vcc: Connects the Arduino’s 5V pin
Signal: Carries the trigger signal from the Arduino that activates the
relay.
LEDs have many advantages over incandescent light sources, including lower
energy consumption, longer lifetime, improved physical robustness, smaller size,
and faster switching. Light-emitting diodes are used in applications as diverse
as aviation lighting, automotive headlamps, advertising, general lighting, traffic
signals, camera flashes, lighted wallpaper and medical devices.Unlike a laser, the
color of light emitted from an LED is neither coherent nor monochromatic, but the
spectrum is narrow with respect to human vision, and functionally monochromatic.
9v Battery:
The nine-volt battery, or 9-volt battery, is a common size of battery that was
introduced for the early transistor radios. It has a rectangular prism shape with
rounded edges and a polarized snap connector at the top. This type is commonly
used in walkie-talkies, clocks and smoke detectors.
In 2007, 9-volt batteries accounted for 4% of alkaline primary battery sales in the
United States. In Switzerland in 2008, 9-volt batteries total 2% of primary battery
sales and 2% of secondary battery sales.
LDR:
A photoresistor or light dependent resistor is a component that is sensitive to light.
When light falls upon it then the resistance changes. Values of the resistance of the
LDR may change over many orders of magnitude the value of the resistance falling
as the level of light increases. LDRs are made from semiconductor materials to
enable them to have their light sensitive properties.
Many materials can be used, but one popular material for these photoresistors is
cadmium sulphide, CdS. It is relatively easy to understand the basics of how an
LDR works without delving into complicated explanations. It is first necessary to
understand that an electrical current consists of the movement of electrons within a
material. Good conductors have a large number of free electrons that can drift in a
given direction under the action of a potential difference. Insulators with a high
resistance have very few free electrons, and therefore it is hard to make the them
move and hence a current to flow.
and able to move - the vast majority of the electrons are locked into the crystal
lattice and unable to move. Therefore in this state there is a high LDR resistance.
CHAPTER 3
3.1.1 circuit diagram of automatic light intensity controller using ldr and 5v relay module
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 thevoltage 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 toprovide a variable voltage at the non-inverting input (that is Pin 3). The
second potentialdivider is built around inverting input (Pin 2) with the help of
10KΩ Potentiometer, whichwill supply half of the supply voltage to inverting pin.
3.2.1 At day time,led does not glow due to low resistance of ldr
As we know the property of LDR that during the day time, its resistance is
low, the voltage atthe 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 voltageat non-inverting input pin 3 of the IC LM358 decreases than the
inverting input pin 2. As aresult, the output pin 1 moves to low state, which further
makes the relay to activate and theLED or bulb associated to it will glow
CHAPTER 4
Simulation results:
CHAPTER 5
• Low cost
• Automated operation
• Very flexible
• Easy to manufactured In sunny and rainy days, on and off time differ notice
which is one of the major disadvantages of using timer circuit or manual operation
for switching the street light system.
Applications: