Академический Документы
Профессиональный Документы
Культура Документы
Submitted by:
Jasam Nawab 2016-EE-131
Bachelor of Science
in
Electrical Engineering .
Director
Undergraduate Studies
where explicitly stated otherwise. We solemnly declare that to the best of our knowledge,
Signed:
Date:
Signed:
Date:
Signed:
Date:
Signed:
Date:
ii
Acknowledgments
I have taken eorts in this project. However, it would not have been possible without the
kind support and help of many individuals and organizations. I would like to extend my
sincere thanks to all of them. I am highly indebted to Name of your Organization Guide
for their guidance and constant supervision as well as for providing necessary information
regarding the project also for their support in completing the project. I would like to
express my gratitude towards my parents member of (Organization Name) for their kind
I would like to express my special gratitude and thanks to industry persons for giving
me such attention and time. My thanks and appreciations also go to my colleague in de-
veloping the project and people who have willingly helped me out with their abilities.. . .
iii
Contents
Acknowledgments iii
List of Figures vi
Abbreviations viii
1 Problem Statement 1
2 Introduction 2
2.1 Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
3 Literature Review 3
3.1 Integer Harmonics Categories . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.1.6.1 Measurement . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1.6.2 Interpretation . . . . . . . . . . . . . . . . . . . . . . . . 6
iv
v
4.7 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5 Applications 27
5.1 Harmonics in SATEC devices . . . . . . . . . . . . . . . . . . . . . . . . . 28
6 Methodology 29
6.1 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.3 Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
7 Deliverables 32
List of Figures
4.1 Current Transformer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.11 LM7810 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.2 Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
vi
List of Tables
5.1 Direct Applications In Industries . . . . . . . . . . . . . . . . . . . . . . . 27
vii
Abbreviations
THD Total Harmonics Distortion
viii
Chapter 1
Problem Statement
In these days, power quality is big concern in industries, commercial establishments and
Harmonics refer to voltage and current signals whose frequencies are integer multiple
LCD's, switching power supplies and arc furnaces are main causes of production of
Our embedded systems are being damaged by these harmonics. We need to measure the
Distortion (THD).
1
Chapter 2
Introduction
2.1 Objective
To Develop a prototype which will work at 220V of WAPDA Supply to monitor the har-
monics present in the voltage and current signals which will help us to analyse harmonics
with Analog to digital convertor having high sampling rate nearly double the fundamental
frequency we want to monitor according to Nyquist theorem[1]. After sampling the signal,
we have to show the harmonics waveform and Fast Fourier Transform of the incoming
voltage and current signal on GUI.So, that we can analyze the harmonics present in the
given voltage and current signal. For GUI, we wil use LabView software because of its
advanced features.
2
Chapter 3
Literature Review
Harmonics study and their analysis is very important now a days in eld of power
quality.Many Researches have been made for their study,monitoring and removal.So, that
eciency of power system and power electronics devices can increase.A good sinusoidal
waveform of voltage and current which is supplied by power supply company is hard to
The presence of harmonics in electrical systems means that current and voltage are
distorted and deviate from sinusoidal waveforms.[2]Harmonics are signals or waves whose
signal or wave.
Integer harmonics having frequencies which are odd integer multiple of fundamental fre-
Integer harmonics having frequencies which are even integer multiple of fundamental
3
4
Often in non-sinusoidal waveform there are harmonics having frequencies which are
greater than fundamental but not integer multiple of fundamental frequency. These
Mathematically,
Where, n greater than 1 but not integer; e.g.: 1.2, 1.5, 2.7 . . . etc
Often in non-sinusoidal waveform there are harmonics having frequencies which are
Mathematically,
The main sources of harmonics in electric power systems can be categorized as:
• Arcing devices
• Phase controllers
• A.C regulators
mainly caused by zero sequence triplen harmonics and particularly the third present
• Transformers are designed to make good use of the magnetic properties of the core
material. When such transformers are subjected to a rise in voltage, the cores
face a considerable rise in magnetic ux density, which often causes considerable
saturation. This saturation with symmetrical magnetizing current generates all the
odd harmonics
5
• When a transformer is switched o, sometimes there exists a residual ux density
in the core. When the transformer is re-energized the ux density can reach peak
levels of twice the maximum ux density or more. It produces high ampere-turns
in the core. This causes magnetizing currents to reach up to 510 per unit of
the rated value, which is very high as compared to the normal values of a few
This category includes arc furnaces, arc welders, and discharge-type lighting (uorescent,
sodium vapor, mercury vapor) with magnetic ballasts.The arc is basically a voltage clamp
The voltage-current characteristics of electric arcs are nonlinear. The voltage decreases
as the arc current increases, limited only by the impedance of the power system. This
gives the arc the appearance of having a negative resistance for a portion of its operating
cycle such as in uorescent lighting applications. In electric arc furnace applications, the
limiting impedance is primarily the furnace cable and leads with some contribution from
the power system and furnace transformer. Currents in excess of 60,000 A are common.
• Semiconductor based power supply systems are the main sources of harmonics.
• Application of AC drives has increased to a great extent, most of which are inverter
fed AC drives. They use switching circuits using semiconductor devices like GTO,
IGBT, etc.
• For supply of stable and balanced three phase electric power, phase controller
plays important role in power system. Phase controllers used in power system act
as source of harmonics.
• AC regulators used in power system apply both o line and on line control technique
technique distorts wave-shape more than o line regulation along with other power
single phase or polyphase regulators using half wave, full wave or integral cycle
The THD is a measure of the eective value of the harmonic components of a distorted
waveform[3]. That is, it is the potential heating value of the harmonics relative to the
6
v
u
u hmax
X
T HD = t M h2/M 1 (3.5)
hgreaterthan1
Where Mh is the RMS value of harmonic component h of the quantity M.The RMS
value of a distorted waveform is the square root of the sum of the squares as shown in
Equations (2.16) and (2.17). The THD is related to the rms value of the waveform as
follows:
The THD is a very useful quantity for many applications, but its limitations must be
realized. It can provide a good idea of how much extra heat will be realized when a
distorted voltage is applied across a resistive load. Likewise, it can give an indication of
However, it is not a good indicator of the voltage stress within a capacitor because that
is related to the peak value of the voltage waveform, not its heating value. The THD
Harmonic voltages are almost always referenced to the fundamental value of the waveform
Because fundamental voltage varies by only a few percent, the voltage THD is nearly
3.1.6.1 Measurement
The distortion of a waveform relative to a pure sinewave can be measured either by using
a THD analyzer to analyse the output wave into its constituent harmonics and noting
the amplitude of each relative to the fundamental; or by cancelling out the fundamental
with a notch lter and measuring the remaining signal, which will be total aggregate
Given a sinewave generator of very low inherent distortion, it can be used as input to
amplication equipment, whose distortion at dierent frequencies and signal levels can
There is electronic equipment both to generate sinewaves and to measure distortion; but
a general-purpose digital computer equipped with a sound card can carry out harmonic
analysis with suitable software. Dierent software can be used to generate sinewaves, but
the inherent distortion may be too high for measurement of very low-distortion ampliers.
3.1.6.2 Interpretation
For many purposes dierent types of harmonics are not equivalent. For instance, crossover
distortion at a given THD is much more audible than clipping distortion at the same
THD, since the harmonics produced are at higher frequencies, which are not as easily
and must be interpreted with care. Taking THD measurements at dierent output levels
7
would expose whether the distortion is clipping (which increases with level) or crossover
performed decades ago identies that lower order harmonics are harder to hear at the
same level, compared with higher order ones. In addition, even order harmonics are said
that attempt to correlate THD with actual audibility have been published, however none
Current distortion levels can be characterized by a THD value but this can often be
misleading. A small current may have a high THD but not be a signicant threat to the
system.
For example, many adjustable-speed drives will exhibit high THD values for the input
current when they are operating at very light loads. This is not necessarily a signicant
concern because the magnitude of harmonic current is low, even though its relative cur-
Some analysts have attempted to avoid this diculty by referring THD to the fundamen-
tal of the peak demand load current rather than the fundamental of the present sample.
This is called total demand distortion and serves as the basis for the guidelines in IEEE
s
hmax
P
Ih2
h=2
T DD = (3.6)
Il
IL is the peak, or maximum, demand load current at the fundamental frequency compo-
nent measured at the point of common coupling (PCC). In Pakistan, the frequency used
this fundamental frequency which causes high distortion is 3rd order harmonic having
frequency 150HZ and magnitude 3 times lesser than fundamental component magnitude.
As the frequency of the harmonics goes on increasing their magnitude goes on decreas-
ing hence their eect in distorting the waveform decreases.So, our major concern is to
monitor the lower order harmonics which in return help us to improve the power quality
harmonics.
vices because its secondary current is proportional to the primary current (under normal
ing devices cannot be directly connected to the high magnitude supplies hence current
transformers are used to supply those devices with currents of magnitude proportional to
those of power,are shown in Figure 4.1 and 4.2 . A current transformer also isolates the
is the same as that of the power transformer. Like the power transformer, the current
current ows through the primary winding, alternating magnetic ux is produced, which
then induces alternating current in the secondary winding. In the case of current trans-
formers, the load impedance or burden is very small. Therefore the current transformer
operates under short circuit conditions. Also the current in the secondary winding does
not depend on load impedance but instead depends on the current owing in the primary
winding.
8
9
mation of voltage from a higher value to lower value.The phasor diagram and potential
This transformer steps down the voltage to a safe limit value which can be easily mea-
sured by ordinary low voltage instrument like a voltmeter, wattmeter and watt-hour me-
ters .Potential transformer has high-quality core operating at low ux density so that the
magnetising current is small. Primary winding has a large number of turns and Secondary
winding has small number of turns.To reduce the leakage reactance, co-axial winding is
of the potential transformer are directly connected to the power circuit whose voltage is
ational amplier in order to have a circuit behave like an ideal diode and rectier.It is
Precision rectier using LT1078 circuit as shown in Figure 4.5. First section of negative
inputs operates as a closed-loop inverter (A=-1) and the second section is just a buer
for the positive output.When the input signal is positive, then the output of rst op-amp
remains saturated near GND, and the diode turn into high-impedance, letting the signal
(PGA), internal reference, and an onboard oscillator. The ADC wide dynamic range,
scalable data rates, and internal fault detect monitors make the ADS131E08 attractive in
industrial power monitoring and protection as well as test and measurement applications.
True high-impedance inputs enable the ADS131E0x to directly interface with a resistor-
or Rogowski coil to measure line current. With high integration levels and exceptional
performance, the ADS131E08 family enables the creation of scalable industrial power
• Outstanding Performance
• Crosstalk: 110 dB
11
Allows DC-Coupling)
are rectier voltage uctuation due to the change in AC voltages we use these Voltage
1. LM7810 the LM78XX series of three terminal positive regulators are available in
the TO-220 package and with several xed output voltages, making them useful in
• Input Voltages:12-35V
many models for xed and adjustable voltage requirements. The IC can deliver a
maximum current of 1A and the output voltage can vary from 1.5V to 5V. It also
has a low drop out voltage of 1.3V when operating at maximum current. As shown
in Figure 4.13
• Input Voltages:6-12V
• IEEE 802.11 bgn Wi-Fi. Protocol: WEP, WPA WPA2, algorithms AES-CCMP
(maximum key length of 256 bits), the maximum range of 100 meters. IEEE 802.15
with 128-bit key, the maximum range of 50 meters.As shown in Figure 4.19
2.0, hardware-accelerated Open VG, and 1080p30 H.264 high-prole decode. Ca-
pable of 1Gpixel per sec, 24GFLOPs with texture ltering and DMA infrastructure
• Operating System Boots from Micro SD card, running a version of the Linux op-
• Video Output HDMI (rev 1.3 and 1.4) Composite RCA (PAL and NTSC)
• Audio Output Audio Output 3.5mm jack HDMI USB 4 x USB 2.0 Connector
• GPIO Connector 40-pin 2.54 mm (100 mil) expansion header: 2x20 strip Providing
• Display Connector Display Serial Interface (DSI) 15 way at ex cable connector
4.7 Software
Laboratory Virtual Instrument Engineering Workbench is a software development envi-
ronment and language developed by National Instruments. Its innovation is that it uses
graphical diagrams rather than lines of text which makes it more intuitive for engineers
Keil MDK is the complete software development environment for a wide range of Arm
Cortex-M based microcontroller devices. MDK includes the MicroVision IDE and de-
adapters allow you to program, debug, and analyze your embedded applications. Here
at present we are in testing phase so we test it on STM Board.Following is the code for
STMBoard
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
#include "main.h"
#include "stm32f4xx_hal.h"
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,GPIO_PIN_RESET);
while (1)
{
//HAL_SPI_Receive(&hspi1,RSPI,19,1);
a=HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_10);
if (a==0)
{
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,GPIO_PIN_RESET);
HAL_Delay(1/1000);
for (int i = 0; i < 19; i++)
{
resp[i] = HAL_SPI_Receive(&hspi1,RSPI,19,1);
}
HAL_Delay(1/1000);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,GPIO_PIN_RESET);
}
for (int ch = 1; ch <= 8; ch++)
{
long val = 0;
long value = 0;
val= (((RSPI[(3*(ch))+0]&0xff) << 16) | ((RSPI[(3*(ch))+1]&0xff) << 8) | (RSPI[(3*(ch))
if( ((val & 0xffffff) & (0x800000)))
{
value = val|0xff000000;
}
else
{
value = val;
}
float volt = (value*2.4/8388607);
if (ch == 1)
{ c1=volt;}
if (ch == 2)
{ c2=volt; }
if (ch == 3)
{ c3=volt; }
if (ch == 4)
{ c4=volt; }
if (ch == 5)
{ c5=volt; }
if (ch == 6)
22
{ c6=volt; }
if (ch == 7)
{ c7=volt; }
if (ch == 8)
{ c8=volt; }
}
}
}
/**
* @brief System Clock Configuration
* @retval None
*/
void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct;
RCC_ClkInitTypeDef RCC_ClkInitStruct;
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE2);
hspi1.Init.TIMode = SPI_TIMODE_DISABLE;
hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
hspi1.Init.CRCPolynomial = 10;
if (HAL_SPI_Init(&hspi1) != HAL_OK)
{
_Error_Handler(__FILE__, __LINE__);
}
GPIO_InitTypeDef GPIO_InitStruct;
/**
* @brief This function is executed in case of error occurrence.
* @param file: The file name as string.
* @param line: The line in file as a number.
* @retval None
*/
void _Error_Handler(char *file, int line)
{
/* USER CODE BEGIN Error_Handler_Debug */
/* User can add his own implementation to report the HAL error return state */
while(1)
{
}
/* USER CODE END Error_Handler_Debug */
}
#ifdef USE_FULL_ASSERT
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
26
#endif /* USE_FULL_ASSERT */
/**
* @}
*/
/**
* @}
*/
Applications
Higher harmonics of the fundamental frequencies in the AC Power Systems is a prob-
lem faced by many Electrical Industries and Power Houses. Due the presence of these
harmonics, life of many electronic components has been shortened. For example, the ca-
pacitors inside these components may draw excessive current and prematurely fail from
increased dielectric loss and heating[5]. Induction motors may refuse to start or may
run at subsynchronous speeds. Circuit breakers may fail to interrupt currents due to
improper operation of blowout coils. Overvoltages and excessive currents in the system
happen due to resonances of harmonics in the network and consequent dielectric insta-
Inorder to overcome this problem rst we much identify these harmonics and their sources
in the AC Power System. Identifying the generation or injecting source is not much of
a problem, since any device with nonlinear characteristics that derive their input power
from a sinusoidal electrical system may be responsible for injecting harmonic currents
The real challenge lies in identifying the order and amplitude of these harmonics[6].This
27
28
time. This data and analysis will help Electrical Engineers in future to remove these
harmonics, once their order and amplitudes are identied correctly, through active or
passive lters.
ing:
• Measurement of THD as well as TDD with local display and via communication
• Measurement of individual harmonics for depth analysis (up to 40th in the basic
Methodology
We are working on 220V wapda supply. As its voltage and current are beyond the ratings
of our controller. So we have to step down both voltage and current so that they can
meet our controller ratings. For this purpose, we have to use current transformer and
potential transformer. They step down the voltage and current to our desired level After
this, we have to use a precision rectier so that the negative cycle can be converted to
positive without the loss of information because controller cannot operate on negative
The analog to digital converter present in the controller is interfaced to convert analog
signal into digital signal so that the controller may process the information.
To operate controller Labview software is used to command controller and to show the
harmonics signals in real time in its GUI. Then, analysis part begins in which we take
Fast Fourier Transform (FFT) and Total Harmonics distortion (THD) of the coming
29
30
6.3 Flowchart
as Shown in Figure 6.2
Deliverables
• A harmonic analyser is a device which is used to measure frequencies, amplitudes,
are electrical voltages and currents that can result in power problems in the electri-
cal system. The high harmonic voltage causes failure in machinery and equipment.
impact of the harmonic distortion depends on how much the electrical power sys-
tem can withstand and the susceptibility of the equipment to harmonic voltage.
• The harmonic analyser is the best equipment to carry out a detailed power quality
analysis in the facility in order to determine the wave shapes of the current and
source of harmonic voltage. This data is used to calculate the harmonic ratio
function at a value that ranges from 0 percent to 100 percent. This indicates the
deviation of both the sinusoidal and sinusoidal waveforms. The resulting values
detect harmonic voltage, thereby preventing any further damage to the equipment
• Using a harmonic analyser, industries can signicantly improve their energy e-
ciency by adopting all possible measures. With the early detection of harmonic
32
33
voltage, industries can replace their older equipment, reducing the risk of any fur-
ysis: an update, IEEE transactions on industry applications, vol. 26, no. 6, pp. 1034
1042, 1990.
R. Barrass, Scientists must write: a guide to better writing for scientists, engineers and
S. Easterbrook, Power Quality in Electrical Systems, Last accessed on May 19, 2010.
D. D. Shipp, Harmonic analysis and suppression for electrical systems supplying static
power converters and other nonlinear loads, IEEE Transactions on Industry Applica-
34