source code for automatic street light intensity control
#1
Video 

heloo, please help me with the source code for automatic street lights control system. i will be very grateful to receive it, thax
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 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.

How Auto Intensity Control of Street Lights Circuit Works?

Initially power the circuit.
Time is displayed on the LCD display.
Place the LDR in darkness as the street lights switches on only when there is no light on LDR.
Now check the time if the time is between 9 pm to 2 am street light glows with full intensity.
Change the time by writing time to RTC and dump the code again.
Now switch on the circuit check the intensity. From 2pm intensity of the lights slowly starts decreasing and finally in early morning it glows with least intensity. When the light is sensed by the LDR lights are switched off automatically.
Code is written in such a way that up to 2 am lights will glow with full intensity. From then it slowly starts decreasing and finally it drops to zero in the morning.

Auto Intensity Control of Street Lights Circuit Advantages:

Power wastage can be reduced.
Using LED array reduces the cost.
Using of RTC and LDR produces accurate results.
Limitations of this Circuit:

Even though energy is saved if there are any vehicles after fixed time, intensity of the light is low.
Maximum energy cannot be saved.
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: report of automatic intensity control, automatic intensity control street light, automatic street light intensity control project, automatic vehicle intensity street light controller matlab source code, code for embedded c for automatic street light, literaturture survey for automatic roomlight intensity based window blind control system, ancoring scipt for scl,

[-]
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,270 06-10-2018, 05:46 AM
Last Post: Guest
  free download source code of online college magazine 5 17,833 29-06-2018, 10:09 AM
Last Post: Guest
  opengl source code for butterfly 3 3,260 14-05-2018, 08:57 AM
Last Post: Akshatha k
  ice cream parlour management system in vb source code 4 5,289 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,547 20-03-2018, 10:50 AM
Last Post: Guest
  circuit diagram dc motor speed and direction control over gsm mobile modem pdf 2 15,074 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,571 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: