sir I need source code for auto intensity thank you
Posts: 8,059
Threads: 1
Joined: Mar 2014
atmega8 microcontroller source code for auto intensity
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.
Real time clock IC used is DS1307. It is compatible to I2C protocol. RTC acts as a slave. Time is read from RTC IC and micro controller automatically adjusts the intensity of light by generating PWM signal.
Light Dependent Resistor (LDR) is used in this project to check the intensity of light. Depending on the intensity, lights can be switched ON or OFF. Both light dependent resistor and real time clock are required for this project. Because, using Light dependent resistor alone may lead to wastage of energy. Using RTC alone may cause the lights to be switched on even when there is light.