source code for automatic street light intensity control
#1

source code for automatic street light intensity control
Reply
#2
source code for automatic street light intensity control

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.

Auto Intensity Control of Street Lights Circuit Diagram:

Auto Intensity Control of Street Lights Circuit Diagram
Circuit Diagram of Auto Intensity Control of Street Lights – Electronics Hub
Circuit Components:

ATmega8 micro controller
DS1307 IC
Light Dependent Resistor
LED array.
LCD display
Related Post – Street Lights that Glow on Detecting Vehicle Movement

Auto Intensity Control of Street Lights Circuit Design:

The auto intensity control of street lights circuit is simple but it requires more coding part. This circuit consists of Atmega8 controller, DS1307, LDR, Relay and LEDs. The light dependent resistor is connected to ADC1 (PC1) pin of the micro controller. The analog light value is converted to digital value using ADC.

Real time clock has 8 pins out of which SCL and SDA are connected toPC5 and PC4 pins respectively. SCL is serial clock while SDA is serial data. As said before, RTC is I2C compatible, where I2C means inter integrated circuit. One bit of data is transmitted on data bus for each clock cycle. I2C protocol allows one to connect 128 devices. Data can be transferred between devices, using only two bi-directional buses. Each device can act as a slave or master. The slave devices will have one address and these devices can be accessed using this address.

LCD is the display used for displaying time which is read from RTC IC. Interfacing of LCD in 4bit mode is shown in circuit diagram. D4-D7 pins of LCD are connected to PD0-PD3 pins of microcontroller. RS pin of LCD is connected to PD4 pin of micro controller. RW and Enable pins are connected to PD5 and PD6 pins of controller.

LED array is number of high power LEDs connected in series. It is connected to PWM pin of the microcontroller.

I2C Protocol:

I2c is a communication protocol invented by Philips Company. This is well suited for communication between integrated circuits and pheripherals. This uses two lines to transfer data.

Serial Data – SDA
Serial Clock – SCL.
This can connect up to 128 devices using two wires. Each device connected will have an address. The device which initiates the data transfer is called Master.
Every device will have 7 bit address.
Master initially sends the START bit on the data line.
Then it sends the address of the device with which wants to communicate and the mode of operation i.e. read or write.
The slave devices listen to the incoming data and checks if its address matches to the received data. The device whose address matches send an acknowledgement signal.
Then master starts transmitting or receiving the data from the slave.
After completion of the transmission, Master sends a STOP bit.
Data on SDA can be changed only if SCL pin is low.
Reply
#3
can you send me the source code plz..
i'm working on it.it would be helpful if u could send me the code.
thanks in advance.
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: automatic street light intensity control circuit, source code of automatic street light intensity control, code for embedded c for automatic street light, auto intensity control of street light project source code, source code for automatic street light intensity control, ancoring scipt for scl, sda conferences in nad,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  block diagram of low cost automatic gate light with musical bell 1 7,271 06-10-2018, 05:46 AM
Last Post: Guest
  free download source code of online college magazine 5 17,851 29-06-2018, 10:09 AM
Last Post: Guest
  opengl source code for butterfly 3 3,266 14-05-2018, 08:57 AM
Last Post: Akshatha k
  ice cream parlour management system in vb source code 4 5,290 04-04-2018, 11:58 PM
Last Post: vprk77
  source code in php for online training and placement cell management 1 6,686 23-03-2018, 09:06 AM
Last Post: ritzi
  mba project inventory control of tata motors 1 3,552 20-03-2018, 10:50 AM
Last Post: Guest
  circuit diagram dc motor speed and direction control over gsm mobile modem pdf 2 15,084 19-03-2018, 10:57 AM
Last Post: Guest
  free download college website project in html with source code 2 4,622 24-02-2018, 10:46 AM
Last Post: Guest
Tongue ppt slides on sliding mode scheme for speed and current control of brushless dc bldc motor 7 2,572 16-01-2018, 11:41 AM
Last Post: dhanabhagya
  source code for hospital management system in jsp 4 1,951 13-01-2018, 10:51 AM
Last Post: dhanabhagya

Forum Jump: