Automatic street lights on & off using light dependent resistor
LDR_Based_Street_Light_Control.doc final.doc (Size: 3.03 MB / Downloads: 473)
We need to save or conserve energy because most of the energy sources we depend on, like coal and natural gas can't be replaced. Once we use them up, they're gone forever. Saving power is very important, instead of using the power in unnecessary times it should be switched off. In any city “STREET LIGHT” is one of the major power consuming factors. Most of the time we see street lights are ON even after sunrise thus wasting lot of energy. Over here we are avoiding the problem by having an automatic system which turns ON & OFF the street lights at given time or when the ambient light falls below a specific intensity. Each controller has an LDR which is used to detect the ambient light. If the ambient light is below a specific value the lights are turned ON.
A light dependent sensors is interfaced to the pic18f452 microcontroller it is used to track the sun light and when the sensors goes dark the led will be made on and when the sensor founds light the led will be made OFF.
It clearly demonstrates the working of transistor in saturation region and cut-off region. The working of relay is also known Microcontroller and the code is written in c language in MikroC ide, the resulted value can be seen with the help of UART or LCD display .Automatic Street Light Control System is a simple yet powerful concept, which uses transistor as a switch. By using this system manual works are 100% removed. It automatically switches ON lights when the sunlight goes below the visible region of our eyes. This is done by a sensor called Light Dependent Resistor (LDR) which senses the light actually like our eyes. It automatically switches OFF lights whenever the sunlight comes, visible to our eyes.
Aim of this project is to control the street light using LDR. When the light falling occur means resistance value will be change. There is no light then the resistance value is
change. From this resistance change the voltage variation can be obtained this value is given to ADC of PIC. PIC is stand for peripheral interface controller.
1.1.1 SCOPE OF THE PROJECT:
The main scope of the project is to learn the pic microcontroller, using 10BIT ADC serial communication, interfacing the 16x2 LCD module, and effective use of the MIKROC IDE.
• Gives brief introduction on the project.
• Discuss different modules of the project.
• Discuss about PIC microcontroller.
• Discuss about the Hardware.
1.2 LIGHT DEPENDENT RESISTOR
LDRs or Light Dependent Resistors are very useful especially in light/dark sensor circuits. Normally the resistance of an LDR is very high, sometimes as high as 1000000 ohms, but when they are illuminated with light resistance drops dramatically. Electronic onto sensors are the devices that alter their electrical characteristics, in the presences of visible or invisible light. The best-known devices of this type are the light dependent resistor (LDR), the photo diode and the phototransistors.
Light dependent resistor as the name suggests depends on light for the variation of resistance.
• LDR are made by depositing a film of cadmium sulphide or cadmium selenide on a substrate of ceramic containing no or very few free electrons when not illuminated.The longer the strip the more the value of resistance.
• When light falls on the strip, the resistance decreases. In the absence of light the resistance can be in the order of 10K ohm to 15K ohm and is called the dark resistance.
Depending on the exposure of light the resistance can fall down to value of 500 ohms. The power ratings are usually smaller and are in the range 50mw to .5w. Though very sensitive to light, the switching time is very high and hence cannot be used for high frequency applications. They are used in chopper amplifiers. Light dependent resistors are available as discs 0.5cm to 2.5cm. The resistance rises to several Mega ohms under dark conditions.
The below figure shoes that when the torch is turned on, the resistance of the LDR falls, allowing current to pass through it is shown in figure.
Fig. 1.1: LDR. Fig. 1.1.1: Symbol for LDR.
The basic construction and symbol for LDR are shown in above figures respectively. The device consists of a pair of metal film contacts separated by a snakelike track of cadmium sulphide film, designed to provide the maximum possible contact area
with the two metal films. The structure is housed in a clear plastic or resin case, to provide free access to external light. Practical LDRs are available in variety of sizes and
packages styles, the most popular size having a face diameter of roughly 10mm. practical LDR is shown in below figure.
Fig. 1.2: Practical LDR.
1.2.1 Recovery rate:
When an LDR is brought from a certain illuminating level into total darkness, the resistance does not increase immediately to the dark value. The recovery rate is specified in k ohm/second and for current LDR types it is more than 200k ohm/second. The recovery rate is much greater in the reverse direction, e.g. going from darkness to illumination level of 300 lux, it takes less than 10ms to reach a resistance which corresponds with a light level of 400 lux. A LDR may be connected either way round and no special precautions are required when soldering.
• Darkness: Maximum resistance, about 1Mohm.
• Very bright light: Minimum resistance, about 100 ohm.
The LDR is a variable resistor whose resistance decreases with the increase in light intensity. Two cadmium sulphide (cds) photoconductive cells with spectral response similar to that of the human eye. The cell resistance falls with increasing light intensity. some of its features:
• High reliability.
• Light weight.
• Wide spectral response.
• Wide ambient temperature range.
In this project the list of hardware components used are given below:
• 18F452 Microcontroller.
• Push Button For Reset.
• RS232 IC.
• 10 MHZ Crystal.
• A Relay.
• Light Dependent Resistor.
• 16X2 Pic LCD Module.
• Power Supply 5v dc With LED.
2.1 MICRO CONTROLLER
This section provides an introduction to most common word in the embedded system “microcontroller”. It is written to familiarize you with microcontroller terminology and basic microcontroller architecture.
A microcontroller is a single chip, self-contained computer which incorporates all the basic components of a personal computer on a much smaller scale. Microcontrollers are often referred to as single chip devices or single chip computers. The main consequence of the microcontroller’s small size is that its resources are far more limited than those of a desktop personal computer. In functional terms, a microcontroller is a programmable single chip which controls a process or system. Microcontrollers are typically used as embedded controllers where they control part of a very larger system such as an appliance, automobile, scientific instrument or a computer peripheral.
Microcontrollers are designed to be low cost solutions; therefore using them can drastically reduce part and design costs for a project. Physically, a microcontroller is an
integrated circuit with pins along each side. The pins presented by a microcontroller are used for power, ground, oscillator, I/O ports, interrupt request signals, reset and control. In contrast, the pins exposed by a microprocessor are most often memory bus signals (rather than I/O ports).