Escolar Documentos
Profissional Documentos
Cultura Documentos
Name of Student ID No
YAREGAL HAILE ETR/475/04
KEFFALE ASRIE ETR/178/04
i
Design and simulation of voltage fluctuation indicator/2008E.C
Name of Student ID No
YAREGAL HAILE ETR/475/04
KEFFALE ASRIE ETR/178/04
ZELALEM BAYESSA……………………………………………………
ABSTRACT
Now a day voltage fluctuation is a series problem in Ethiopia; especially in Assosa
University. In order to avoiding this voltage fluctuation problem throughout the coun-
try; we want to design this project. The power authority needs to be regulating from
the production section to the utilization point in order to achieve smooth running of
electrical appliances. In power production the target is to achieve better efficiency to
both producers and the users of electrical energy.
The equipment shall be protecting from over voltage, under voltage, surges to avoid
frequent tripping of its circuit. The main function of the design device is to monitor
the load voltage constantly for any over voltage or under voltage conditions. When
the AC voltage increases beyond greater than 240v the system is not control through-
out the system is damaged. But when the AC voltage increases through greater than
or equal to 231v, the system operate over voltage condition. For under voltage condi-
tion, when the system voltage is less than 210v, the system to operate or under vol-
tage condition. The quality of power associated problems is voltage sag, surge, flick-
er, voltage imbalance, interruptions and harmonic problems. The quality of power is-
sues may cause problems to the industries ranging from malfunctioning of equip-
ment’s to complete plant shut downs. Electric power quality problem has become an
important problem in modern society, which effects industrial production and product
quality, etc. So, we urgently need monitor and analyze electric power parameter to
solve electric power quality problem. So our project is tried to avoid all the above
problems.
KEYWORD:
i
Design and simulation of voltage fluctuation indicator/2008E.C
DECLARATIONS
I certify that research work titled “design and simulation of voltage fluctuation in-
dicator” is my own work. The work has not been presented elsewhere for assess-
ment. Where material has been used from other sources it has been properly acknowl-
edged. We hereby declare that we have works this project and in our opinion this
project is sufficient in terms of scope and quality for the first degree or BSC thesis.
NAME OF STUDENT ID NO
YAREGAL HAILE ETR/475/04
KEFFALE ASRIE ETR/178/04
ii
Design and simulation of voltage fluctuation indicator/2008E.C
ACKNOWLEDGEMENT
First of all we want to acknowledge Almighty God for giving His blessings, protec-
tion, support, strength, knowledge, and discipline for our to be able to accomplish the
project. Secondly, we would like to thanks our deepest project advisor Zelalem Bayis-
sa, for giving his guidance from starting to ending of our project. And also, we would
like to thanks our co-advisor Instructor Mebratu Allow for giving relevant support.
Finally, we would like to thanks and Electrical and Computer Engineering Depart-
ment (ECE) to give chance to do this BSC thesis or final project, and also all ECE
staff to support our project for finishing successfully. We would like to express our
gratitude to all those who gave us the possibility to complete this BSC thesis or final
project.
iii
Design and simulation of voltage fluctuation indicator/2008E.C
Table of Contents
ABSTRACT................................................................................................................... i
DECLARATIONS ........................................................................................................ ii
ACKNOWLEDGEMENT ........................................................................................... iii
LIST OF FIGURES ..................................................................................................... vi
LIST OF TABLES ...................................................................................................... vii
ABBREVIATIONS .................................................................................................... viii
CHAPTER ONE:INTRODUCTION ............................................................................ 1
1.1 BACKGROUND OF STUDY ........................................................................................ 2
1.2 STATEMENT OF THE PROBLEM ............................................................................... 3
1.3 OBJECTIVES OF THE STUDY .................................................................................... 3
1.3.1 GENERAL OBJECTIVE OF THE PROJECT............................................. 3
1.3.2 SPECIFIC OBJECTIVE OF THE PROJECT .............................................. 3
1.4 SCOPE OF STUDY OF THE PROJECT ........................................................................ 3
1.5 LIMITATION OF THE PROJECT.................................................................................. 4
1.6 THE SIGNIFICANCE OF STUDY ................................................................................ 4
CHAPTER TWO:LITERATURE REVIEW ................................................................ 5
2.1 THEORETICAL CONCEPT OF THE PROJECT .......................................................... 7
2.2 EFFECTS OF UNDER VOLTAGE TO HOME APPLIANCES................................... 16
2.3 POWER QUALITY ...................................................................................................... 16
2.3.1 EFFECTS OF POOR POWER QUALITY ................................................ 17
CHAPTER THREE:METHODOLOGY .................................................................... 18
3.1 SYSTEM COMPONENTS AND OPERATIONS ........................................................ 18
3.1.1 Block diagram of the circuit ....................................................................... 19
3.2 BLOCK DIAGRAM DESCRIPTION .......................................................................... 20
3.3 SOFTWARE DEVELOPMENT ................................................................................... 22
3.3.1 ALLOVER CIRCUIT DESIGN ................................................................. 22
3.4. COMPONENT ANALYSIS ......................................................................................... 23
3.4.1 THE RELAY BLOCK ................................................................................ 23
3.4.2 THE POWER SUPPLY .............................................................................. 24
3.5 TRANSFORMER SELECTION ................................................................................... 26
3.6 DIODE SELECTION .................................................................................................... 26
CHAPTER FOUR:RESULT AND DISCUTION ....................................................... 27
iv
Design and simulation of voltage fluctuation indicator/2008E.C
v
Design and simulation of voltage fluctuation indicator/2008E.C
LIST OF FIGURES
Figure 3.1: overall block diagram…………………………………………...............19
Figure 3.2: overall circuit design…............................................................................22
Figures 3.3: relay block circuit diagram….................................................................23
Figure 3.4: power supply circuit diagram…………………………….......................24
Figure 4.1: voltage division rule voltage drop...……………………………….........28
Figure 4.2: normal voltage condition………………………......................................29
Figure 4.3: over voltage conditions……………………..…………………………...30
Figure 4.4: under voltage condition ...................................................................…....31
vi
Design and simulation of voltage fluctuation indicator/2008E.C
LIST OF TABLES
Table 4.1: material cost analysis……………………………………….………...34
vii
Design and simulation of voltage fluctuation indicator/2008E.C
ABBREVIATIONS
VR - Voltage Regulator
IEE - Institute of Electrical Engineers
IEEE - Institute of Electrical and Electronic Engineers
T.V. - Television
VCR - Video Cassette Recorder
AC - Alternating Current
VMAX - Maximum Voltage
N/C - Normally close contact
N/O - Normal Open contact
RL - Relay Load
Q (NPN) – Negative (electron)-Positive (hole)-Negative (electron)
PMAX - Maximum Power
VP - Primary Voltage
VS - Secondary Voltage
NS - Secondary Number of turns
VCT - Volt Centre Tapped
DC - Direct Current
EMF-electromotive force
viii
Design and simulation of voltage fluctuation indicator/2008E.C
CHAPTER ONE
INTRODUCTION
In Ethiopia, voltage fluctuation is a common phenomenon as well as “on and off” of
power supply to domestic consumers. In voltage fluctuation every electrical equip-
ment will operate within a range of voltage level, however not necessarily with op-
timal performance when the voltage level falls outside of its operational range. For
example a device may be unable to start or operate. It may malfunction or may dam-
age the device. The width of the voltage level range within which a device will oper-
ate is a measure of its sensitivity to the voltage level. A device that operates properly
only when the voltage level is within ± 5% (or less) of nominal voltage would be con-
sidered to be sensitive to voltage level or fluctuations. The effect on the equipment as
experienced by electrical devices are due basically to two main conditions of wide
voltage fluctuations, These are over voltage, under voltage which comes as a result of
rapid switching which can be solvent by implementing an auto cut off circuit fabri-
cated using transistors and other discrete components. It can be used to protect loads
such as refrigerator, Television (T.V), and Video Cassette Recorder (VCR) from un-
desirable over and under line voltages, as well as surges caused due to sudden failure
of main power supply. This circuit can be use directly as a standalone circuit between
the mains supply and the load, or it may be inserting between an existing automatic
and manual stabilizer and the load. The over and under voltage cut-off with ON-Time,
delay provides various types of protection, which include:
Protection to load from frequent turning ON & OFF by providing time delay.
Over-voltage protection.
Under-voltage protection.
Protection against transients
Protection from lightning surge.
1
Design and simulation of voltage fluctuation indicator/2008E.C
2
Design and simulation of voltage fluctuation indicator/2008E.C
3
Design and simulation of voltage fluctuation indicator/2008E.C
4
Design and simulation of voltage fluctuation indicator/2008E.C
CHAPTER TWO
LITERATURE REVIEW
One must released that utility voltage levels are very dynamic and will most surely
change over time for better or for worse; instantly or over a long period. The problem
is often that there is no advance warning about when, how much or in which direction
they will change. An electrical utility is required to provide electricity to all customers
who demand it, and the utility attempt to provide the best voltage levels possible to
the greatest number of customers. However, the utility usually has little control over
the amount of electricity demanded by any customer at any given time. Add to this
the fact that increasing use of relatively sensitive electronics in nearly all aspects of
business and industry and the growing need for voltage regulation becomes clearer.
When the voltage in a circuit or part of it is raised above 5% of its upper design limit,
the conditions may be hazardous, depending upon it variation. The over voltage event
can be transient, by voltage spike or permanent, leading to power surge. Electronics
and electrical devices are design to operate at a certain maximum supply voltage, and
considerable damage can be caused by the voltage that is higher than that for which
the devices are. Over voltage devices such as Arching horns, avalanche diode and
many others can be used to reduce the harmful effect of over voltage.
Under voltage is a decrease in voltage below +5% of its nominal value. The symp-
toms of under voltage can range from daily equipment malfunction or equipment fail-
ure. Under voltage may go unnoticed sometimes to consumers. Electrical utilities try
to maintain voltage levels delivered to customers at +5%. However, factors like
weather, high demand and others can cause the utility to fall within a + 5% range.
When lightening surges produced by a cloud with voltages in over of hundred and
offices which is feeding with 220 volts. Lightning flash select the best conductive
path and closet object in the location for this purpose. For this reason, it is obvious
that the tallest structure in a location is most vulnerable to lightning. In the course of
technical development, man has introduced a number of metallic, conductive mate-
5
Design and simulation of voltage fluctuation indicator/2008E.C
rials, devices, and objects On the part of supply authorities, electrical overhead
cables, telephone cables, antennas etc, are very efficient attractor of lightning flashes.
Distribution system characteristics can also contribute to chronically low voltage situ-
ations, for example, customers at the end of a long line may be subject to a permanent
voltage drop due to line losses on top of the utility voltage variations.
It is know that the ground wire run over the towers provides an adequate protec-
tion against lightning and also reduces the induce electrostatic or electro-magnetic
voltage, but such a shield is inadequate to protect any traveling wave which reaches
the terminals of the electrical equipment and such wave can cause the following dam-
ages;
The high peak voltage of the surge may cause flash over in the internal
winding.
The steep wave front of the surge may cause internal flash over be-
tween inter turns of the transformer.
The high peak voltage of the surge may cause external flash over be-
tween the terminals of the electrical equipment which may result in
damaging of the insulator.
The steep wave front resulting into resonance and high voltage may
cause internal or external flash over causing building up of the oscilla-
tion in the electrical apparatus.
Hence it is absolute necessary to provide protection against these traveling surges
cause by lightning. Such protective devices are call as lightning arresters or surge di-
verters. In the designing circuit they are converted between the line and earth. The
action of the surge diverter can be studied in reference to fig7.Below. When the trav-
eling surges reach the diverter and attain the prefixed voltage a spark is formed across
the gap as shown by point P. The diverter then provides a low impedance path to
earth. The surge impedance of the line limits the amplitude of current flowing to
earth, this is necessary in order to protect the insulation of the equipments.[2]
6
Design and simulation of voltage fluctuation indicator/2008E.C
A transformer is a device that transfers electrical energy from one circuit to another
through inductively coupled conductors - the transformer's coils. A varying current in
the primary winding creates a varying magnetic flux in the transformer's core, and
thus a varying magnetic field through the secondary winding. This varying magnetic
field induces a varying electromotive force (EMF) or in the secondary winding. This
effect is called mutual induction. If a load is connected to the secondary, an electric
current will flow in the secondary winding and electrical energy will be transferred
from the primary circuit through the transformer to the load. In an ideal transformer,
the induced voltage in the secondary winding (VS) is in proportion to the primary
voltage (VP), and is given by the ratio of the number of turns in the secondary (NS) to
the number of turns in the primary (NP) as follows. By appropriate selection of the
ratio of turns, a transformer thus allows an alternating current (AC) voltage to be
"stepped up" by making NS greater than NP, or "stepped down" by making NS less
than NP. In the vast majority of transformers, the coils are wound around a ferromag-
netic core, air-core transformers being a notable exception. Transformers come in a
range of sizes from a thumbnail-sized coupling transformer hidden inside a stage mi-
crophone to huge units weighing hundreds of tons used to interconnect portions of
national power grids. All operate with the same basic principles, although the range
of designs is wide. While new technologies have eliminated the need for transformers
in some electronic circuits, transformers are still found in nearly all electronic devices
designed for household voltage. Transformers are essential for high voltage power
transmission, which makes long distance transmission economically practical.[3]
7
Design and simulation of voltage fluctuation indicator/2008E.C
A Full wave rectifier is circuit arrangements which makes use of both half cycles of
input alternating current (AC) and convert them to direct current (DC). Thus a full
wave rectifier is much more efficient (double) than a half wave rectifier. This process
of converting both half cycles of the input supply (alternating current) to direct cur-
rent (DC) is termed full wave rectification. Full wave rectifier can be constructed in
two ways. The first method makes use of a center tapped transformer and two diodes.
This arrangement is known as Center Tapped Full Wave Rectifier. The second me-
thod uses a normal transformer with four diodes arranged as a bridge. This arrange-
ment is known as a Bridge Rectifier.
8
Design and simulation of voltage fluctuation indicator/2008E.C
VOLTAGE REGULATOR
A voltage regulator (VR) is at the heart of devices often calling power conditioners or
stabilizers. The typical power conditioner is a voltage regulator combined with one or
more other power qualities such as.
Surge suppression
Short circuit protection
Line noise reduction
Phase – to – phase voltage balancing
Since there is no official definition of a power conditioner, there are some devices
marketed as power conditioners that do not provide voltage regulations. This fact and
the wide variation in capability between products make its vital and the buyer does
his or her home work to much products functionality and application needs.[4]
POTENTIOMETER
A potentiometer is a three-terminal resistor with a sliding contact that forms an ad-
justable voltage divider. If only two terminals are used (one side and the wiper), it
acts as a variable resistor. Potentiometers are commonly used to control electrical de-
vices such as volume controls on audio equipment. Potentiometers operated by a me-
chanism can be used as position transducers, for example, in a joystick. Potentiome-
ters are rarely used to directly control significant power (more than a watt). Instead
they are used to adjust the level of analog signals (e.g. volume controls on audio
equipment), and as control inputs for electronic circuits. For example, a light dimmer
uses a potentiometer to control the switching of a TRIAC and so indirectly control the
brightness of lamps. Potentiometers are sometimes provided with one or more
switches mounted on the same shaft. For instance, when attached to a volume control,
the knob can also function as an on/off switch at the lowest volume.
9
Design and simulation of voltage fluctuation indicator/2008E.C
TRANSISTOR
10
Design and simulation of voltage fluctuation indicator/2008E.C
ADVANTAGES OF TRANSISTOR
The key advantages that have allowed transistors to replace their vacuum tube prede-
cessors in most applications are:
Small size and minimal weight, allowing the development of miniaturized
electronic devices.
Highly automated manufacturing processes, resulting in low per-unit cost.
Lower possible operating voltages, making transistors suitable for small, bat-
tery- powered applications.
No warm-up period for cathode heaters required after power application.
Lower power dissipation and generally greater energy efficiency
Higher reliability and greater physical ruggedness
Extremely long life. Some transistorized devices have been in service for
many years
Complementary devices available, facilitating the design of complementary-
symmetry circuits, something not possible with vacuum tubes.
Insensitivity to mechanical shock and vibration, thus avoiding the problem of
micro phonics in audio applications.[6]
RESISTOR
11
Design and simulation of voltage fluctuation indicator/2008E.C
Critical resistance depends upon the materials constituting the resistor as well as its
physical dimensions.
Ohm’s law:
= (2.1)
Ohm's law states that the voltage (V) across a resistor is proportional to the current (I)
through it where the constant of proportionality is the resistance.
CAPACITOR
DC Motor
The device that converts electrical energy into mechanical energy is called as a motor.
The motor that utilizes a DC supply to produce mechanical output is DC Motor. The
advantages of using these types of motors over conventionally used AC motors are
stated below. DC motors have higher controller efficiency, 98% efficiency, better
overload and peak voltage characteristics and the main advantage of using these DC
motors is that the speed- torque characteristics can be varied to almost any useful
12
Design and simulation of voltage fluctuation indicator/2008E.C
form. As a result of all these advantages these motors have a wide range of applica-
tions in places where constant speed is to be maintained at varying loads
Microcontroller
A microcontroller (or MCU, short for microcontroller unit) is a small computer (soc)
on a single integrated circuit containing a processor core, memory, and programmable
input/output peripheral.
Microcontroller PIC16F877A
The microcontroller acts like the brain of the DC motor speed control system. The
microcontroller chip that has been selected for the purpose of controlling the speed
of DC motor is PIC16F877A manufactured by Microchip. This chip is selected
based on several reasons:
Its size is small and equipped with sufficient output ports without having to
use a decoder or multiplexer.
It is a very simple but powerful microcontroller.
Its portability and low current consumption.
The simplest computer processor is used as the “brain” of the future system. De-
pending on the taste of the manufacturer, a bit of memory, a few A/D converters,
input/output lines etc. are added. Simple software able to control it all and which
everyone can easily learn about has been developed. On the basis of these rules,
numerous types of microcontrollers were designed and they quickly became man’s
invisible companion. Their incredible simplicity and flexibility conquered us a
long time ago and if you try to invent something about them, you should know that
you are probably late; someone before you has either done it or at least has tried to
do it. Powerful and carefully chosen electronics embedded in the microcontrollers
can independently or via input/output devices (switches, push buttons, sensors,
LCD displays, relays etc.), control various processes and devices such as industrial
automation, electric current, temperature, engine performance etc.. It is sufficient
to have a PC (software in use is not demanding at all and is easy to learn) and a
13
Design and simulation of voltage fluctuation indicator/2008E.C
simple device (called the programmer) used for “loading” ready-to-use programs
into the microcontroller. So, if you are infected with a virus called electronics,
there is nothing left for you to do but to learn how to use and control power. Even
though there are a large number of different types of microcontrollers and even
more programs created for their use only, all of them have many things in com-
mon. Thus, if you learn to handle one of them you will be able to handle them all.
A typical scenario on the basis of which it all functions is as follows:
Power supply is turned off and everything is still…the program is loaded into the mi-
crocontroller, nothing indicates what is about to come…Power supply is turned on
and everything starts to happen at high speed! The control logic unit keeps everything
under control. It disables all other circuits except quartz crystal to operate. While the
preparations are in progress, the first milliseconds go by. Power supply voltage reach-
es its maximum and oscillator frequency becomes stable. SFRs are being filled with
bits reflecting the state of all circuits within the microcontroller. All pins are confi-
gured as inputs. [7]
RELAY
A relay is an electrically operated switch. Many relays use an electromagnet to oper-
ate a switching mechanism, but other operating principles are also used. Electrical
relay - electrical device such that current flowing through it in one circuit can switch
on and off a current in a second circuit. Relays find applications where it is necessary
to control a circuit by a low-power signal, or where several circuits must be con-
trolled by one signal. The first relays were used in long distance telegraph circuits,
repeating the signal coming in from one circuit and re-transmitting it to another. Re-
lays found extensive use in telephone exchanges and early computers to perform logi-
cal operations. A type of relay that can handle the high power required to directly
drive an electric motor is called a contractor. Solid-state relays control power circuits
with no moving parts, instead using a semiconductor device triggered by light to per-
form switching. [8]
14
Design and simulation of voltage fluctuation indicator/2008E.C
LCD (liquid crystal display) is the technology used for displays in notebook and other
smaller computers. Like light-emitting diode (LED) and gas-plasma technologies,
LCDs allow displays to be much thinner than cathode ray tube (CRT) technology.
LCD (liquid crystal display) is the technology used for displays in notebook and other
smaller computers. Like light-emitting diode (LED) and gas-plasma technologies,
LCDs allow displays to be much thinner than cathode ray tube (CRT) technology.
LCDs consume much less power than LED and gas-display displays because they
work on the principle of blocking light rather than emitting it.
A device for making and breaking the connection in an electric circuit. An act of
switching: as
15
Design and simulation of voltage fluctuation indicator/2008E.C
Low voltage is not a problem for most appliances. Older appliances that use motors,
such as refrigerators and dryers, may be in danger of haven their motors over heat.
Newer appliances that use electrical motors have circuit that sense the motors temper-
ature and shut down the appliances when it’s over heat.
If you have an appliances that absolutely must received the proper voltage all times
(such as sensitive electronics) then you should obtained a “dedicated” power supply,
which will feed the same voltage to those appliances regardless of fluctuations in the
voltage delivered to the house.
16
Design and simulation of voltage fluctuation indicator/2008E.C
Stable AC voltages at near nominal values and at near rated frequency subject to ac-
ceptable minor variations, free from annoying voltage flicker, voltage sags and fre-
quency fluctuations.Near sinusoidal current and voltage wave forms free from higher
order harmonics.All electrical equipments are rated to operate at near rated voltage
and rated frequency.
17
Design and simulation of voltage fluctuation indicator/2008E.C
CHAPTER THREE
METHODOLOGY
3.1 SYSTEM COMPONENTS AND OPERATIONS
The power line fluctuations and cut-offs because damages to electrical appliances
connected to the line. It is more serious in the case of domestic appliances like fridge
(refrigerator) and air conditioners. If a fridge is operated on low voltage, excessive
current flows through the motor, which heats up, and get damaged.
The under/over voltage protection circuit with time delay presented here is a low cost
and reliable circuit for protecting such equipments from damages. Whenever the
power line is switched on it gets connected to the appliance only after a delay of a
fixed time. If there is high/low fluctuations beyond sets limits the appliance get dis-
connected. The system tries to connect the power back after the specific time delay,
the delay being counted from the time of disconnection. If the power down time (time
for which the voltage is beyond limits) is less than the delay time, the power resumes
after the delay: If it is equal or more, then the power resumes directly.
The unregulated power supply is connected to the series combination of resistors R1
and R2 and a port meter VR. The same supply is also connected to 4.8 volts through
resistor R2. Preset VR is adjusted such that for the normal supply of 211 to 231 volts.
Hence the output of the system is zero and transistor T, also remains de-energized. As
the AC supply to the electrical appliances is given through the normally closed (N/C)
terminal of the relay. The supply is not disconnected during normal operation. When
the AC voltage increase beyond 231V, the voltage at 4.8 volts increases. The voltage
at the inverting terminals is still 4.8V. Thus the appliances are protected against over
voltage. Now let’s consider the under voltage condition. The AC supply is discon-
nected and electrical appliances turn off. Thus the appliances are protected against
under voltage. ICI is wired for a regulated 12V supply. Thus the relay energizes in
two conditions: first, if the voltage at pin three of IC 2 is below 4.8V. Over voltage
and under voltage levels can be adjusted using presets VR respectively.
18
Design and simulation of voltage fluctuation indicator/2008E.C
Potentio-
meter
Transistor Microcontroller
(PIC16F877A)
LCD
Relay
Load
19
Design and simulation of voltage fluctuation indicator/2008E.C
Step-down Transformer
Diode/bridge rectifier
5 Dc volts
Potentiometer
Microcontroller (PIC16F877A)
LCD(liquid crystal display)
Transistor
Relay
Step down transformers are used to step down high voltages. i.e. from 110v to 220v
or 110v and from 220v or 110v to 10, 12, 20 or 24 volts etc. Because the same mag-
netic flux lines cut both coils of a transformer, the induced EMF in the secondary
winding, is proportional to the number of turns on both the primary and secondary
windings. If the number of turns on the secondary winding is less than the number of
turns on the primary winding, then the secondary output voltage will be less than the
primary input voltage. In our design 220V step down in to 12V.
20
Design and simulation of voltage fluctuation indicator/2008E.C
A microcontroller (PIC16F877A)
The microcontroller acts like the brain of the DC motor speed control system. The
microcontroller chip that has been selected for the purpose of controlling the speed
of DC motor is PIC16F877A manufactured by Microchip.
LCD (liquid crystal display) is the technology used for displays in notebook and other
smaller computers. Like light-emitting diode (LED) and gas-plasma technologies,
LCDs allow displays to be much thinner than cathode ray tube (CRT) technology.
RELAY
21
Design and simulation of voltage fluctuation indicator/2008E.C
DIODE
R3
100k
RL1
R2 12V
100k
R1 Q1
NPN
100k
C2
LCD1
HDM32GS12-B
22p U2
X1 13
OSC1/CLKIN RB0/INT
33
CRYSTAL 14 34
C3 OSC2/CLKOUT RB1
35
RB2
2 36
RA0/AN0 RB3/PGM
3 37
RA1/AN1 RB4 12v
22p 4 38
RA2/AN2/VREF-/CVREF RB5
5 39
RA3/AN3/VREF+ RB6/PGC
VDD
RES
VSS
VEE
R/W
BL+
6 40
BL-
D0
D1
D2
D3
D4
D5
D6
D7
A0
E1
E2
RA4/T0CKI/C1OUT RB7/PGD
7
RA5/AN4/SS/C2OUT
15
RC0/T1OSO/T1CKI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
8 16
RE0/AN5/RD RC1/T1OSI/CCP2
9 17
RE1/AN6/WR RC2/CCP1
10 18
RE2/AN7/CS RC3/SCK/SCL
23
RV1 1
RC4/SDI/SDA
24
MCLR/Vpp/THV RC5/SDO
25
RC6/TX/CK
26
RC7/RX/DT
19
RD0/PSP0
20
RD1/PSP1
21
RD2/PSP2
100 22
U1 RD3/PSP3
27
7905 RD4/PSP4
28
RD5/PSP5
29
RD6/PSP6
2 3 30
TR1 VI VO RD7/PSP7 +12v
GND
BR1 PIC16F877A
1
+220 SW1
C1
1nF
SW-SPST-MOM
2W06G
TRAN-2P2S
10KR4
100k
22
Design and simulation of voltage fluctuation indicator/2008E.C
+12v
D1 R3
10k
DIODE
R2 RL1
10k 12V
R1 Q1
2N2222
10k
23
Design and simulation of voltage fluctuation indicator/2008E.C
TR1
BR1
+220
C1
1nF
2W06G
TRAN-2P2S
24
Design and simulation of voltage fluctuation indicator/2008E.C
a. Secondary voltage Vs
= 2.925 10
>
3
Therefore, L is taken to be 100
From equation (3.2), we have
C = 2.925*10-5 = 292.5μƒ
Therefore ripple factor for L = 100 and C = 100 is
√2 √2 1
= =
3 3
√2 1
=
3 (4 50) 100 10 100 10
R=0.1195 Which is better than the required value of 0.05 the value of the inductance,
L is 0.1H (100mH) and current rating 0.8 (load current). We assume its resistance to
be 1KΩ
25
Design and simulation of voltage fluctuation indicator/2008E.C
= 0.741 1 = 0.741
max ( ) = 12
= *13= 20.4 ≈ 20
20
= = = 14.14 ≈ 14
√2 √2
We select a transformer of turn’s ratio 220: 12
Current rating; 1.2A
VA rating of the transformer = 16.2x 1.2 = 19.44A
= 0.868
We select IN4002 ~ PIV = 100v
Average forward current = 10A
Repetitive peak forward current = 10A
26
Design and simulation of voltage fluctuation indicator/2008E.C
CHAPTER FOUR
27
Design and simulation of voltage fluctuation indicator/2008E.C
In voltage ratio
1 1
=
2 2
Primary voltage v1 is 220v
1 220 1
= = 18.333 =
2 12 2
240
= 18.3333 = 13.090911 ≈ 13.1
2
R1
10k
13.1V
R2
1 10
= = 13.1 = 16.2
1+ 2 10 + 2
28
Design and simulation of voltage fluctuation indicator/2008E.C
.
VP= ( ) VS= 12.6 = 4.8
.
+12v
C2 R3
10r
RL1 +24v
R2 12V
22pF 10k
X1
CRYSTAL
C3
22pF U2 R1 Q1
13 33 BC548
+13.1v OSC1/CLKIN RB0/INT
14 34
OSC2/CLKOUT RB1 1k
35
2
RB2
36 LCD1
RA0/AN0 RB3/PGM LM016L
3 37
RA1/AN1 RB4
4 38
RA2/AN2/VREF-/CVREF RB5
5 39
RA3/AN3/VREF+ RB6/PGC +5v
6 40
RA4/T0CKI/C1OUT RB7/PGD
R4 7
RA5/AN4/SS/C2OUT
16k2 15
RC0/T1OSO/T1CKI
8 16
+5v RE0/AN5/RD RC1/T1OSI/CCP2
9 17
RE1/AN6/WR RC2/CCP1
VDD
VSS
VEE
RW
10 18
RS
D0
D1
D2
D3
D4
D5
D6
D7
23
RC4/SDI/SDA
1 24
MCLR/Vpp/THV RC5/SDO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
25
RC6/TX/CK
26
93%
RC7/RX/DT
19
RD0/PSP0
20
RD1/PSP1
10k 21
RD2/PSP2
22
RD3/PSP3
27
RD4/PSP4
28
RD5/PSP5
29
RD6/PSP6 +5v
30
RD7/PSP7
PIC16F877A
SW1 START BUTTON
29
Design and simulation of voltage fluctuation indicator/2008E.C
As the AC supply to the electrical appliances given through the normally closed
(N/C) terminal of the relay. The supply is not disconnected during normal operation.
When the A voltage increase beyond 231-240V. Thus now if the voltage at pin 3 is
higher than 6.8V, the output of the operational amplifier goes high to drive transistor
T and hence energies relay (RL). Consequently, the AC supply is disconnected and
electrical appliances turn off. Thus, the appliances are protected against over voltage.
In voltage ratio
1 1
=
2 2
Primary voltage v1 is 220v
1 220 1
= = 18.333 =
2 12 2
240
= 18.3333 = 13.090911 ≈ 13.1
2
C2 R3
10r
RL1 +24v
R2 12V
22pF 10k
X1
CRYSTAL
C3
22pF U2 R1 Q1
13 33 BC548
+13.1v OSC1/CLKIN RB0/INT
14 34
OSC2/CLKOUT RB1 1k
35
2
RB2
36 LCD1
RA0/AN0 RB3/PGM LM016L
3 37
RA1/AN1 RB4
4 38
RA2/AN2/VREF-/CVREF RB5
5 39
RA3/AN3/VREF+ RB6/PGC +5v
6 40
RA4/T0CKI/C1OUT RB7/PGD
R4 7
RA5/AN4/SS/C2OUT
16k2 15
RC0/T1OSO/T1CKI
8 16
+5v RE0/AN5/RD RC1/T1OSI/CCP2
9 17
RE1/AN6/WR RC2/CCP1
VDD
VSS
VEE
RW
10 18
RS
D0
D1
D2
D3
D4
D5
D6
D7
23
RC4/SDI/SDA
1 24
MCLR/Vpp/THV RC5/SDO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
25
RC6/TX/CK
26
100%
RC7/RX/DT
19
RD0/PSP0
20
RD1/PSP1
10k 21
RD2/PSP2
22
RD3/PSP3
27
RD4/PSP4
28
RD5/PSP5
29
RD6/PSP6 +5v
30
RD7/PSP7
PIC16F877A
SW1 START BUTTON
SW-SPST-MOM
30
Design and simulation of voltage fluctuation indicator/2008E.C
Now let’s consider the under voltage condition. When the line voltage is below 210V,
thus the output of N2 goes high and it energizes the relay through transistor T. The
AC supply is disconnected and electrical appliances turn off. Thus the appliances are
protected against under voltage. ICI is wired for a unregulated 12V supply.
Thus the relay energizes in two conditions: first, if the voltage at pin 3 of IC 2 is be-
low 4.4V. Over voltage and under voltage levels can be adjusted using presets VR
respectively.
C2 R3
10r
RL1 +24v
R2 12V
22pF 10k
X1
CRYSTAL
C3
22pF U2 Q1
13 33
R1
+13.1v OSC1/CLKIN RB0/INT BC548
14 34
OSC2/CLKOUT RB1 1k
35
2
RB2
36 LCD1
RA0/AN0 RB3/PGM LM016L
3 37
RA1/AN1 RB4
4 38
RA2/AN2/VREF-/CVREF RB5
5 39
RA3/AN3/VREF+ RB6/PGC +5v
6 40
RA4/T0CKI/C1OUT RB7/PGD
R4 7
RA5/AN4/SS/C2OUT
16k2 15
RC0/T1OSO/T1CKI
8 16
+5v RE0/AN5/RD RC1/T1OSI/CCP2
9 17
RE1/AN6/WR RC2/CCP1
VDD
VSS
VEE
RW
10 18
RS
D0
D1
D2
D3
D4
D5
D6
D7
RV1 RE2/AN7/CS RC3/SCK/SCL
E
23
RC4/SDI/SDA
1 24
MCLR/Vpp/THV RC5/SDO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
25
RC6/TX/CK
26
75%
RC7/RX/DT
19
RD0/PSP0
20
RD1/PSP1
10k 21
RD2/PSP2
22
RD3/PSP3
27
RD4/PSP4
28
RD5/PSP5
29
RD6/PSP6 +5v
30
RD7/PSP7
PIC16F877A
SW1 START BUTTON
SW-SPST-MOM
In under voltage operating condition input voltage less than or equal to 210v
Voltage ratio;
1 1
= = 18.3333
2 2
V1=210v
VS= .
= 11.47541 ≈ 11.5
31
Design and simulation of voltage fluctuation indicator/2008E.C
In my pic micro controller gives 5 Dc voltages and max voltage control is 240v
5v=100%
5v=100%
In over voltage condition Vp value is 5v;in our project assumption 5 Dc voltage equal
to 240 v. then 5 Dc voltage is 100%.
Our micro controller is their Analog Digital converter. Analog to digital conversion
calculation are
We give input voltage in our micro controller; micro controller output port b value
give assign those sign are Red and blue color; Red color is one while blue color is
zero.
We give 5 Dc volt our micro controller port b gives all red sign. Digital to analog
conversion
1111111100=1023
In 4.8 Dc volt
1111010100=982
32
Design and simulation of voltage fluctuation indicator/2008E.C
In 4.4 Dc volt
1110000100=898
33
Design and simulation of voltage fluctuation indicator/2008E.C
34
Design and simulation of voltage fluctuation indicator/2008E.C
35
Design and simulation of voltage fluctuation indicator/2008E.C
CHAPTER FIVE
5.1. CONCLUSION
The Circuit protects electrical equipment from over voltage and under voltage conditions.
All the circuit simulated by using proteus (ISIS professional) software. Micro controller
PIC16F877A is used here as a comparator. This consists of Analog digital converter and
sensor which are used for this design. The unregulated power supply is connected to the
series combination of regulator and a potentiometer VR, the same voltage is connected to
the terminal of micro controller for over and under voltage action to be performed. When
the system voltage is increase beyond the pre-set value, goes high for its protection. The
design can be modified to performed on specific application be it domestic or commercial
purposes. With fine-tuning of this circuit, it used in place of a regulator since it provides
various types of protection.
35
Design and simulation of voltage fluctuation indicator/2008E.C
5.2. RECOMMENDATION
This project has been achieved by a design and simulation, which has been simulated and
found to work to expectation. The availability of the components can be obtained from
any electronic store. The design is suitable for all application for domestic and small of-
fice use. The design reconnects the mains to the equipment after the mains have returned
within acceptable set limits. Therefore the use of these less costly design equipments to
supply power to electronics or any domestic equipment can ensure their safety of opera-
tion. The over or under voltage cut-off with ON – Time delay can be modified by in-
creasing the rating of the transformer and various components and can be made to used
for industrial purposes. With fine- tuning of this circuit, it can be used in place of a regu-
lator.
36
Design and simulation of voltage fluctuation indicator/2008E.C
REFERENCE
[1] www.IEEE.com
[2] Roger C.Dugan/Mark F.McGranaghan: Electrical Power Systems Quality, Second
Edition page 7-20
[3] B. Jayant baliga, modern power devices john miley and sons, Nov. Yonk, 1987 page
7-9
[4] Rakshit P. C Foundation of Electronics 2nd Edition Macmillan India Ltd Bangolone
page 402 – 409. (1985)
[5] Sonde B. S. Introduction to System Design using Integral Circuits 2nd Edition.
Longman Publishers page 49 – 52 (London) (1972)
[6] Robert L. Boylested, Introductory to Circuit Analysis Edition Upper Saddle River
N. J. Page 321 – 325
nd
[7] Lawrence A. Duarte. The Microcontroller Beginner’s Handbook. 2 Edition. United
States of America: Prompt Publication. 3-5; 1998.
[8] Victor A. K temple “Mos – controlled thermistors A new class of power device Page
1609 – 1618
[9] NED Moham; Power Electronics Converters Applications and design John wiley and
Sons Inc page 2003 – 2 013
[10] Normam Balabamiman, Engineering Circuit Macmillan India Ltd Bengalore page
[11] www.amazon.com
[12] www.diode.com
37
Design and simulation of voltage fluctuation indicator/2008E.C
APPENDIX
///////program in voltage fluctuation indicator using PIC microcontroller software////
===============================================================
int vlevel;
void main() {
porta=0;
portb=0;
portc=0;
portd=0;
38
Design and simulation of voltage fluctuation indicator/2008E.C
trisa=1;
trisb=0;
trisd=0;
trisc=1;
lcd_init();
lcd_cmd(_lcd_clear);
lcd_out(1,1,"welcome to");
lcd_out(2,1,"v contrler");
//delay_ms(2500);
while(1){
if (portc==1){
vlevel=adc_read(0);
portb=0;
lcd_cmd(_lcd_clear);
lcd_out(1,1,"over voltage");
delay_ms(250);
portb=0;
lcd_cmd(_lcd_clear);
lcd_out(1,1,"under voltage");
delay_ms(250);
39
Design and simulation of voltage fluctuation indicator/2008E.C
portb=1;
lcd_cmd(_lcd_clear);
lcd_out(1,1,"normal cndn");
delay_ms(250);
else{
portb=0;
/*if(portc==0){
portb=0;
portc=0;
portd=0;
lcd_cmd(_lcd_clear);
}*/
40