Smart Street L Ight Ing: by Mortadha Qassim Ha Di
Smart Street L Ight Ing: by Mortadha Qassim Ha Di
Smart Street L Ight Ing: by Mortadha Qassim Ha Di
College of Engineering
Electrical Department
By
Mortadha Qassim Hadi
Supervisor
MSc. Nadia Qassim
Abstract ------------------------------------------------------------------------------------ii
Chapter 1: Introduction
Introduction ------------------------------------------------------------------------------- 2
Chapter 5: Conclusion
Conclusion ----------------------------------------------------------------------------- 37
i
ABSTRACT
ii
REFERENCES
1- Müllner, Reinhard, and Andreas Riener. "An energy efficient pedestrian aware
Smart Street Lighting system." International Journal of Pervasive Computing and
Communications 7.2 (2011): 147-161.
2- Plamp, Diann F., and LaDell R. Swiden. "Illuminated memorial." U.S. Patent
No. 5,255,170. 19 Oct. 1993.
3- Sehulster, Lynne, et al. "Guidelines for environmental infection control in
health-care facilities." Morbidity and Mortality Weekly Report
Recommendations and Reports RR 52.10 (2003).
4- Brown, Emery Alan, and Pervaiz Lodhie. "Dimmer circuit for LED." U.S.
Patent No. 7,102,902. 5 Sep. 2006.
5- Lenz, Mark. "Fluorescent light and motion detector with quick plug release
and troubleshooting capabilities." U.S. Patent No. 6,091,200. 18 Jul. 2000.
6- Chen, Tung-Yang, Ming-Dou Ker, and Chung-Yu Wu. "The application of
transmission-line-pulsing technique on electrostatic discharge protection
devices." Proc. of Taiwan EMC Conference. 1999.
iii
Chapter One
Chapter 1
Introduction
Introduction
Chapter One
1|Page
Chapter One
INTRODUCTION
Streetlights are an integral part of any developing locality. They are present
on all major roadways and in the suburbs too. Every day, streetlights are powered
from sunset to sunrise at full strength, even when there is no one around. On a
global scale, millions of dollars are spent each day on these street lights to provide
the required electrical energy. The maintenance and replacement costs of
conventional incandescent bulbs are immense. They consume a lot of electric
power to function and their heat emissions are also quite high. All of this
contributes to greater demand of electricity production and consequently, more
carbon dioxide emissions from powerhouses. So, along with unnecessary light
pollution, this practice causes damage to our planet too.
A simple and effective solution to this would be dimming the lights during
off peak hours. Whenever presence is detected, the lights around it will glow at
the normal (bright) mode. This would save a lot of energy and also reduce cost of
operation of the streetlights.
2|Page
Chapter Two
Chapter 2
Arduino Microcontroller
Arduino Microcontroller
Chapter Two
3|P age
Chapter Two
This system provides sets of digital and analog I/O pins that can interface to
various expansion boards (termed shields) and other circuits. The boards feature
serial communication interfaces, including Universal Serial Bus (USB) on some
models, for loading programs from personal computers. For programming the
microcontrollers, the Arduino project provides an integrated development
environment (IDE) based on a programming language named Processing, which
also supports the languages C and C++.
4|P age
Chapter Two
UNO NANO
MEGA
5|P age
Chapter Two
The Arduino Uno is used in this project for the following reasons:
The Uno is the most common board and the one labeled as the classic
Arduino. This board comes with everything new users need to learn about the
electronics and programming required to start this hobby. It is compatible with
most available Arduino shields. This is shown in Figure 2.2.
6|P age
Chapter Two
Download the Arduino Software package for the operating system of the
PC. The Arduino installation file can be found from the Arduino download
page. After downloading and installing the application successfully the user
should see the Arduino window as shown below.
7|P age
Chapter Two
Then select the type of Arduino wanted in the program, because in this
project the Arduino UNO is used, the Arduino UNO is chosen from the selection
menu shown in Figure 2.5.
8|P age
Chapter Two
9|P age
Chapter Two
The code for Arduino is written in C++.Every code needs two type
functions, setup ( ) and loop ( ).
The setup ( ) function is ran once at the just after the Arduino is powered
up.in this function we write the pin mode configuration (input or output).
10 | P a g e
Chapter Two
11 | P a g e
Chapter Two
After that connect the Arduino to the computer through USB cable to
upload the program to the Arduino.
Finally, upload the code to the Arduino by the option upload as shown
below.
12 | P a g e
Chapter Three
Chapter 3
Hardware Components
Hardware Components
Chapter Three
13 | P a g e
Chapter Three
3.1 Dimmer
14 | P a g e
Chapter Three
The rate which C2 charges determinates the point on 220VAC sine wave
where it reaches the breakdown voltage of DIAC. So, slow C2 charging means
that the DIAC conducts at the end of AC period and fast C2 charging means that
DIAC conducts at the beginning of AC sine.
Note: that C1 and L1 represent as snapper circuit used to prevent the spark of the
TRIAC switching.
15 | P a g e
Chapter Three
16 | P a g e
Chapter Three
This is a circuit which can detect any motion or movement. It's most
common use is to detect a person moving through an area where the motion
detector can sense. For example, the motion detector may be placed near a door,
so that if any person passes through this doorway, the motion detector will be
triggered.
The main electronic component we will use that allows us to pick up this
detection is the PIR motion sensor. The PIR motion sensor is a sensor which
detects movement through picking up infrared waves. Being that a person emits
infrared waves, the detector is able to detect these waves and react, and according
to the how the circuit is designed to react. The sensor can also pick up the
movement of inanimate objects as well, such a rolling ball, because as those
objects move, friction acts on them, generating heat. This heat emits infrared
radiation, which the PIR sensors may be able to detect if great enough. The PIR
motion sensor is, again, a sensor which can detect movement through picking up
infrared radiation. Being that people naturally give off radiation, because of our
generated body heat, the motion can easily detect people walking and moving
through a vicinity within the sensor's range.
17 | P a g e
Chapter Three
The best way to check its sensitivity is when the circuit is built, try moving
around through all of its angles. See at which angles it can detect your movement
and at which angles it is not able to detect your movement, meaning you’re out
of its angle scope. A lot of it is trial and error and experimenting. Once you know
where it can and cannot detect, you can place it in an optimal place where it can
detect in areas where you want it to.
The PIR motion sensor is a 3-pin device. Below is the pin out of this device:
18 | P a g e
Chapter Three
Pin 1 is the pin which receives the positive DC voltage. The PIR motion
sensor needs between 5V-9VDC of power for operation. In our case, we will use
about 6V of power. This can be obtained from switching a DC power supply to
6V or using 4 'AA' batteries connected in series. We will then feed this voltage
into pin 1 of the PIR module. Pin 3 is the negative DC voltage or ground pin of
the device. We connect the negative terminal of the power source to this pin, for
a return path. Pin 2 is the Output pin of the PIR module. This is where the output
of the PIR will leave from. When motion is detected by the PIR, its output will
go high to 3V.
When no motion is detected, its output low and it gives off practically no
voltage. When high you can see then how it can power a load, such as an LED to
light. This way we can know when it has detected motion or not.
Pin 2 is the Output pin of the PIR module. This is where the output of the
PIR will leave from. When motion is detected by the PIR, its output will go high
to 3V. When no motion is detected, its output low and it gives off practically no
voltage. When high you can see then how it can power a load, such as an LED to
light. This way we can know when it has detected motion or not.
19 | P a g e
Chapter Three
1. Normally-Open (NO): The circuit is disconnected i.e. open when the relay
is inactive.
2. Normally-Closed (NC): The circuit is connected i.e. closed when the relay
is inactive.
20 | P a g e
Chapter Three
As shown Figure 3.7, in normally case (no voltage applied to relay) pin 3
is connect to pin 2 and pin 6 is connect to pin 7.
When a voltage (5V) applied to the relay then pin 3 is connect to pin 4
and pin 6 is connect to pin 5.
21 | P a g e
Chapter Three
Features
Very Compact Size
Contact Capacity to 2A
Low Power Consumption Coil
Specifications
Coil Data
Coil Power: 200mW
Nominal Voltage: 5Vdc
Pick-Up Voltage: 3.75Vdc
Drop-Out Voltage: 0.5Vdc
Maximum Voltage: 10.0Vdc
Coil Resistance: 125ohm
Contact Data
Contact Rating: 1A 125Vac / 2A 30Vdc
Maximum Switching Voltage: 250Vac / 220Vdc
Maximum Switching Current: 2 A
Maximum Switching Power: 125VA / 60W
22 | P a g e
Chapter Three
They are also called as photo conductors, photo conductive cells or simply
photo cells. They are made up of semiconductor materials having high resistance.
There are many different symbols used to indicate a LDR, one of the most
commonly used symbol is shown in the figure below. The arrow indicates light
falling on it.
23 | P a g e
Chapter Three
Characteristics of LDR
24 | P a g e
Chapter Three
25 | P a g e
Chapter Four
Chapter 4
Project Implementation
Project Implementation
Chapter Four
26 | P a g e
Chapter Four
3. Connect the other side of relay to power source (AC 220 volte) so the
relay will be in series with the dimmer and the bulb as shown below.
27 | P a g e
Chapter Four
5. Connect the pin controller of the each relay to Arduino micro controller
as shown below.
28 | P a g e
Chapter Four
7. Put the motion detection sensor near each bulb as shown below.
29 | P a g e
Chapter Four
8. Connect one side of the LDR sensor to voltage source (DC 5V from
Arduino) and connect the other side to resistor (56K ohms) and connect the
resistor to ground and then connect the common terminal to the Arduino as
shown below.
Note: Make sure that the LDR is in proper place so it can sensitize the light.
30 | P a g e
Chapter Four
In this way the entire project will need only one power source (220V AC)
and not need any other source like battery.
31 | P a g e
Chapter Four
11. Program this code to the Arduino (note that this code is used for three bulbs
only)
void setup() {
void loop() {
if(digitalRead(3)==LOW) // Night-time
32 | P a g e
Chapter Four
if(digitalRead(3)==HIGH) // Morning-time
33 | P a g e
Chapter Four
34 | P a g e
Chapter Four
After making all connection the project is ready to operate. If there is light
(morning-time) the LDR sensor will send signal to the arduion and then the
Arduino will send signal to the series relay to open the circuit so no current will
flow to the bulb (the series relay will behave as circuit breaker ).
If there is no light (night-time) the Arduino will send signal to the series relay to
close the circuit and then the current will flow to the bulb. In the other way if
there is no motion near the bulb the Arduino will send signal to the parallel relay
to inter the dimmer to the circuit and then the voltage on the bulb will reduce and
the bulb will get dim. If there is motion near the bulb the motion sensor will send
signal to the Arduino and then the Arduino will send signal to the parallel relay
to make short circuit on the dimmer and make it out of the circuit so the all voltage
will be on the bulb and the bulb will operate in full brightness.
35 | P a g e
Chapter Five
Chapter 5
Conclusion
Conclusion
Chapter Five
36 | P a g e
Chapter Five
5.1 Conclusion
37 | P a g e