01-10-2015, 02:05 PM
source code for automatic street light intensity control
In present system, highways are usually lightened up by using HID (High Intensity Lamps) that consumes huge amount of energy and moreover its intensity cannot be varied as per need. Therefore the system “Street light automatic intensity controller” overcomes these limitations by making use of LED’s (Light Emitting Diodes) as light source and simultaneously its intensity can be varied and controlled according to requirements. A microcontroller of 8051 family is used for this purpose that contains programmable instructions to control the intensity by producing pulse width modulated signals which drives a MOSFET to switch LEDs to achieve required results. Thus the intensity increases during peak hours and gradually diminishes in late nights. At sharp 6am it completely goes off and resumes again at 6pm. This procedure goes on repeating everyday like this.
Street lights are controlled manually in olden days. These days automation of street lights has emerged. But one can observe that there is no need of high intensity in peak hours i.e. when there is no traffic and even in early mornings. By reducing the intensity in these times, energy can be saved to some extent. We have already published a post about Automatic Street Light Controller circuit which was designed using Relays and LDRs. This article explains the circuit that automatically controls the intensity of street lights which is designed using microcontroller and LEDs.
Auto Intensity Control of Street Lights Circuit Principle:
The circuit consists of ATmega8 controller, Real time clock and LDR. Depending on the time and LDR value, micro controller automatically adjusts the intensity of the street lights using pulse width modulation. In this article, Pulse width modulation signal is generated in ATmega8 micro controller using timer/counter-2 at OCR2 i.e. PB3 pin.
In present system, highways are usually lightened up by using HID (High Intensity Lamps) that consumes huge amount of energy and moreover its intensity cannot be varied as per need. Therefore the system “Street light automatic intensity controller” overcomes these limitations by making use of LED’s (Light Emitting Diodes) as light source and simultaneously its intensity can be varied and controlled according to requirements. A microcontroller of 8051 family is used for this purpose that contains programmable instructions to control the intensity by producing pulse width modulated signals which drives a MOSFET to switch LEDs to achieve required results. Thus the intensity increases during peak hours and gradually diminishes in late nights. At sharp 6am it completely goes off and resumes again at 6pm. This procedure goes on repeating everyday like this.
Street lights are controlled manually in olden days. These days automation of street lights has emerged. But one can observe that there is no need of high intensity in peak hours i.e. when there is no traffic and even in early mornings. By reducing the intensity in these times, energy can be saved to some extent. We have already published a post about Automatic Street Light Controller circuit which was designed using Relays and LDRs. This article explains the circuit that automatically controls the intensity of street lights which is designed using microcontroller and LEDs.
Auto Intensity Control of Street Lights Circuit Principle:
The circuit consists of ATmega8 controller, Real time clock and LDR. Depending on the time and LDR value, micro controller automatically adjusts the intensity of the street lights using pulse width modulation. In this article, Pulse width modulation signal is generated in ATmega8 micro controller using timer/counter-2 at OCR2 i.e. PB3 pin.