Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 15

Street Light Intensity

Control By Sensing
Vehicle Movement
Mr. J John Paul
Kumar
AP-ECE
UR12EC142

K Y

PROJECT OBJECTIVE
Power can be saved during night
when the intensity of the street light
is controlled according to the traffic.
In this project the intensity of street
light is controlled by sensing the
vehicle movement.

Block Diagram
PIR
SENSOR
PORTC

POWER
SUPPLY

MICROCONTROLLER
ATMEGA16
PORTA

LDR

PORT
D

LED
array

Circuit Diagram

ATMEGA 16

ALGORITHM
Check for the output of LDR through port A.
If the output at the port pin is low switch on
three leds through port C.
If the PIR sensor output is low, increase the
intensity by switching on all led through port
C for one minute.
If the PIR sensor output is high , the intensity
will be normal.

FLOW CHART

A
NO

YE
S

NO

YES
NO

YES

C
One half of Array of LEDs(4-LEDs)
connected through the PORTD PINs
will be switched ON
B
The whole Array of LEDs(8-LEDs)
connected through the PORTD PINs
will be switched OFF
STOP

Resolution of ADC = 10-bit


Voltage divider circuit
4v = 820 (Max decimal value/resistance
taken for night time)
Formula:
Preset Value = (2^10 x 4)/ 5
= 820

REGISTERS USED
ADMUX

REFS0 = 0 ;REFS1 = 1 (internal reference voltage)


MUX0 = 1 ;MUX1 = 1; MUX2 = 1(channel 7)

ADMUX = 1000 0111 (87)

REGISTERS USED
ADCSRA

ADEN = 1(enable ADC)


ADSC = 1(start conversion)
ADPS2 = 1;ADPS1 = 1;ADPS0 = 1(Prescaler = 128)
ADIF => ADC interrupt flag

ADCSRA = 1101 1111

(DF)

HARDWARE/SOFTWARE
REQUIRED

Atmega16 Microcontroller
PIR Sensor
LDR
LED array
ATMEL Studio
eXtreme Burner-AVR
12v power supply

Hardware Description
PIR sensor
operating voltage: 5-8v
Current: 65 mA
delay time: adjustable
TTL output: 3.3v,0v
Sensing range: 7m

PROJECT OUTPUT
The LED is switched ON during night
by sensing the intensity of sunlight
using LDR. When the PIR sensor
detects a vehicle during night, it
indicates the microcontroller to
increase the intensity of the light for
one minute. After the particular time
interval the microcontroller reduces
the intensity of LED array.

CONCLUSION
Thus the power can be saved
conventionally by reducing the
intensity of street lights when there
is no vehicle movement and the
normal intensity is restored when the
circuit detects any vehicle
movement.

You might also like