Professional Documents
Culture Documents
Harmonic Mitigation in Power Quality Analysis: A End Term Project Report
Harmonic Mitigation in Power Quality Analysis: A End Term Project Report
Submitted by
in
1
Conten
t
List of Figures.........................................................................................................................................4
1. Introduction.......................................................................................................................................6
1.1 Literature Review.........................................................................................................................6
1.2 Problem Finding...........................................................................................................................7
1.3 Objectives....................................................................................................................................7
2. Methodology....................................................................................................................................8
2.1 Analog Phase-Locked Loop..........................................................................................................8
2.1.1 Working Principle of PLL.......................................................................................................8
2.1.2 Phase-Locked Loop Detector................................................................................................9
2.1.3 Exclusive OR Phase Detector................................................................................................9
2.1.4 Edge Trigger Phase Detector...............................................................................................11
2.1.5 Monolithic Phase Detector.................................................................................................11
2.1.6 Applications of Analog Phase-Locked Loop.........................................................................11
2.1.7 Disadvantage of Analog PLL................................................................................................11
2.2 Digital Phase Locked Loop (DPLL)..............................................................................................11
2.2.1 Working Principle of DPLL...................................................................................................12
2.2.2 Proposed Architecture........................................................................................................13
2.2.3 Digital Phase detector.........................................................................................................13
2.2.4 Digital Loop Filter (DLF).......................................................................................................14
2.2.5 Digital Controlled Oscillator (DCO)......................................................................................14
2.2.6 Programmable Divider........................................................................................................15
2.2.7 Modulated hoping DFT (mHDFT)........................................................................................15
2.2.8 Modulated hoping DFT (mHDFT) Algorithm.......................................................................15
2.2.9 Technique for mHDFT.........................................................................................................17
2.3 White Noise...............................................................................................................................19
2.3.1 Application of Noise............................................................................................................20
Disadvantage of white noise............................................................................................................22
2.3.2 Cramer Rao bound..............................................................................................................22
2.4 SDFT and Sliding Goertzel..........................................................................................................23
2.5 Complexity of different algorithms............................................................................................24
3. Result analysis.................................................................................................................................26
2
3.1 With Noise.................................................................................................................................27
3.1.1 CRLB analysis......................................................................................................................29
3.2 Dc shift applied to input signal...................................................................................................30
3.3 Testing of signal with higher amplitude.....................................................................................31
3.4 Stability of low pass filter...........................................................................................................32
Conclusion...........................................................................................................................................37
References...........................................................................................................................................38
3
List of Figures
Fig. 15: (a) White noise added signal with SNR 0dB
Fig. 15: (b) Extracted harmonic components with noise SNR 0dB
Fig. 16: (a) White noise added signal with SNR 10dB
Fig. 16: (b) Extracted harmonic components with noise SNR 10dB
Fig. 17 MSAE and CRLB for amplitude measurement (MSAE vs. SNR (dB))
4
Fig. 19: (a) Input signal with fundamental harmonic amplitude 100v
Fig 21(a): pole zero plot of SDFT filter with n=20 and k=1
Fig 21(c): pole zero plot of Sliding Goertzel with n=20, k=1
5
1. Introduction
Power quality refers to ability of power system to generate pure noise free sinusoidal power
supply that has stable voltage and frequency associated with it [1]. There are many power
quality concerns like voltage sag, voltage swells, harmonics etc. Poor power quality leads to
wastage of power and money.
Power quality issues (mainly harmonics) in the conventional mode of electricity generation is
not much severe as there was number of non-linear loads which contributes towards
harmonics is negligible in the utility, But due to shortage in resource and power losses we are
shifting toward generation through renewable energy resources like wind, solar etc. [3] which
is based on distributed generating units in which power flow is not unidirectional unlike
conventional one. These sources require power electronic interface to get connected with the
grid and to meet the standard/regulations imposed by the utility.
Hence from above we find that, the modern power system is characterized by the presence of
large number of power electronics converters based distributed generators (DG) along-with
traditional power plants [2]. Almost all these power electronics converters are committed to
provide a controlled and high quality power exchange to the utility or local linear/non-linear
loads connected at the point of common coupling (PCC). Thus there are many issues in
microgrid.
There are many power quality concerns in smart grid [2]. One of the major power quality
concern is harmonic which are generated by non-linear loads. There are various traditional
techniques used to mitigate harmonics [4]. Some of these techniques are line reactor,
isolation transformer, active filters etc.
Out of the various active power filter configurations (series, shunt and hybrid), shunt active
power filter (SAPF) is quite popular to remove harmonics locally at the load side making the
utility free of harmonics [5]. Shunt active filter is used for local compensation but can be
extended to complex multinode system by optimal control techniques. Also there are various
6
controller techniques in SAPF which reduces THD (total harmonic distortion) to certain level
[6].
While studying several issues in modern power system [1] it is found that static DG’s are
used mostly however there are many power quality problems many of which are solved by
power electronic converter like active power filter or power electronics converters like
FACTS devices. Control designs are necessary [6] for proper operation of these devices.
The control schemes (for DGs, FACTS contrivances, APF etc.) that are predicated on the
postulation of the ideal (sinusoidal and balanced set) voltages to tackle these issues, may fail
if the voltage deviates from the ideal conditions. Thus, there is requirement of correct
estimation of the phase, frequency and the amplitude of the voltage under all (ideal and non-
ideal) conditions for the congruous operation of the DGs (or converters). Therefore it is
important to first attend the issue of correct estimation of the phase, frequency and the
amplitude of the fundamental positive sequence component of the grid signal [7].
The phase locked loop (PLL) which is based on time domain analysis is used to estimate
unknown quantity from PCC. The conventional PLL is unable to determine the unknown
quantity if grid signals are highly distorted (harmonics). Several modifications are there for
PLL like improved generalised filter enhanced phase locked loop (IGFEPLL) based control
algorithm [7]. This control algorithm estimates the amplitude and phase of signal.
Digital phase lock loop can be also used to extract harmonics by using modulated hopping
DFT (mHDFT) [8] which is used for up to 13th order harmonic mitigation. Digital phase lock
loop has several advantages over analog one and thus can be applied to mitigate harmonic
problems.
1.3 Objectives
1. Extraction of harmonics higher order harmonics using mHDFT algorithm in Digital
phase lock loop.
2. Reduction of error in mean square amplitude error (MSAE) due to adding white noise
as compared with Cramer-Rao lower bound in mHDFT algorithm.
3. Improvement in stability of existing mHDFT filters.
4. Reduction in time complexity of mHDFT filter.
7
8
2. Methodology
2.1 Analog Phase-Locked Loop
A phase-locked loop consists of a phase detector and a voltage controlled oscillator.
The output of the phase detector is the input of the voltage-controlled oscillator (VCO)
and the output of the VCO is connected to one of the inputs of a phase detector
which is shown below in the basic block diagram. When these two devices are feed
to each other the loop forms.
The phase-locked loop is one of the basic blocks in modern electronic systems [9-10].
It is generally used in multimedia, communication and in many other applications.
There are two different types of PLL’s – linear and nonlinear. The nonlinear is difficult
and complicated to design in the real world, but the linear control theory is well
modelled in analog PLL’s. The PLL has proved that a linear model is sufficient for
most of the electronic applications.
÷N
Counter
9
2.1.1 Working Principle of PLL
The phase-locked loop consists of a phase detector, a voltage controlled oscillator and,
in between them, a low pass filter is fixed. The input signal ‘Vi’ with an input
frequency ‘Fi’ is conceded by a phase detector. Basically the phase detector is a
comparator that compares the input frequency fi through the feedback frequency fo.
The output of the phase detector is (fi+fo) which is a DC voltage. The out of the
phase detector, i.e., DC voltage is input to the low pass filter (LPF); it removes the
high-frequency noise and produces a steady DC level, i.e., Fi-Fo. The Vf is also a
dynamic characteristic of the PLL.
The output of the low pass filter, i.e., DC level is passed on to the VCO. The input
signal is directly proportional to the output frequency of the VCO (fo). The input and
output frequencies are compared and adjusted through the feedback loop until the
output frequency is equal to the input frequency. Hence, the PLL works like free running,
capture, and phase lock.
10
fi
Vdc
f0
fi f0 Output
11
2.1.4 Edge Trigger Phase Detector
An edge trigger phase detector is used when the input and output frequencies are in
pulse waveform, which is less than 50% duty cycle. The R-S flip flop is used for the
phase detectors, which is shown in the below figure. From R-S flip flop , the two NOR
gates are cross-coupled. The output of the phase detector can change its logic state by
triggering the R-S flip flop. The positive edge of the input and output frequencies can
change the output of the phase detector.
12
Loop Filter
Digital Controlled Oscillator (DCO)
Divider
The local oscillator which is used in DCO occupies more space where they produce a very good
shape of sine wave and have frequency stability. The frequency is not changed whenever DC
supply voltage is changed where it occupies more space and the complexity gets increases. The
digital controlled oscillator with power amplifier uses the transformer of six ports where the
area of the chip is reduced. Time to digital converter basically consumes more time the
optimization of power is not managed properly. By using the fewer dithers in digital controlled
oscillator (LC oscillator) is coupled inductively to the varactor diode that maintains the tuning
range of the system.
The gated oscillator which uses five stage inverter rather than counters that reduces the leakage
power of the system. The capacitor based oscillator which produces better resolution and
occupies very less area but consumption of power is too high by using ladder based switched
capacitor . Injection based oscillator which is used in the generation of clock avoids the
accumulation of jitter due to rising edge of the clock. It improves the performance characteristic
of jitter. Though it reduces the jitter characteristic the robustness of spur is increased and the
overall efficiency of power is not optimized. Thus the scalability is reduced by the injection of
clock in the oscillator. The increment and decrement counter which has a
better hold and lock in range where the implementation in software is not highly possible . The
delay based digital controlled oscillator consumes less power but the period of locking is
13
comparatively high than the ring oscillator. The Architecture consists of all digital parts such as
digital phase detector, digital loop filter and digitally controlled oscillator. It is feedback loop
where the reference signal is given as input to the phase detector and the v out is taken as output
from the DCO and it is feedback to the phase detector until the phase is locked.
14
Fig. 6: Block diagram of Linear Phase Detector
15
Fig. 7: Block diagram of digital control oscillator
16
M −1
Sm (k )= ∑ x ( p+n)W −kn
M for k =0 , 1… M −1 (0)
n=0
Where p = m−M +1, and W M is the twiddle factor term. The recurring structure of (1) can be
represented by
Where d(m) = x(m)−x(m−M). By introducing random time hop L in SDFT, the Hopping
DFT(HDFT) algorithm can be expressed as
Sm ( k ) = W Lk S L
M [ m− L(k)+ D m (k)] (0)
L
Where Dm(k) is updating vector transform (UV T) that can be computed from fast DFT
algorithm. The UV T is expressed in (4).
L−1
DmL(k) = ∑ d (m−t)W (Mt− L+1) k (0)
t =0
From (5), it is shown that the location of zeros and poles is dependent on M. Theoretically
HDFT is stable, but practically, it isn’t stable due to presence of twiddle factor (W kM ). Twiddle
factor may moves the poles and zeros from the unit circle and causes the system unstable [21].
17
To get rid of this issue frequency shift property is introduced in DFT to shift the k th bin DFT to
bin index at k = 0 by multiplying the input signal x(m) with modulating sequence W km0 M . By
introducing frequency shifting property and utilizing DFT value at k = 0, HDFT structure can
be modified as
L−1
Sm(k) = Sm− L(0) + ∑ d (m−t) (0)
t =0
0k
The input sequence in (6) can be multiplied by factor W −m M to shift k th bin DFT to index k = 0.
Then, the phase correction term W −M(m 0+ L ) k is required to multiply at the output to correct the
accumulated phase due to the modulation in time sequence. Therefore, the mHDFT is derived
from standard SDFT algorithm without any phase error as
The computation workload of DFT, SDFT and SFFT depends on the size of M, where as it
depends on size of M as well as L for both HDFT and mHDFT. Since L is smaller than M, first
three methods require larger CM and CA computations compared to last two methods. Both
algorithms HDFT and mHDFT need same CA, but mHDFT requires more CM. This is due to
the fact that phase correction modulation sequence is introduced in mHDFT. Even though
mHDFT requires more computation than HDFT , it gives better accuracy as the twiddle factor
term is removed from recursive part by utilizing the modulation in time sequence from bin k =
0. Therefore, it is more superior than remaining HDFT algorithms at the expanse of little more
computation.
18
Numerically Controlled Oscillator (NCO). The mHDFT filter is designed by cascading single
comb filter and multiple resonators for bin k = 1, 3, 5, 7, 9, 11, and 13. The resonator
corresponding to bin value k = 1 is selected in designing a band pass filter to pass the
fundamental frequency f1 = 50 Hz from the input signal x(m). In power system application, odd
harmonics are more significant compared to even harmonics.
Therefore, an input signal having fundamental frequency of f1 = 50 Hz and its odd harmonics
up to 13th components is given in (8).
The harmonic signal x(m) represents the current or voltage in the power system up to 13th
harmonic. The resonator output is segregated into in-phase yI (m) and quadrature phase yQ(m)
components. Since the resonator for bin k = 1 is selected, the quadrature phase component is
derived as yQ(m) = AQ cos(2π50m + φ) where AQ is the amplitude and φ is the phase
difference that appears at the mHDFT output. The quadrature signal yQ(m) is allowed to
multiply with input signal x(m) to generate the dc and harmonic components of 50 Hz. The
resultant signal is passed through moving averager filter which acted as lowpass filter.
Therefore, fundamental frequency and higher harmonics are normally removed through
averager filter. Due to the leakage effect while designing the mHDFT, the output signal may
not be in pure sinusoidal from. The leakage effect normally arises from finite-precision effects
in the implementation of the adaptive filter design. If coefficient drift appears due to twiddle
factor terms there will be leakage effect. In such condition, a proper tuning is required to
smoothen the output signal.
A. Low-Pass Filter
19
A low-pass filter is designed from the standard SDFT structure by selecting bin k = 0. The
transfer function is given in (9).
1 [1−z −M ]
H MA(z) =
M −[1−Z ]
−1 (0)
The system function contents M zeros and one pole at z = 1. A single pole at z = 0 is canceled
out by a zero and resulting all zero filter. Therefore, the system is just a moving averager filter
as the output is weight-sum of the input signal. If the input signal (i) is multiplied with the
quadrature components yQ(m), then the resultant signal yMA(m) contents different harmonic
components.
When yMA(m) (10) is applied to the low-pass filter (9), it will block the fundamental frequency
( f1 = 50Hz) and harmonic components of the input signal (8). DC component and its nearby
frequencies passed through the averager filter. Further, proper tuning is required to remove the
low frequency terms at the output of low pass filter.
B. PI Controller
A discrete PI controller is introduced in the PLL loop which consists of proportional and
integral controllers. Even when the phase error is zero under steady state condition, PI
controller continuously sends the dc input to the NCO unit. It helps in smoothening the output
signal through the proper selection of proportional and integral gains. The recurring structure of
PI controller is defined in (iv).
KI
H PI(z) = K p +
(1−z −1)
(0)
where KP and KI are proportional and integral gains respectively. The output of PI controller is
limited to ±1 through a limiter and then fed as input signal to NCO.
20
where β is the controller output, x1(k) and x2(k) are Latch outputs. The output x1(k) is selected
and compared with reference signal (yr = 0) which acted as zero-crossing detector. The output
of zero-crossing detector is applied to a pulse generator to generate variable pulses. Therefore,
sampling frequency is adjusted according to sampling pulses that is delivered by NCO output to
the other units. Finally, NCO unit is designed to generate sampling pulses based on the output
of PI controller.
In signal processing [12], white noise is a random signal having equal intensity at different
frequencies, giving it a constant power spectral density. The term is used, with this or similar
meanings, in many scientific and technical disciplines, including physics, acoustical
engineering, telecommunications, and statistical forecasting. White noise refers to a statistical
model for signals and signal sources, rather than to any specific signal.
2.3.1 Application of Noise
Music
White noise is commonly used in the production of electronic music, usually either directly or
as an input for a filter to create other types of noise signal. It is used extensively in audio
synthesis, typically to recreate percussive instruments such as cymbals or snare drums which
have high noise content in their frequency domain. A simple example of white noise is a non-
existent radio station (static).
Electronics engineering
White noise is also used to obtain the impulse response of an electrical circuit, in particular of
amplifiers and other audio equipment. It is not used for testing loudspeakers as its spectrum
contains too great an amount of high frequency content.
21
Computing
White noise is used as the basis of some random number generators. For example,
Random.org uses a system of atmospheric antennae to generate random digit patterns from
white noise.
Tinnitus treatment
White noise is a common synthetic noise source used for sound masking by a tinnitus masker.
White noise machines and other white noise sources are sold as privacy enhancers and sleep
aids (see music and sleep) and to mask tinnitus.[9] Alternatively, the use of an FM radio tuned
to unused frequencies ("static") is a simpler and more cost-effective source of white noise.
However, white noise generated from a common commercial radio receiver tuned to an
unused frequency is extremely vulnerable to being contaminated with spurious signals, such as
adjacent radio stations, harmonics from non-adjacent radio stations, electrical equipment in the
vicinity of the receiving antenna causing interference, or even atmospheric events such as
solar flares and especially lightning.
Work environment
Noise upon cognitive function is mixed. Recently, a small study found that white noise
background stimulation improves cognitive functioning among secondary students with
discredit is (ADHD), while decreasing performance of non-ADHD students. Other work
indicates The effects of white effective in improving the mood and performance of workers by
masking background office noise, but decreases cognitive performance in complex card
sorting tasks.
NOISE SOURCES AND SPECTRAL DENSITY
The fourth consideration is the ADC clock aperture jitter. Its effect can be estimated by When
a signal is sampled with an ADC, the digitized signal contains the wanted signal, plus noise
which arises via four mechanisms. The noise degrades the SNR from infinity, to some finite
number expressed in decibel. First, all analog input circuitry introduces a level of unavoidable
white noise. Second, some applications apply ADC dithering techniques to improve linearity,
which deliberately add white noise to the analog signal. Third, the signal is quantized as it is
sampled by the ADC, and assigned a digital value. The ADC quantization is (in theory)
perfect, but in reality also exhibits some level of integral nonlinearity (INL) and differential
nonlinearity
where tRMS is the ADC clock aperture jitter (which should be much smaller than, and
distinguished from, clock accuracy and wander). In most commercial power system
applications, noise due to jitter is acceptably low, since fC is low (50–60 Hz), and typically trms
< 1 ns. For example, the AD7863 ADC has an aperture jitter of 50 ps [14], equating to an SNR
of ∼156 dB which is high, so that its effect is insignificant compared to other noise
mechanisms. A sampling process with N bits will always have ENOB ≤ N, by a quantity
dependent on the analog noise, and ADC imperfections. Some ADCs provide a recalculated
estimate of inherent ENOB which account for several of the mechanisms, at least in part.
22
However, the ENOB may be further degraded in the final application, due to analog sensors,
cables, circuits or amplifiers in the signal chain.
By convention, quoted ENOB values assume that the measurement signal spans the full ADC
range. However, in a practical application this is often not the case. ADCs need to be scaled so
that they can capture signal amplitudes larger than nominal without clipping. At the same time,
the most challenging measurement conditions include those where the signal amplitude is
smaller than nominal. In these cases, the practical SNR is degraded, by
A FullScale
SNR practical dB = SNRdB − 20 log10 ( A ) dB (0)
Actual
A Full Scale Actual dB (10) where A Full Scale is the maximum amplitude which can be measured
without clipping, and AActual is the actual signal amplitude.
In a scenario with a known (or estimated) SNR, at a sampling frequency fS, the relative power
spectral density of noise LdBc( f ) can be evaluated as
fs
LdBc( f ) = −SNRdB − 10 log10 ( 2 ) dBc/Hz (0)
Noise Reduction
All real measurements are disturbed by noise. This includes electronic noise, but can also
include external events that affect the measured phenomenon — wind, vibrations, the
gravitational attraction of the moon, variations of temperature, variations of humidity, etc.,
depending on what is measured and of the sensitivity of the device. It is often possible to
reduce the noise by controlling the environment. Internal electronic noise of measurement
systems can be reduced through the use of low-noise amplifiers.
When the characteristics of the noise are known and are different from the signal, it is possible
to use a filter to reduce the noise. For example, a lock-in amplifier can extract a narrow
bandwidth signal from broadband noise a million times stronger.
When the signal is constant or periodic and the noise is random, it is possible to enhance the
SNR by averaging the measurements. In this case the noise goes down as the square root of
the number of averaged samples.
23
this filter will not be enough, which can lead to the equipment not receiving a signal and no
communication taking place at all.
2 σ2
CRLB=
M
(0)
here M is the sampled length and σ is the noise variance.
Cramer-Rao Lower Bound on Frequency Offset Estimation Error is reported in literature [13].
The Goertzel algorithm [14], used in dual-tone multifrequency decoding and phase-shift
keing/frequency-shift keying modem implementations, is commonly used to compute DFT
Spectra. The algorithm is implemented in the form of a second-order infinite impulse
response(IIR) filter. This filter computes a single DFT output (the kth bin of an N-point DFT)
defined by
N −1 πkn
− j2
X(k)¿ ∑ x (n)e N
(17)
n=0
The filter’s y(n) output is equal to the DFT output frequency coefficient,X(k), at the time index
n = N. For emphasis, we remind the reader that the filter’s y(n) output is not equal to X(k) at
any time index when n ≠ N. The frequency-domain index k is an integer in the range 0 ≤ k ≤ N
− 1. The z-domain transfer function of the Goertzel filter is
1−e− j 2 πk /n z−1
Hg(Z)= 1−2 cos 2 πk z −1 + Z−2 (18)
n ( )
24
with a single z-domain zero located at z =e− j2 πk/ nand conjugate poles at z = e j 2 πk /n. The
pole/zero pair at z = e− j2 πk/N cancels each other. The frequency magnitude Response shows
resonance centred at a normalized frequency of 2πk/N, corresponding to a cyclic frequency k f
N s ⋅ / Hz (where f s is the signal sample rate). While the Goertzel algorithm is derived from the
standard DFT equation, it’s important to realize that the filter’s frequency magnitude response
is not the sin(x)/(x)-like response of a single-bin DFT. The Goertzel filter is a complex
resonator having an infinite- length unit impulse response, h(n) = e j 2 πk /n , and that’s why its
magnitude response is so narrow.
The sliding DFT (SDFT) algorithm [14] performs an N-point DFT on time samples within a
sliding-window. In this example the SDFT initially computes the DFT of the N = 16 time
samples in Figure 3(a). The time window is then advanced one sample, as in Figure 3(b), and a
new N-point DFT is calculated. The value of this process is that each new DFT is efficiently
computed directly from the results of the previous DFT. The incremental advance of the time
window for each output computation is what leads to the name sliding DFT or sliding-window
DFT. The principle used for the SDFT is known as the DFT shifting theorem or the circular
shift property. It states that if the DFT of a windowed (finite-length) time-domain sequence is X
k ( ), then the DFT of that sequence, circularly shifted by one sample, is X(k)e− j2 πk/ n. Thus the
spectral components of a shifted time sequence are the original (unshifted) spectral components
multiplied by e− j2 πk / n , where k is the DFT bin of interest.
We express this process by
1−z −N
H(z)= − j2
πk
N −1
(19)
1−e z
25
This complex filter has N zeros equally spaced around the z-domain’s unit circle, due to the N-
delay comb filter, as well as a single pole cancelling the zero at z = e j 2 πk /n. Because of the comb
subfilter, the SDFT filter’s complex sinusoidal unit impulse response is finite in length,
truncated in time to N samples, and that property makes the frequency magnitude response of
the SDFT filter identical to the sin(Nx)/sin(x) response of a single DFT bin centered at a
normalized frequency of 2πk/N. One of the attributes of the SDFT is that once Sk(n-1) an is
obtained, the number of computations to calculates Sk(n) is fixed and independent of N. The
SDFT filter is only marginally stable because its pole resides on the z-domain’s unit circle. If
filter coefficient numerical rounding error is not severe, the SDFT is bounded-input,
bounded-output stable. Filter instability can be a problem, however, if numerical coefficient
rounding causes the filter’s pole to move outside the unit circle. We can use a damping factor r
to force the pole to be at a radius of r inside the unit circle and guarantee stability using a
transfer function of
1−r z−N
H(z)= −j2
πk
N −1
(20)
1−ℜ z
Algorithm CM CA
DFT M2 M2 - M
SDFT 2M 4M
SFFT M 2M
The computational workload comparison for different DFT algorithms is given in Table I. The
symbols CM and CA are the number of complex multiplication and complex addition
respectively, where M is window length and L is hopping length. The computation workload of
DFT, SDFT and SFFT depends on the size of M, where as it depends on size of M as well as L
for both HDFT and mHDFT. Since L is smaller than M, first three methods require larger CM
and CA computations compared to last two methods. Both algorithms HDFT and mHDFT need
same CA, but mHDFT requires more CM. This is due to the fact that phase correction
modulation sequence is introduced in mHDFT. Even though mHDFT requires more
computation than HDFT , it gives better accuracy as the twiddle factor term is removed from
recursive part by utilizing the modulation in time sequence from bin k = 0. Therefore, it is
more superior than remaining HDFT algorithms at the expanse of little more computation.
26
3. Result analysis
The performance of the proposed PLL model for harmonic extraction is verified through
simulation. The mHDFT is implemented with window length 128 and hopping length L = 4.
Sampling frequency is taken to be 4 times fundamental frequency multiplied by window
length. The discrete domain signal with harmonics component up to 13 th order is considered
as a signal from power system.
Input signal,
x(m)=sin(2π50m)+0.333sin(2π150m)+0.2sin(2π250m)+0.143sin(2π350m)+0.111
sin(2π450m)+0.09 sin(2π550m)+0.077 sin(2π650m) (21)
27
Fig 14: Extracted harmonic components
In fig 14 corresponds to fundamental frequency component and 3rd, 5th, 7th, 9th, 11th and
13th harmonic components.
From the figure it is evident that PLL starts tracking the input after 20ms which is
fundamental time period. This means that the proposed phase-locked loop has the locking
time of 20 ms. The amplitude and frequency are accurately been tracked by the PLL. The
PLL thus works good.
A2 (22)
SNR=10log 2
2σ
28
Here A2 is power of input signal.
The input signal added with SNR 0 dB is shown in Fig 15(a) and the extracted components is
shown in Fig 15(b). The harmonics components have clearly no frequency error but there is
amplitude error as clearly visible. The amplitude error is measured in terms of means square
amplitude error (MSAE) and the graph is plotted for MSAE vs. SNR of noise added. The
graph is compared with CRLB. The comparison plot is shown in fig 17. The input signal
added with SNR 10 dB is shown in Fig 16(a) and the extracted components is shown in Fig
16(b). The harmonics components have clearly no frequency error but there is amplitude
error as clearly visible. The amplitude error is less that SNR 0 dB.
Fig. 15: (a) White noise added signal with SNR 0dB
29
Fig. 15: (b) Extracted harmonic components with noise SNR 0dB
Fig. 16: (a) White noise added signal with SNR 10dB
30
Fig. 16: (b) Extracted harmonic components with noise SNR 10dB
Fig. 17 MSAE and CRLB for amplitude measurement (MSAE vs. SNR (dB))
31
3.2 Dc shift applied to input signal
The input sign in eqn 20 is added with dc signal of 5V and the plot is obtained in Fig 18. The
extracted components are perfect in frequency and amplitude and there is no error. Thus the
filter works for dc shift also.
Input signal,
32
x(m)=100sin(2π50m)+40sin(2π150m)+30sin(2π250m)+20sin(2π350m)+
10sin(2π450m)+5 sin(2π550m)+ 4sin(2π650m)
(23)
The input signal is show in Fig 19(a) and harmonic components extracted are shown in Fig
19(b). The extracted components are having no error in amplitude measurement and
frequency measurement. Thus the filter works for higher amplitude also.
Fig. 19: (a) Input signal with fundamental harmonic amplitude 100v
33
3.4 Stability of low pass filter
From the pole zero plot of low pass filter there are 128 zeros for M=128 on unit circle and
and one pole on unit circle. The filter is thus marginally stable. The frequency response is
plotted in figure 16 (b). Clearly from frequency response we can say the filter work as low
pass filter. The transfer function used is,
1−z−M
HMA(z)= M [1−Z−1 ]
(24)
34
Fig 20(b): frequency of low pass filter
Pole zero plot of SDFT filter with N=20 and k=1 is show in 21(a). The SDFT filter is only
marginally stable because its pole resides on the z-domain’s unit circle. If filter coefficient
numerical rounding error is not severe, the SDFT is bounded-input, bounded-output stable.
Filter instability can be a problem, however, if numerical coefficient rounding causes the
filter’s pole to move outside the unit circle. We can use a damping factor r to force the pole to
be at a radius of r inside the unit circle and guarantee stability. The frequency response is
plotted in fig 21(b) and clearly one can see the filter work for passing fundamental frequency
as k=1.
1−z −N
H(z)= − j2
πk
N −1
1−e z (25)
35
Fig 21(a): pole zero plot of SDFT filter with n=20 and k=1
36
Pole zero plot of Sliding Goertzel filter with N=20 and k=1 is show in 21(c). Clearly this is
marginally stable but computation is less than SDFT. The frequency maginitude response
shown in fig 21(d) show resonance centred at normalised frequency 2πk/n (=0.314 for n=1
k=20).
1−e− j 2 πk /n z−1
H(z)= 1−2 cos 2 πk z−1 + Z−2
n ( ) (26)
Fig 21(c): pole zero plot of Sliding Goertzel with n=20, k=1
37
Fig 21(d): frequency response of Sliding Goertzel
Conclusion
From the various literature we have find the current problems in power quality in modern
power system. The major problem we find is that of harmonic. The digital PLL with certain
algorithm like mHDFT can be also used to extract harmonic which has better accuracy than
HDFT or SDFT. By simulation we have successfully implemented mHDFT technique in
phase lock loop and found that it can be applied in power system for harmonic estimation.
Also noise handling capacity is tested of filter. The algorithm gives less computation and
higher accuracy compared with other DFT algorithms. The capability of the harmonic
measurement has been verified for odd harmonic range from 50 Hz to 650 Hz. The filter is
checked with noise of different SNR. The MSAE is compared with CRLB and as a result we
get the estimator can work best with SNR upto -20 dB. The filter is also checked with high
amplitude input signal and the result shows it works well for higher amplitude. The dc shift
of input signal is also checked and we again found it work’s good. Finally we can conclude
the technique works well and can be applied to analyse harmonic components in power
system.
38
References
[1] E. Hossain, M. R. Tur, S. Padmanaban, S. Ay, I. Khan, “Analysis and Mitigation of
Power Quality Issues in Distributed Generation Systems Using Custom Power
Devices,” IEEE Access, vol. 6, pp. 16816-16833, 2018.
[5] H. Zhai, F. Zhuo, C. Zhu, et al., "An Optimal Compensation Method of Shunt Active
Power Filters for System-Wide Voltage Quality Improvement," IEEE Trans.
Industrial Electronics, vol. 67, no. 2, pp. 1270-1281, 2020.
39
& Signal Processing, 2005, pp. 1231-1235.
[14] Jacobsen, E., Lyons, R. . The sliding DFT. IEEE Signal Processing Magazine, 20(2),
2003, 74–80.
40