Chapter-1
Chapter-1
1. Chapter-1
1.1 Introduction
High intensity discharge lamp (HID) presently used for urban street light are based on
principle of gas discharge, thus the intensity is not controllable by any voltage reduction
method as the discharge path is broken. White Light Emitting Diode (LED) based lamps are
soon replacing the HID lamps in street light. Sensors used on either sides of the road send
logic commands for the LEDs at the output to get glowing for a patch ahead. Intensity
control is also possible by pulse width modulation based on sensing the movement and
density of vehicles. The pulse width becomes very narrow on sensing no movement of
vehicles. As the vehicle moves forward, the intensity goes on increasing for few lights
ahead, and as it passes away the intensity goes on falling. Thus this way of dynamically
changing intensity or off to on helps in saving a lot of energy.
In this project we are going to design a power efficient street light system which
according to the physical environment is on and off that time basis. In the day time all the
streets light are off. In the evening time all the street light are on and in the night the street
light are managed as per the vehicle arrival. In this we have designed one lane system.
However this can be implemented for two lane system also.
2
1.3 Working
1. First of all we have to take some components like resistors, LEDs, LDR sensors,
transistors12v battery, connecting wires of battery and connecting wire.
2. In the first step we take 2 transistor and then we joint two lead(emitter and collector) by
soldering them.
5. Then we are connect LDR. The LDR sensor is used to sense day or night. Thus we are
connect LDR leads to transistors b leads.
6. In the next step we connect LEDs in the project. The LEDs has two leads. The LED is
connect to both the transistor (transistors A and transistor B).
7. In the last step we are going to connect 12v d.c. battery. The battery is connect to both
the collector leads of the transistors.
4
2. Chapter-2
2.1 Coding
void main()
{
start:
p0=0x00;
i=0;
while(1)
{
if(p2_0==0)
{
i=1;
p0=0x01;
}
while(i>0)
{
if(p1_0==0)
p0=0x02;
if(p1_3==0)
p0=0x10;
if ((p1_0==0)&&(p1_1==0))
p0=0x06;
if ((p1_0==0)&&(p1_2==1))
p0=0x0a;
if ((p1_0==0)&&(p1_3==0))
p0=0x12;
if ((p1_2==1)&&(p1_1==0))
p0=0x0c;
if ((p1_1==0)&&(p1_3==0))
p0=0x14;
if ((p1_2==1)&&(p1_3==1))
p0=0x18;
if ((p1_2==1)&&(p1_1==0)&&(p1_3==0))
p0=0x1c;
if ((p1_2==1)&&(p1_1==0)&&(p1_0==0))
p0=0x0e;
if ((p1_0==0)&&(p1_1==0)&&(p1_3==0))
p0=0x16;
if ((p1_2==1)&&(p1_3==0)&&(p1_0==0))
p0=0x1a;
if ((p1_2==1)&&(p1_3==0)&&(p1_0==0)&&(p1_1==0))
p0=0xff;
if(p2_0==1)
goto start;
}
}
}
1
5
2.2 Testing
5.Make sure that all the connections of the circuit should be righted.
3. Chapter-3
3.1 Accessories
3.1.1 Battery
This is 9V D.C. battery. This is supply source of ours LEDs. This is a battery that
gives 9V D.C. Voltage. The 9V battery or 9V battery is a common size of battery that was
introduced radios. It has a rectangular prism shape with rounded edges and a polarized
snap connector at atop. This is commonly used in walkie-talkies, clocks, smoke detectors
and automatic street light project.
Most nine-volt alkaline batteries are constructed of six individual 1.5 V LR61 Cells
enclosed in a wrapper. There cells are slightly smarter than LR8D425 AAAA cells and can
be used in their place for some devices even though they are 3.5 mm shorter.
7
3.1.2 SWITCHES
The most familiar form of switch is a manually operated electromechanical device with
one or more sets of electrical contacts, which are connected to external circuits. Each set of
contacts can be in one of two states: either "closed" meaning the contacts are touching and
electricity can flow between them, or "open", meaning the contacts are separated and the
switch is non-conducting. The mechanism actuating the transition between these two states
(open or closed) can be either a "toggle" (flip switch for continuous "on" or "off") or
"momentary" (push-for "on" or push-for "off") type.
Automatically operated switches can be used to control the motions of machines, for
example, to indicate that a garage door has reached its full open position or that a machine
tool is in a position to accept another work piece. Switches may be operated by process
variables such as pressure, temperature, flow, current, voltage, and force, acting as sensors
in a process and used to automatically control a system. For example, a thermostat is a
temperature-operated switch used to control a heating process. A switch that is operated by
another electrical circuit is called a relay. Large switches may be remotely operated by a
motor drive mechanism. Some switches are used to isolate electric power from a system,
providing a visible point of isolation that can be padlocked if necessary to prevent
accidental operation of a machine during maintenance, or to prevent electric shock.
An ideal switch would have no voltage drop when closed, and would have no limits on
voltage or current rating. It would have zero rise time and fall time during state changes,
and would change state without "bouncing" between on and off positions.
Practical switches fall short of this ideal; they have resistance, limits on the current and
voltage they can handle, finite switching time, etc. The ideal switch is often used in circuit
analysis as it greatly simplifies the system of equations to be solved, however this can lead
to a less accurate solution. Theoretical treatment of the effects of non-ideal properties is
required in the design of large networks of switches, as for example used in telephone
exchanges.
Micro-switch: This is small switch for interconnection. It has 4 terminals with 2 in pair
already connected .when you press the switch all four get connected.
Figure 3.2
MICRO SWITCH
9
Figure 3.3
POWER SWITCH
Toggle switch: A toggle switch is a class of electrical switches that are manually actuated
by a mechanical lever, handle, or rocking mechanism. This is a two state switch that is not
connected, and connected. It remains in the state till not forced again to change the state.
DPDT switch: A DPDT switch is a class of electrical switches that are manually actuated
by a mechanical rocking mechanism. This is a three state switch that is not connected,
connected to one and connected to second. It remains in the state till forced in that
particular state els4e goes to normal state.
3.1.3 Adapters
The adapters are the device that has inbuilt circuitry for converting the 230V AC in to
desired DC like +5V adapter, +12V adapter, +9V adapter and many more. This consists of
inbuilt circuit for HIGH AC to low voltage DC conversion.
Figure 4 ADAPTERS
3.1.4 Connectors
Connectors are wire connection and interface to connect two different points. It has
different configuration like 2- pin connector, 3 -pin connector, 4- pin connector and many
more
Figure 5 CONNECTORS
Compared to domestic AC power plugs and sockets, DC connectors have many more
standard types that are not interchangeable.
3.2.1 Resistances
3.2.1.1 Introduction
internal resistance.
• This internal resistance is usually drawn into a circuit diagram (schematic) as shown in
Figure 1.
12
• Notice the squiggly line just before the positive terminal of the battery? That’s to show
the internal resistance of the circuit.
• That symbol, drawn any other place in the circuit, represents an actual resistor placed in
the circuit.
• A resistor is a device found in circuits that has a certain amount of resistance. Why would
you ever want to add resistance to a circuit by using a resistor?
• The most common reason is that we need to be able to adjust the current flowing through
a particular part of the circuit.
• If voltage is constant, then we can change the resistor to change the current. I=V R If “V”
is constant and we change “R”, “I” will be different.
Figure 7.1
Figure 7.2
RESISTANCE
14
The watt rating for any resistors is very important factor. It defines that how much
current can flow across the resistor at particular voltage without damaging the resistor.
According to the watt rating the thickness of the resistor varies. Now we have to take in
consideration how much current is going to flow across the resistor and depending upon
the rating we can calculate the power or wattage rating of the resistor. Because of this
reason only the resistors having same value come in different wattages like 100ohm,
1/4watt (quarter watt), 100ohm, 1/2watt (half watt), 100ohm, 1watt and many more.
3.2.2 LED
3.2.2.1 Introduction
A light-emitting diode (LED) is a semiconductor light source. LEDs are used as indicator
lamps in many devices and are increasingly used for other lighting. Appearing as practical
electronic components early LEDs emitted low-intensity red light, but modern versions are
available across the visible, ultraviolet, and infrared wavelengths, with very high
brightness.
energy of the photon) is determined by the energy gap of the semiconductor. A LED is
often small in area (less than 1 mm2), and integrated optical component
Symbol 01
LED SYMBOL
may be used to shape its radiation pattern. LEDs present many advantages over
incandescent light sources including lower energy consumption, longer lifetime, improved
physical robustness, smaller size, and faster switching. LEDs powerful enough for room
lighting are relatively expensive and require more precise current and heat management
than compact fluorescent lamp sources of comparable output.
3.2.2.2 Applications
16
In general, all the LED products can be divided into two major parts, the public lighting
and indoor lighting. LED uses fall into four major categories:
Visual signals where light goes more or less directly from the source to the human
eye, to convey a message or meaning.
Illumination where light is reflected from objects to give visual response of these
objects.
Measuring and interacting with processes involving no human vision.
Narrow band light sensors where LEDs operate in a reverse-bias mode and respond
to incident light, instead of emitting light
3.2.3 Transistors
A transistor is a semiconductordevice used
to amplify or switch electronic signalsand electrical power. It is composed
of semiconductor material usually with at least three terminals for connection to an
external circuit. A voltage or current applied to one pair of the transistor's terminals
17
controls the current through another pair of terminals. Because the controlled
(output) power can be higher than the controlling (input) power, a transistor can amplify a
signal. Today, some transistors are packaged individually, but many more are found
embedded in integrated circuits.
There is a kind of transistors which produce current flow depending on the amount of light shined
upon them, those are known as phototransistors.
Bipolar Junction Transistors(BJT) can cause a greater current flow from the emitter
to collector when a small amount of current is passed through the base.
Heterojunction Bipolar Transistors (HBT) can provide faster switching speeds and
is used in analog and digital microwave applications. They are priceless to fabricate
and can provide better lithographic yield. They are used in mobile and laser drivers
as power amplifiers.
.
18
Figure 9 TRANSISTOR
3.2.4 Capacitors
3.2.4.1 Introduction
19
The function of capacitors is to store electricity, or electrical energy. The capacitor also
functions as filter, passing AC, and blocking DC. The capacitor is constructed with two
electrode plates separated by insulator. They are also used in timing circuits because it
takes time for a capacitor to fill with charge. They can be used to smooth varying DC
supplies by acting as reservoir of charge.
The capacitor's function is to store electricity, or electrical energy. The capacitor also
functions as a filter, passing alternating current (AC), and blocking direct current (DC).
This symbol ( )is used to indicate a capacitor in a circuit diagram. The capacitor is
constructed with two electrode plates facing each other but separated by an insulator.
Figure 10 CAPACITOR
20
3.2.5 Diode
3.2.5.1 Introduction
A device having two terminals and has a low resistance to electrical current in one
direction and a high resistance in the other direction. Diode is a two-element device which
passes a signal in one direction only. They are used most commonly to convert AC to DC,
because they pass the positive part of the wave, and block the negative part of the AC
signal, or, if they are reversed, they pass only the negative part and not the positive part.
SYMBOL NO. 03
DIODE SYMBOL
The device at the bottom of the picture is a voltage regulation diode with a rating of 6V.
When this type of diode is reverse biased, it will resist changes in voltage. If the input
voltage is increased, the output voltage will not change. (Or any change will be an
insignificant amount.) While the output voltage does not increase with an increase in input
voltage, the output current will.
21
This requires some thought for a protection circuit so that too much current does not
flow. The rated current limit for the device is 30 mA. Generally, a 3-terminal voltage
regulator is used for the stabilization of a power supply. Therefore, this diode is typically
used to protect the circuit from momentary voltage spikes. 3 terminal regulators use
voltage regulation diodes inside.
3.2.5.2 Featurs
PCBs are inexpensive, and can be highly reliable. They require much more layout effort
and higher initial cost than either wire-wrapped or point-to-point constructed circuits, but
are much cheaper and faster for high-volume production. Much of the electronics
industry's PCB design, assembly, and quality control needs are set by standards that are
published by the IPC organization.
Printed Circuit Boards are primarily an insulating material used as base, into which
conductive strips are printed. The base material is generally fiberglass, and the conductive
connections are e generally copper and are made through an etching process. The main
PCB board is called the motherboard; the smaller attachment PCB boards are called
daughter boards or daughter cards
3.2.7.1 Introduction
23
Voltage regulator ICs are available with fixed (typically 5, 12 and 15V) or variable
output voltages. The maximum current they can pass also rates them. Negative voltage
regulators are available, mainly for use in dual supplies. Most regulators include some
automatic protection from excessive current (over load protection) and over-heating
(thermal protection). Many of fixed voltage regulator ICs has 3 leads. They include a hole
for attaching a heat sink if necessary.
3.2.7.2 Features
3.2.8 LDR
3.2.8.1 Introduction
Figure 13 LDR
3.2.8.2 Applications
Photoresistors can be placed in streetlights to control when the light is on. Ambient
light falling on the photoresistor causes the streetlight to turn off. Thus energy is
saved by ensuring the light is only on during hours of darkness.
3.2.9.1 Introduction
The essential feature of a diode bridge is that the polarity of the output is the same
regardless of the polarity at the input. The diode bridge circuit is also known as the Graetz
circuit after its inventor, physicist Leo Graetz.
In the diagrams below, when the input connected to the left corner of the diamond
is positive, and the input connected to the right corner is negative, current flows from the
upper supply terminal to the right along the red (positive) path to the output, and returns to
the lower supply terminal via the blue (negative) path.
In each case, the upper right output remains positive and lower right output negative.
Since this is true whether the input is AC or DC, this circuit not only produces a DC output
from an AC input, it can also provide what is sometimes called "reverse polarity
protection".
DIODE BRIDGE
A soldering iron is composed of a heated metal tip and an insulated handle. Heating is
often achieved electrically, by passing an electric current (supplied through an electrical
cord or battery cables) through a resistive heating element. Cordless irons can be heated by
combustion of gas stored in a small tank, often using a catalytic heater rather than a flame.
Simple irons less commonly used today than in the past were simply a large copper bit on a
handle, heated in a flame.
Soldering irons are most often used for installation, repairs, and limited production
work in electronics assembly. High-volume production lines use other soldering methods.
[1]
Large irons may be used for soldering joints in sheet metal objects. Less common uses
include pyrography (burning designs into wood) and plastic welding.
Simple Iron
For electrical and electronics work, a low-power iron, a power rating between 15 and
35 watts, is used. Higher ratings are available, but do not run at higher temperature; instead
there is more heat available for making soldered connections to things with large thermal
capacity, for example, a metal chassis.[2] Some irons are temperature-controlled, running at
a fixed temperature in the same way as a soldering station, with higher power available for
29
joints with large heat capacity. Simple irons run at an uncontrolled temperature determined
by thermal equilibrium; when heating something large their temperature drops.
3.2.11 Battery
This is 9V D.C. battery. This is supply source of ours LEDs. This is a battery that
gives 9V D.C. Voltage. The 9V battery or 9V battery is a common size of battery that was
introduced radios. It has a rectangular prism shape with rounded edges and a polarized
snap connector at atop. This is commonly used in walkie-talkies, clocks, smoke detectors
and automatic street light project.
Most nine-volt alkaline batteries are constructed of six individual 1.5 V LR61 Cells
enclosed in a wrapper. There cells are slightly smarter than LR8D425 AAAA cells and can
be used in their place for some devices even though they are 3.5 mm shorter.
3.2.12 Wires
A wire is a single, usually cylindrical, flexible strand or rod of metal. Wires are used to
bear mechanical loads or electricity and telecommunications signals. Wire is commonly
formed by drawing the metal through a hole in a die or draw plate. Wire gauges come in
various standard sizes, as expressed in terms of a gauge number. The term wire is also used
more loosely to refer to a bundle of such strands, as in "multistranded wire", which is more
correctly termed a wire rope in mechanics, or a cable in electricity.
Wire comes in solid core, stranded, or braided forms. Although usually circular in
cross-section, wire can be made in square, hexagonal, flattened rectangular, or other cross-
sections, either for decorative purposes, or for technical purposes such as high-
efficiency voice coils in loudspeakers. Edge-wound[1] coil springs, such as the Slinky toy,
are made of special flattened wire.
Figure 17 WIRES
31
1. First of all we have to take some components like resistors, LEDs, LDR sensors,
transistors, 12v battery, connecting wires of battery and connecting wire.
2. In the first step we take 2 transistor and then we joint two lead(emitter and collector) by
soldering them.
3. Then we are connect resistance R1 to transistor B base and resistance R2 to transistor B
collector.
4. In the next step we connect transistor A base to transistor B collector.
5. Then we are connect LDR. The LDR sensor is used to sense day or night. Thus we are
connect LDR leads to transistors b leads.
6. In the next step we connect LEDs in the project. The LEDs has two leads. The LED is
connect to both the transistor (transistors A and transistor B).
7. In the next step we are going to connect 12v d.c. battery. The battery is connect to both
the
collector leads of the transistors
8. In the last step then we connect the cap to the 9 volt battery. Then the supply is on. So
we
are going to activate system.
9. Thus we see that automatic street light system is on and we are going to test that system.
10.Thus we see that there is no more consumption and less wastage of energy.
32
4. Conclusion
In this project we have studied and implemented a complete working model using a
LDR sensor. The programming and interfering anf LDR sensor has been mastered during
the implementation. This work includes the study of energy system im many applications.
In this project we are done to design a power efficient street light system which
according to the physical environment in on and off that time basis. In the day time all the
streets lights are off. In the evening time all the street light are on and in the night the street
light are managed as pe rthe vehicle arrival. In this we have designed one lane system.
However this can be implememted for two lane system also.
33
1. In the street light power consumption is very high. So by the project we have
less power consumption.
2. To reduce the wastage of electricity. In the project we have a idea of consuming
less electricity.
3. By the project of street light we can save a large amount of energy.
4. The automatic street light is fully automatic control. This is project the manuly
operations are very less.
5. This project is fully automatic. Thus we are no more require of man power.
6. Through this project we save more energy as well as more power.
7. In future the manually operated street light become very less because the
automatic
street light are used everywhere.
8. In future the automatic street light is used everywhere because it use less power,
less energy and reduces the wastage of energy.
34
6. Advantages
7. Disadvantages
8. Applications
1. Photo resistors have many uses, most of which involves detecting the presences of
light.
2. Street light used photo resisters to detect whether it is day or night and turn the lights
on and off accordingly.
3. photo resisters are also used in digital cameras to detect how much light camera sees
and adjest picture quality accordingly.
4. They are used in some clocks, alarms and some other electronic devices that are semi
dependent on sunlight.
5. This project is fully automatic. Thus we are no more require of man power.
6. Through this project we save more energy as well as more power.
7. In future the manually operated street light become very less because the automatic
street light are used everywhere.
8. In future the automatic street light is used everywhere because it use less power, less
energy and reduces the wastage of energy.
36
9. Appendix
#PIN define…
#define Fan1 RA1_bit
#define Fan2 RA2_bit
#define Zero RA0_bit
#define Plus_button RC0_bit
#define minus_button RA3_bit
#define Switch1 RC2_bit
#define Switch2 RC3_bit
#define LED1 RC4_bit
#define LED2 RC5_bit
#define LED3 RA4_bit
#define LED4 RA5_bit
#define LDR RA5_bit
#global variables
Unsigned int current=5
Unsigned int ch_cnt=0
Unsigned short Lamp1,Lamp2;
Unsigned int auto_mode,intensity;
Unsigned int auto_cnt;
Unsigned int adc_rd;
Unsigned short mode=0;
Void Ato_Mode(void);
Void Manual_Mode(void);
37
10. References
10. www.atmel.com,www.beyondlogic.org,www.wikipedia.org,www.howstuffwo
rks.com, www.alldatasheets.com, www.wikipedia.com.