Académique Documents
Professionnel Documents
Culture Documents
LIGHT CONTROLLING
BASED ON VEHICLE
MOVEMENT
09-Nov-15
BEE-FA12-001
M. Hamza Kaleem
BEE-FA13-046
Amanullah Mukhtar
BEE-FA12-096
Page 2
ACKNOWLEDGEMENTS
We bow our head before Allah Almighty, the Omnipotent, the Merciful, the most
Beneficent, the Answerer to the prayers and the sovereign whose blessings and
exaltations flourished our thoughts, enlightened our heart, thrived our ambitions and
enabled us to contribute sincerely to the sacred wealth of knowledge. Our all praise for
the greatest reformer of the world, Hazrat Muhammad (PBUH), whose name enlightens
our heart and who is forever a tower of knowledge and guidance of humanity.
We feel honored to express our profound sense of gratitude to our supervisor Engr.
Haroon (Lecturer, School of Electrical Engineering, University of Faisalabad) for
his kind supervision, affectionate behavior and marvelous guidance throughout the
research work. His invaluable help of constructive comments and suggestions throughout
the proteus work have contributed to the success of this research. We owe our deepest
gratitude to him for his much concern, sincere advice, unforgettable guidance, and kind
behavior. We are very grateful to him for his moral support, nice cooperation,
encouragement and technical knowledge regarding this topic which helped us a lot in this
research work.
No acknowledgement would ever adequately express our obligation to our Parents for
their indispensable and indivisible love that remained assisted and encouraged us. Their
affection, motivation, sacrifices and endless prayers serve as a tonic for us. Thanks to
Allah for bestowing us with true and loving Friends who encouraged and pacified us
during tough hours of research.
Arbab Aslam.
Page 3
TABLE OF CONTENTS
CHAPTERS
PAGE
ACKNOWLEDGEMENTS ...
TABLE OF CONTENTS ..
ABSTRACT ......
INTRODUCTION ............
METHODOLOGY .......
EXPERIMENTAL WORK ..
Compilation .
10
Software...
10
10
12
ASSEMBLY
Coding of Arduino Using Arduino Software ......
15
18
CONNCLUSION ..
18
REFERENCES ..
20
Page 4
ABSTRACTS:
This paper aims at designing and executing the advanced development in embedded
systems for energy saving of lights. Nowadays, human has become too busy, and is
unable to find time even to switch the lights wherever not necessary. The present system
is like the lights will be switched on in the evening before the sun sets and they are
switched off the next day morning after there is sufficient light on the outside. The
system switches on the street light ahead of the vehicle and switches off the trailing lights
simultaneously. In order to detect movement of vehicles, sensors are used. The system
automatically puts on the lights that are ahead of the vehicle detected and as soon as the
vehicle moves ahead, the trailing lights are switched off. This is better than the existing
system where the street lights are kept on always unlike this system where the street
lights are put on only when movement of vehicle is detected which helps in saving lot of
energy. This paper gives the best solution for electrical power wastage. Also the manual
operation of the lighting system is completely eliminated.
Page 5
Page 6
II. METHODOLOGY:
This project is designed to detect vehicle movement by using light sensor on highways to
switch ON only a block of street lights before of vehicles and to switch OFF the behind
lights to save energy consumption. This is achieved by sensing an approaching vehicle
and then switches ON a block of street lights ahead of the vehicle. As the vehicle passes
by, the trailing lights switch OFF
power supply given to the ARDUINO through Battery. we can also use 12v Dc adapter.
We have three inputs, those are LDRs(Light depending resister) and three Outputs those
are 3led steeps for lights..
LDR1 Sensors is connected to the Arduino inputs PortA5.
LDR 2 sensor is connect to the input pin A3.
LDR 3 is connected to the pin A1.
On the digital side of Arduino For Output we have connected 3 leds to pins 1,2,3 for
LDR1.and for LDR2 we use pins no 4,5,6.
For output of LDR3 we connect 3 leds t0 pin 8,10,12.
Page 7
Light sensor:
When the strength of the light falling on LDR increases the LDR resistance decreases and
if the strength of the light falling on LDR decreased resistance increased. Resistance of
LDR decrease with increase in intensity of light and vice-versa.
Page 8
Page 9
Compilation:
When we have written a code then following work I have been done.
Figure 3: Compilation.
Software:
In this project device is used named as AEDUINO which is
programmable and is the main part of our project. This device cannot be used without
programming, so for this purpose we used Arduino software which is capable of
embedding our desired programming in microcontroller. And the other Software used in
our project is Labscenter Proteus Demonstration 8.1.
Page 10
If one person designs both the hardware and the software then that person benefits as the
hardware design may be changed just as easily as the software design. In larger
organizations where the two roles are separated, the software designers can begin work as
soon as the schematic is completed; there is no need for them to wait until a physical
prototype exists.
Figure 4: Proteus.
1.Overview:
Start the program by click the ISIS Professional icon in Start Menu.
Figure 5: Overview.
Page 11
Page 12
Page 13
2. Simulation:
After defining all the various parameters in the Arduino and the other components and
also loading the hex file in the controller, we can start the simulation by clicking the
PLAY button on the bottom panel of the Proteus VSM.
Figure 9: simulation.
Page 14
Page 15
pinMode(LED8,OUTPUT);
pinMode(LED9,OUTPUT);
pinMode(LED10,OUTPUT);
pinMode(LED12,OUTPUT);
}
void loop(){
value1=analogRead(LDR1);
value2=analogRead(LDR2);
value3=analogRead(LDR3);
//value4=analogRead(LDR4);
if(value1<=800)
{
delay(100);
digitalWrite(LED1,1);
delay(200);
digitalWrite(LED2,1);
delay(300);
digitalWrite(LED3,1);
}
if(value1>800)
{
delay(500);
digitalWrite(LED1,0);
delay(500);
digitalWrite(LED2,0);
delay(500);
digitalWrite(LED3,0);
}
if(value2<=800)
{
delay(100);
digitalWrite(LED4,1);
delay(200);
Page 16
digitalWrite(LED5,1);
delay(300);
digitalWrite(LED6,1);
}
if(value2>800)
{
delay(500);
digitalWrite(LED4,0);
delay(500);
digitalWrite(LED5,0);
delay(500);
digitalWrite(LED6,0);
}
if(value3<=800)
{
delay(100);
digitalWrite(LED8,1);
delay(200);
digitalWrite(LED10,1);
delay(300);
digitalWrite(LED12,1);
}
if(value3>800)
{ delay(500);
digitalWrite(LED8,0);
delay(500);
digitalWrite(LED10,0);
delay(500);
digitalWrite(LED12,0);
}}
Page 17
Page 18
I connect the components and run the simulation and now result are accurate and
according to requirement. The screen shoot are attached.
V. CONCLUSION:
In coming days, this will prove a great boon to the world, since it will save a lot of
electricity of power plants that gets wasted in illuminating the street lights. As the
conventional sources are depleting very fast, then it`s time to think of alternatives.
Page 19
VI. REFERENCES:
1.
2.
Page 20