Report
Report
Report
1 INTRODUCTION .......................................................................................................................... 1
2 SYSTEM DESIGN ......................................................................................................................... 2
3 HARDWARE .................................................................................................................................. 4
3.1 POWER SUPPLY ........................................................................................................................ 4
3.1.1 TRANSFORMER ..................................................................................................................... 4
3.1.2 RECTIFIER.............................................................................................................................. 5
3.1.3 VOLTAGE REGULATOR ........................................................................................................ 8
3.2 IR PROXIMITY SENSOR......................................................................................................... 10
3.3 RTC (Real Time Clock) ............................................................................................................. 11
3.4 LDR ............................................................................................................................................ 13
3.5 PIC MICRO CONTROLLER .................................................................................................... 15
4 SOFTWARE .................................................................................................................................. 22
4.1 mikroC PRO for PIC .................................................................................................................. 22
4.2 PICkit 2 v2.61............................................................................................................................. 23
5 WORKING OF THE PROJECT ............................................................................................. 26
6 TERMINOLOGY......................................................................................................................... 28
6.1 TERMS RELATING TO LIGHTING INSTALLATION ......................................................... 28
6.2 PHOTOMETRIC TERMS ......................................................................................................... 28
6.3 ILLUMINATION REQUIREMENTS OF ROADS .................................................................. 29
7 ADVANTAGES ............................................................................................................................ 30
8 APPLICATIONS .......................................................................................................................... 31
9 CONCLUSION AND SCOPE FOR FUTURE WORK....................................................... 32
REFERENCES
APPENDICES
INTRODUCTION
CHAPTER 1
INTRODUCTION
Lighting systems are an important facility of cities, increasing the safety of road traffic
participants on the one hand, and pedestrian’s sense of security on the other. A constant lighting
is the best solution in busy areas; however, it is definitely not in rural residential areas. In the
former case, a lot of people are walking around all night long, moving from their workplace or
a shopping tour to restaurants, cinemas. In the latter case, however, only a low number of
residents and passersby using the streets during the night, coming from their work and moving
to their homes (or the other way round). In such a scenario, the temporal need for lighted streets
are, in relation to a continuous illumination of streets, often incredibly small. As energy
consumption (or CO2 emission) is an issue of increasing interest, possible energy savings in
public street lighting systems are recently discussed from different viewpoints. With the
proposal of Smart Street Lighting System, the research focus followed in this work is twofold:
First, it recommends the application of improvements in light technology (e.g. the usage of
light-emitting diode (LED)’s instead of common light bulbs), and second, it introduces an
efficient, user-centered street lamp switching system. The potential for saving energy is quite
large, but relatively easy to exploit. Simply replacing common bulbs with energy saving LED
lamps can reduce energy consumption by up to 80 percent. A timely switching of street lights
according to pedestrians personal requests can add further energy savings.
CHAPTER 2
SYSTEM DESIGN
The system consists 5 IR sensors (4 sensors for the detection of vehicles and pedestrians
& 1 sensor for counting the frequency of the vehicles & pedestrians), RTC (Real Time Clock),
3 Led lamps and Zigbee transmitter interfaced with the microcontroller. The 1st IR sensor will
be at a certain distance from the first street light. The 2nd IR sensor is placed in between the 1st
and 2nd street lights. The 3rd IR sensor is placed between the 2nd and 3rd street lights and finally
the 4th IR sensor is placed at a certain distance away from 3rd street light.
The microcontroller used here is PIC16F877A. There is one more IR sensor used to
count the frequency of vehicles/pedestrians. There is an LDR under each street light for the
purpose of fault detection. Through Zigbee the values of frequency count of the
vehicles/pedestrians & operating condition of street lights are transmitted.
At the receiving end, the values sent from Zigbee transmitter is received by the Zigbee
receiver and finally displayed in the PC through GUI.
CHAPTER 3
HARDWARE
3.1 POWER SUPPLY
All digital circuits require regulated power supply. The block diagram of the regulated
power supply is shown below.
3.1.1 TRANSFORMER
A transformer consists of two coils also called as windings, namely primary &
secondary. They are linked together through inductively coupled electrical conductors also
called as core. A changing current in the primary causes a change in the magnetic field in the
core & this in turn induces an alternating voltage in the secondary coil. If load is applied to the
secondary then an alternating current will flow through the load. Under ideal condition, all the
energy from the primary circuit will be transferred to the secondary circuit through the
magnetic field.
So
The secondary voltage of the transformer depends on the number of turns in the primary as
well as the secondary.
3.1.2 RECTIFIER
When an AC signal is applied to it during the positive half cycle the diode is forward
biased & current flows through it. But during the negative half cycle diode is reverse biased &
no current flows through it. Since only one half of the input reaches the output, it is very
inefficient to be used in power supplies.
Half wave rectifier is quite simple but it is very inefficient, for greater efficiency both
the half cycles of the AC signal are to be used. This can be achieved by using a center tapped
transformer i.e. the size of the secondary winding has to be doubled & connection should be
provided to the center. So during the positive half cycle diode D1 conducts & D2 is in reverse
biased condition. During the negative half cycle diode D2 conducts & D1 is reverse biased.
Thus both the half cycles is obtained across the load.
One of the disadvantages of Full Wave Rectifier design is the necessity of using a center
tapped transformer, thus increasing the size & cost of the circuit. This can be avoided by using
the Full Wave Bridge Rectifier.
3) Bridge rectifier
As the name suggests it converts the full wave i.e. both the positive & the negative half
cycle into DC thus it is much more efficient than Half Wave Rectifier & that too without using
a center tapped transformer thus much more cost effective than Full Wave Rectifier. Full
Bridge Wave Rectifier consists of four diodes namely D1, D2, D3 and D4. During the positive
half cycle diodes D1 & D4 conduct whereas in the negative half cycle diodes D2 & D3 conduct
thus the diodes keep switching the transformer connections so as to get positive half cycles in
the output.
If a center tapped transformer is used for a bridge rectifier, both the positive & negative
half cycles are obtained which can thus be used for generating fixed positive & fixed negative
voltages.
A Voltage regulator is a device which converts varying input voltage into a constant
regulated output voltage. Voltage regulator can be of two types
1) Linear Voltage Regulator - Also called as Resistive Voltage regulator because they
dissipate the excessive voltage resistively as heat.
2) Switching Regulators.
They regulate the output voltage by switching the Current ON/OFF very rapidly. Since
their output is either ON or OFF it dissipates very low power thus achieving higher efficiency
as compared to linear voltage regulators. But they are more complex & generate high noise
due to their switching action. For low level of output power switching regulators tend to be
costly but for higher output wattage they are much cheaper than linear regulators.
The most commonly available Linear Positive Voltage Regulators are the 78XX series where
the XX indicates the output voltage. And 79XX series is for Negative Voltage Regulators.
After filtering the rectifier output the signal is given to a voltage regulator. The
maximum input voltage that can be applied at the input is 35V. Normally there is a 2-3 Volts
drop across the regulator so the input voltage should be at least 2-3 Volts higher than the output
voltage. If the input voltage gets below the Vmin of the regulator due to the ripple voltage or
due to any other reason the voltage regulator will not be able to produce the correct regulated
voltage.
Circuit diagram of a regulated power supply is shown above. The 230V AC from the
main supply is fed to the primary of the transformer, 12V AC is obtained as an output. Then
the output of transformer is fed to bridge rectifier where the ac signal is converted in to 12V
DC. The capacitor C1 present at the output of the rectifier reduces the ripple present in the dc
signal. Then this signal is fed to IC 7805 (regulator) where 12V DC signal is converted to 5V
DC. The capacitor C2 present at the output of IC 7805 maintains the output level constant at
5V DC.
A typical system for detecting infrared radiation using infrared sensors includes the
infrared source such as blackbody radiators, tungsten lamps, and silicon carbide. In case of
active IR sensors, the sources are infrared lasers and LED’s of specific IR wavelengths. Next
is the transmission medium used for infrared transmission, which includes vacuum, the
atmosphere, and optical fibers.
Thirdly, optical components such as optical lenses made from quartz, CaF2, Ge and Si,
polyethylene Fresnel lenses, and Al or Au mirrors, are used to converge or focus infrared
radiation. Likewise, to limit spectral response, band-pass filters are ideal.
Finally, the infrared detector completes the system for detecting infrared radiation. The
output from the detector is usually very small, and hence pre-amplifiers coupled with circuitry
are added to further process the received signals.
Real time clock counts seconds, minutes, hours, date of the month, month, day of the
week, and year with leap year compensation valid up to 2100.
56 byte nonvolatile RAM for data storage.
2-wire serial interface.
GND - Ground
3.3.4 DESCRIPTION
The DS1307 Serial Real Time Clock is a low power, full BCD clock/calendar plus 56
bytes of nonvolatile SRAM. Address and data are transferred serially via a 2-wire bi-
directional bus. The clock/calendar provides seconds, minutes, hours, day, date, month, and
year information. The end of the month date is automatically adjusted for months with less
than 31 days, including corrections for leap year. The clock operates in either the 24-hour or
12-hour format with AM/PM indicator.
3.3.5 OPERATION
The DS1307 operates as a slave device on the serial bus. Access is obtained by
implementing a START condition and providing a device identification code followed by a
register address. Subsequent registers can be accessed sequentially until a STOP condition is
executed. When VCC falls below 1.25 x VBAT the device terminates an access in progress
and resets the device address counter. When VCC falls below VBAT the device switches into
a low current battery backup mode. Upon power up, the device switches from battery to VCC
when VCC is greater than VBAT +0.2V and recognizes inputs when VCC is greater than 1.25
x VBAT.
3.4 LDR
Light Dependent Resistor (LDR) also known as photoconductor or photocell, is a
device which has a resistance which varies according to the amount of light falling on its
surface. Since LDR is extremely sensitive in visible light range, it is well suited for
the proposed application.
The Light Dependent Resistor (LDR) is made using the semiconductor Cadmium
Sulphide (CdS).The light falling on the brown zigzag lines on the sensor causes the
resistance of the device to fall. This is known as a negative co-efficient. There are some
LDR’s that work in the opposite way i.e. their resistance increases with light (called positive
co- efficient). The resistance of the LDR decreases as the intensity of the light falling
on it increases. Incident photons drive electrons from the valence band into the conduction
band.
An LDR and a normal resistor are wired in series across a voltage, as shown
in the circuit below. Depending on which is tied to the 5V and which to 0V, the voltage
at the point between them, call it the sensor node, will either rise or fall with increasing
light. If the LDR is the component tied directly to the 5V, the sensor node will
increase in voltage with increasing light The LDR's resistance can reach 10k ohms in dark
conditions and about 100 ohms in full brightness. The circuit used for sensing light in
our system uses a 10kΩ fixed resistor which is tied to +5V. Hence the voltage value in
this case decreases with increase in light intensity.
• All single-cycle instructions except for program branches, which are two-cycle.
Peripheral Features:
• Timer1: 16-bit timer/counter with prescaler, can be incremented during Sleep via external
crystal/clock
• Timer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler
• Synchronous Serial Port (SSP) with SPI™ (Master mode) and I2C™ (Master/Slave)
• Parallel Slave Port (PSP) – 8 bits wide with external RD, WR and CS controls (40/44-pin
only)
Analog Features:
(VREF) module
- Programmable input multiplexing from device inputs and internal voltage reference
• Watchdog Timer (WDT) with its own on-chip RC oscillator for reliable operation
3.6 ZIGBEE
ZigBee is a specification for a suite of high level communication protocols used to
create personal area networks built from small, low-power digital radios. ZigBee is based on
an IEEE 802.15 standard. Though low-powered, ZigBee devices can transmit data over long
distances by passing data through intermediate devices to reach more distant ones, creating a
mesh network; i.e., a network with no centralized control or high-power transmitter/receiver
able to reach all of the networked devices. The decentralized nature of such wireless ad hoc
networks make them suitable for applications where a central node cannot be relied upon.
ZigBee is used in applications that require only a low data rate, long battery life, and
secure networking. ZigBee has a defined rate of 250 kbit/s, best suited for periodic or
intermittent data or a single signal transmission from a sensor or input device. Applications
include wireless light switches, electrical meters with in-home-displays, traffic management
systems, and other consumer and industrial equipment that requires short-range wireless
transfer of data at relatively low rates. The technology defined by the ZigBee specification is
intended to be simpler and less expensive than other WPANs, such as Bluetooth or Wi-Fi.
ZigBee networks are secured by 128 bit symmetric encryption keys. In home
automation applications, transmission distances range from 10 to 100 meters line-of-sight,
depending on power output and environmental characteristics.
ZigBee was conceived in 1998, standardized in 2003, and revised in 2006. The name
refers to the waggle dance of honey bees after their return to the beehive.
ZigBee is a low-cost, low-power, wireless mesh network standard. The low cost allows
the technology to be widely deployed in wireless control and monitoring applications. Low
power usage allows longer life with smaller batteries. Mesh networking provides high
reliability and more extensive range. ZigBee chip vendors typically sell integrated radios and
microcontrollers with between 60 KB and 256 KB flash memory.
ZigBee operates in the industrial, scientific and medical (ISM) radio bands: 868 MHz
in Europe, 915 MHz in the USA and Australia and 2.4 GHz in most jurisdictions worldwide.
Data transmission rates vary from 20 kilobits/second in the 868 MHz frequency band to 250
kilobits/second in the 2.4 GHz frequency band.
The ZigBee network layer natively supports both star and tree typical networks, and
generic mesh networks. Every network must have one coordinator device, tasked with its
creation, the control of its parameters and basic maintenance. Within star networks, the
coordinator must be the central node. Both trees and meshes allow the use of ZigBee routers
to extend communication at the network level.
ZigBee builds upon the physical layer and media access control defined in IEEE
standard 802.15.4 (2003 version) for low-rate WPANs. The specification goes on to complete
the standard by adding four main components: network layer, application layer, ZigBee device
objects (ZDOs) and manufacturer-defined application objects which allow for customization
and favor total integration.
Besides adding two high-level network layers to the underlying structure, the most
significant improvement is the introduction of ZDOs. These are responsible for a number of
tasks, which include keeping of device roles, management of requests to join a network, device
discovery and security.
ZigBee is not intended to support powerline networking but to interface with it at least
for smart metering and smart appliance purposes. Because ZigBee nodes can go from sleep to
active mode in 30 ms or less, the latency can be low and devices can be responsive, particularly
compared to Bluetooth wake-up delays, which are typically around three seconds. Because
ZigBee nodes can sleep most of the time, average power consumption can be low, resulting in
long battery life.
3.7 LED
Among other things, they form numbers on digital clocks, transmit information from remote
controls, light up watches and tell you when your appliances are turned on. Collected together,
they can form images on a jumbo television screen or illuminate a traffic light.
Basically, LED’s are just tiny light bulbs that fit easily into an electrical circuit. But
unlike ordinary incandescent bulbs, they don't have a filament that will burn out, and they don't
get especially hot. They are illuminated solely by the movement of electrons in a
semiconductor material, and they last just as long as a standard transistor. The lifespan of an
LED surpasses the short life of an incandescent bulb by thousands of hours. Tiny LED’s are
already replacing the tubes that light up LCD HDTVs to make dramatically thinner televisions.
CHAPTER 4
SOFTWARE
4.1 mikroC PRO for PIC
PIC and C fit together well. PIC is the most popular 8-bit chip in the world, used in a
wide variety of applications, and C, prized for its efficiency, is the natural choice for
developing embedded systems. mikroC PRO for PIC provides a successful match featuring
highly advanced IDE, ANSI compliant compiler, broad set of hard-ware libraries,
comprehensive documentation, and plenty of ready-to-run examples.
4.1.1 FEATURES
mikroC PRO for PIC allows you to quickly develop and deploy complex applications:
Write C source code using the built-in Code Editor (Code and Parameter Assistants,
Code Folding, Syntax Highlighting, Auto Correct, Code Templates, and more.)
Use included mikroC PRO for PIC libraries to dramatically speed up the development:
data acquisition, memory, displays, conversions, communication etc.
Monitor the program structure, variables, and functions in the Code Explorer.
Generate commented, human-readable assembly, and standard HEX compatible with
all programmers.
Use the integrated mikroICD (In-Circuit Debugger) Real-Time debugging tool to
monitor program execution on the hardware level.
Inspect program flow and debug executable logic with the integrated Software
Simulator.
Get detailed reports and graphs: RAM and ROM map, code statistics, assembly listing,
calling tree, and more.
mikroC PRO for PIC provides plenty of examples to expand, develop, and use as
building bricks in the projects.
4.2.1 FEATURES
PICkit 2 Development Programmer/Debugger
44-pin demo board with PIC16F887 Midrange PIC microcontroller
The PIC16F887 may be debugged directly without any additional hardware.
A series of 12 Lessons on assembly programming that cover I/O, A/D converters,
timers, interrupts, and data tables (All source code files are provided)
Easy to use Windows® programming interface for programming Microchip’s Flash
family of microcontrollers
UART Tool software for direct serial communications with a microcontroller RX/TX
pins through the PICkit 2.
Logic Tool software for simple logic signal stimulus and monitoring, with a 3-
channel logic analyzer.
Code Examples in assembly and C
CHAPTER 5
Intensity Variation:
Initially the lights at 6:00 pm is at the maximum, but after 10:00 it should be in the
minimum level. Only when IR Sensor1 is cut the Street light1 intensity goes to the maximum
level but the remaining lights should be in the minimum level. Now when the same person cuts
IR sensor2, Street light1 and Street light2 goes high. When he cuts IR sensor3 Street light2 and
Street light3 goes high. Finally when he cuts IR sensor4 Street light3 goes high.
The IR Sensor is also used to have a count of vehicles that passes through that road and
displayed in the GUI via Zigbee.
On the receiving end information received by the Zigbee is displayed using the GUI. The
parameters displayed are
POWER ON
10 PM TO 6 AM
IR MODULE RTC
TO PC INTERFACE
6 PM T0 10 PM
NO
IS
XBEE
SENSOR
ON? MODULE
PIC16F877A
YES
LDR
CHAPTER 6
TERMINOLOGY
6.1 TERMS RELATING TO LIGHTING INSTALLATION
Lighting installation: The whole of the equipment provided for lighting the highway
comprising the lamps, luminaries and other auxiliaries.
Lighting system: An array of luminaries having characteristic light distribution, sited in a
manner concordant with this distribution.
Luminaire: Housing for one or more lamps, comprising a body and any reflector.
Outreach: The distance measured horizontally between the centre of wall face and the centre
of the luminaire.
Overhang: The distance measured horizontally between the centre of the luminaire mounted
on a bracket and the adjacent edge of the carriageway.
Mounting height: The vertical distance between the centre of the luminaire and the surface of
the carriageway.
Spacing: The distance measured along the centre line of the carriageway, between successive
luminaires in an installation.
CHAPTER 7
ADVANTAGES
The street light monitoring system reduces the energy consumption and gives
considerable energy savings up to 40%. It is the most economical method due to the use of
LED street lights and efficient system design. The other main advantages by using LED street
lights are low power consumption, high reliability and the longer working hours. Maintenance
cost of the system is low. The operation of street lights is automatic, and hence there is no need
of switching on/off the lights every day.
CHAPTER 8
APPLICATIONS
CHAPTER 9
Street light monitoring system can be implemented in areas which will be of very less
traffic during late night. As this system is limited to less number of lights as for now, in future
it can be extended for larger number of lights. Since the overall cost of this system for a
particular area is economical, it can be easily implemented.
REFERENCES
[1] Chen, P.-Y., Liu, Y.-H., Yau, Y.-T. and Lee, H.-C. (2008), “Development of an energy
efficient street light driving system”, IEEE International Conference on Sustainable Energy
Technologies (ICSET 2008), Singapore, 24-27 November, pp. 761-4.
[2] “Street Lighting Engineering”study, Ing. Eberl Street Light Engineering GmbH
[5] www.philips.com