Professional Documents
Culture Documents
Sample
Sample
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
REGISTERS USED
ADMUX
REGISTERS USED
ADCSRA
(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.