Energies 2015, 8, 9282-9295; doi:10.3390/en8099282 OPEN ACCESS
energies ISSN 1996-1073 www.mdpi.com/journal/energies Article
A Two-Stage Algorithm to Estimate the Fundamental Frequency of Asynchronously Sampled Signals in Power Systems Joon-Hyuck Moon 1, Sang-Hee Kang 1, Dong-Hun Ryu 2, Jae-Lim Chang 2 and Soon-Ryul Nam 1,* 1
2
Department of Electrical Engineering, Myongji University, Yongin 449-728, Korea; E-Mails:
[email protected] (J.-H.M.);
[email protected] (S.-H.K.) Industrial Physical Instrument Center, Korea Testing Laboratory, Ansan 426-901, Korea; E-Mails:
[email protected] (D.-H.R.);
[email protected] (J.-L.C.)
* Author to whom correspondence should be addressed; E-Mail:
[email protected]; Tel.: +82-31-330-6361; Fax: +82-31-330-6816. Academic Editor: Ying-Yi Hong Received: 9 July 2015 / Accepted: 21 August 2015 / Published: 28 August 2015
Abstract: A two-stage algorithm is proposed for the estimation of the fundamental frequency of asynchronously sampled signals in power systems. In the first stage, time-domain interpolation reconstructs the power system signal at a new sampling time and the reconstructed signal passes through a tuned sine filter to eliminate harmonics. In the second stage, the fundamental frequency is estimated using a modified curve fitting, which is robust to noise. The evaluation results confirm the efficiency and validity of the two-stage algorithm for accurate estimation of the fundamental frequency even for asynchronously sampled signals contaminated with noise, harmonics, and an inter-harmonic component. Keywords: fundamental frequency estimation; two-stage algorithm; time-domain interpolation; tuned sine filter; modified curve fitting
1. Introduction Sampling-based power measurements are typically carried out using a clock signal that is synchronized with the signal from the power system under analysis. However, often there may be no means of synchronizing the clock signal to the power system signal, and power measurements are instead based on asynchronous sampling of power system signals. These circumstances include
Energies 2015, 8
9283
industrial measurements and high-precision calibrations in metrology laboratories. Under such circumstances, accurate estimation of the fundamental frequency of power system signals is essential to minimize the errors caused by asynchronous sampling. Numerous studies have estimated the fundamental frequency of asynchronously sampled signals, and several interesting results have been published in recent decades. Spectral techniques [1–5] are among the most popular approaches because of their low computational burden and feasibility for real-time applications. When asynchronously sampled data are processed using a discrete Fourier transform (DFT) to extract frequency information, the spectral leakage error is appended to the calculated result. Spectral techniques compensate for this leakage error to estimate the fundamental frequency. Orthogonal techniques [6–14] are another of the most popular approaches for real-time applications. In this approach, filters generate orthogonal signals and complex vectors, which are used to estimate the fundamental frequency. However, the calculation accuracy of spectral and orthogonal techniques is limited, and does not satisfy the precision required for certain applications. In contrast, time-domain techniques, such as curve fitting [15–19] and parametric interpolations [20–23], are capable of highly accurate frequency estimation, at the cost of a higher computational burden. Curve fitting algorithms are commonly used in time-domain techniques because of their robustness to noise. In particular, the four-parameter sine fit (4PSF) algorithm [16] performs close to the Cramer Rao lower bound (CRLB), which is the theoretical limit of variance for an unbiased estimator, for almost all noise levels [24,25]. The 4PSF algorithm is more suited to less distorted steady-state waveforms, since its performance significantly degrades as total harmonic distortion (THD) increases. Parametric interpolations, such as cubic spline interpolations [20,21] and Newton interpolations [22,23], offer an alternative time-domain approach and are used to modify the sampling rate of an analog-to-digital conversion in software. In particular, the time-domain interpolation and scanning (TDIS) algorithm [20] reconstructs a waveform by cubic spline interpolation to find a new sampling rate that is an integer multiple of the fundamental frequency using a scanning procedure. The phase drift in the reconstructed waveform is used to estimate the fundamental frequency and iteratively correct the waveform. The TDIS algorithm gives greater frequency errors in the presence of inter-harmonics. In the opposite sense to the TDIS algorithm, which modifies the sampled signal to synchronize with the estimated frequency, the phase sensitive frequency estimation with interpolated phase (PSFEi) algorithm [26,27] modifies the frequency of the sine waves used in curve fitting to synchronize with the sampled data. The PSFEi algorithm calculates the phase increase of the fundamental component between two groups within the sampled data using the three-parameter sine fit (3PSF) algorithm [28] and then updates the fundamental frequency to be consistent with the phase increase. To minimize the effect of harmonic components, the phase increase in the final iteration is interpolated to an exact integer number of fundamental cycles. The PSFEi gives greater frequency errors in the presence of fluctuating harmonics. In this paper, a two-stage algorithm is proposed for accurate estimation of the fundamental frequency of asynchronously sampled signals regardless of noise and harmonics. The remainder of the paper is organized as follows: frequency estimation using the two-stage algorithm is formulated in Section 2, and the performance of the algorithm is evaluated in Section 3 using both computer simulations and a hardware implementation. Conclusions are presented in Section 4.
Energies 2015, 8
9284
2. Two-Stage Algorithm for Estimating a Fundamental Frequency Assuming that a power system signal has a purely sinusoidal waveform with a fundamental frequency ωf (rad/s), amplitude Af (V or A), and phase θf (rad), the NM-point data uniformly sampled with a sampling time Δt can be described in discrete time steps as follows:
y (n) Af cos(ω f n
2π θ f ) Af cos(ω f nt θ f ) n 1, , N M ω0 N 0
(1)
where ω0 (rad/s) is a nominal frequency and N0 is the number of samples per cycle at ω0. 2.1. Tuned Sine Filtering Followed by Time-Domain Interpolation Harmonics within a power system signal make accurate estimation of the fundamental frequency difficult. To eliminate these harmonics from the power system signal, a sine filter is usually used and its reference frequency is typically set to the nominal frequency [11]. When the fundamental frequency is equal to the reference frequency, the sine filter can eliminate harmonics from the power system signal perfectly. However, when the fundamental frequency deviates from the reference frequency, harmonics may not be eliminated effectively. To overcome this drawback, this paper proposes a tuned sine filter that adjusts its reference frequency to synchronize with an estimate of the fundamental frequency. The filter length should be matched to the number of samples per cycle at the reference frequency to keep its ability to eliminate harmonics. To meet this constraint, time-domain interpolation is used to reconstruct the power system signal at a new sampling time corresponding to the reference frequency, prior to applying the tuned sine filter. ˆ (fi 1) is an estimate of the fundamental frequency at the previous iteration (i – 1), Assuming that ω which will be used as the reference frequency for the tuned sine filter, the new sampling time tˆ( i ) is given as: tˆ(i )
2π ˆ N0 ω
(2)
( i 1) f
To reconstruct the power system signal at the new sampling time, application of cubic spline interpolation to Equation (1) yields:
yˆ (i ) (n) Af cos(ω f ntˆ(i ) θ f ) n 1,, Nˆ M(i )
(3)
N t where Nˆ M(i ) is the number of samples in the reconstructed signal and is given as Mtˆ(i ) . The algorithm
used to compute the splines and interpolation is taken from [29]. Using the estimate of the fundamental frequency as the reference frequency for the tuned sine filter, the coefficients of the filter are given by:
H S ( n)
2 2 n ˆ (fi 1) ntˆ(i ) ) sin(ω sin(2π ) N0 N0 N0
n 1, , N 0
(4)
It is noted that the coefficients of the filter are independent of the estimate of the fundamental frequency since this has already been considered in the calculation of the new sampling time, given in Equation (2). Applying Equation (4) to yˆ (i ) (n) in Equation (3) yields a sine-filtered signal:
Energies 2015, 8
9285
yˆ S(i ) (n) Af | H S (ω f ) | cos(ω f ntˆ(i ) θ f H S (ω f )) n N 0 , , Nˆ M(i )
(5)
where | H S (ω f ) | and H S (ω f ) are the amplitude and phase response of the tuned sine filter at ωf, respectively. Some minor calculations yield:
yˆ S( i ) ( n) C f cos(ω f ntˆ ( i ) ) S f sin(ω f ntˆ ( i ) ) n N 0 , , Nˆ M( i )
(6)
where: C f A f | H S (ω f ) | cos(θ f H S (ω f )) S P A f | H S (ω f ) | sin(θ f H S (ω f )) 2.2. Modified Curve Fitting with an Unknown Frequency The 3PSF algorithm performs a least-squares curve fitting on the sampled data to find the DC component, and the amplitude and phase of the component at a known frequency [28]. In the 4PSF algorithm, the frequency itself is treated as an unknown parameter to be found. Although the 4PSF algorithm is more computationally complex, this algorithm is recommended for sampled data containing five or more cycles of the power system signal [16,30], because the 4PSF algorithm usually determines the frequency to greater accuracy even if it is accurately known a priori. Since the tuned sine filter, which is used prior to applying the modified curve fitting, can eliminate the DC component, it can be assumed that there is no DC component in the sine-filtered signal given in Equation (6). Therefore, the number of modeling parameters in the 4PSF algorithm can be reduced from four to (i ) (i ) ˆ (fi ) are three: the fundamental frequency, amplitude, and phase. Assuming that Cˆ f , Sˆ f , and ω estimates of Cf, Sf, and ωf in Equation (6) respectively, the sine-filtered signal of Equation (6) can be expressed as: ˆ (fi ) ntˆ ( i ) ) Sˆ (f i ) sin(ω ˆ (fi ) ntˆ ( i ) ) n N 0 , , Nˆ M( i ) yˆ S( i ) ( n) Cˆ (f i ) cos(ω
(7)
To find an iterative form of Equation (7), a Taylor series expansion of the cosine function in ˆ (fi 1) : Equation (7) is taken around the previous frequency estimate ω
ˆ (fi ) ) ntˆ(i ) ) ˆ (fi 1) ω ˆ (fi ) ntˆ(i ) ) cos((ω cos(ω ˆ (fi ) ntˆ(i ) ) ˆ (fi 1) ntˆ(i ) )sin(ω ˆ (fi ) ntˆ(i ) ) sin(ω ˆ (fi 1) ntˆ(i ) ) cos(ω cos(ω ˆ (fi ) ntˆ(i ) ˆ (fi 1) ntˆ(i ) )ω ˆ (fi 1) ntˆ(i ) ) sin(ω cos(ω cos(
(8)
2πn 2πn ˆ (fi ) ntˆ(i ) ) sin( )ω N0 N0
ˆ (fi 1) : Similarly, a Taylor series expansion of the sine function in Equation (7) is taken around ω ˆ (fi ) ntˆ(i ) ) sin( sin(ω
2πn 2πn ˆ (fi ) ntˆ(i ) ) cos( )ω N0 N0
Substitution of Equations (8) and (9) into Equation (7) yields:
(9)
Energies 2015, 8
9286
yˆ S( i ) ( n) Cˆ (f i ) {cos(
2πn 2πn 2πn 2πn ˆ (fi ) ntˆ ( i ) } ˆ (fi ) ntˆ ( i ) } Sˆ (f i ) {sin( ) sin( ) ω ) cos( ) ω N0 N0 N0 N0
2πn 2πn 2πn 2πn ) Sˆ (f i ) sin( ) ωˆ (fi ) ntˆ ( i ) {Sˆ (f i ) cos( ) Cˆ (f i ) sin( )} Cˆ (f i ) cos( N0 N0 N0 N0
(10)
2πn 2πn 2πn 2πn ˆ (fi ) ntˆ ( i ) {Sˆ (f i 1) cos( Cˆ (f i ) cos( ) Sˆ (f i ) sin( ) ω ) Cˆ (f i 1) sin( )} N0 N0 N0 N0
The successive samples in Equation (10) can be written in matrix form:
ˆ (i ) xˆ (i ) yˆ (Si ) A
(11)
where:
yˆ (Si ) yˆ S( i ) ( N 0 ) yˆ S( i ) ( Nˆ M( i ) )
T
xˆ ( i ) Cˆ (f i )
Sˆ (f i )
ˆ (f i )
T
2πN0 2πN0 2πN0 2πN0 ) sin( ) N0 tˆ(i ) {Sˆ (f i 1) cos( ) Cˆ (f i 1) sin( )} cos( N0 N0 N0 N0 ˆ (i ) A ˆ (i ) ˆ (i ) 2πNˆ M(i ) 2πNˆ M( i ) 2π N 2π N ( ) ( ) ( 1) ( 1) i i i i M M ˆ ˆ ˆ ˆ cos( N ) sin( N ) N M t {S f cos( N ) C f sin( N )} 0 0 0 0
ˆ (i ) with dimensions ( Nˆ M( i ) N 0 1) 3 is not square, its pseudo Since the coefficient matrix A inverse with dimensions 3 3 is used to find xˆ (i ) : ˆ (i ) )T yˆ (i ) ˆ (i ) )1 ( A ˆ (i ) )T A xˆ (i ) (( A S
(12)
ˆ (fi ) in xˆ (i ) : Finally, the frequency estimate is updated using the frequency deviation ω
ˆ (fi ) ω ˆ (fi 1) ω ˆ (fi ) ω
(13)
2.3. Frequency Estimation Procedure Figure 1 shows the block diagram for the frequency estimation procedure using the two-stage ˆ (0) ˆ (0) ω are obtained using 3pDFT [31], a simple and algorithm. Initial estimates for Cˆ (0) f f , S f , and efficient algorithm for estimating the fundamental frequency. At the first iteration, a new sampling ˆ (0) time tˆ(1) is calculated corresponding to ω f and cubic spline interpolation is applied to reconstruct the power system signal at the new sampling time. The reconstructed signal passes through the tuned sine filter to eliminate harmonics. Prior to performing the modified curve fitting on the sine-filtered ˆ (1) are calculated based on Cˆ (0) ˆ(0) . After finding the pseudo Sˆ (0) signal, the coefficients of A f , f , and t
ˆ (1) as given in Equation (12), the modified curve fitting determines the modeling inverse of A th ˆ (1) ˆ (1) ˆ (1) ω Sˆ (1) parameters ( Cˆ (1) f ) and the frequency estimate ω f is updated using ω f . The i f , f , and ˆ (fi 1) iteration is the same as the first iteration, but uses the most recent estimates Cˆ ( i 1) , Sˆ (i 1) , and ω f
f
ˆ (0) ˆ . Since curve fitting algorithms with an unknown ω instead of the initial estimates Cˆ (0) f , S f , and (0) f
frequency double the number of significant digits in the frequency estimate at each iteration and
Energies 2015, 8
9287
converge very rapidly, six iterations have been considered more than adequate [30]. In this paper, six iterations are repeated to produce an accurate frequency estimate.
ˆ (0) ˆ (0) Cˆ (0) f , S f , f
tˆ ( i ) tˆ ( i )
i i 1
ˆ (i ) A
Cˆ (fi ) , Sˆ (fi ) , ˆ (fi )
ˆ (fi ) ˆ (fi 1) ˆ (fi ) i iM
Yes
No
ˆ (fi
M
)
Figure 1. Frequency estimation procedure for the two-stage algorithm. 3. Performance Evaluation
To evaluate the performance of the two-stage algorithm, results were compared with those obtained using the TDIS, 4PSF, and PSFEi algorithms. All four algorithms were tested using two approaches: computer simulations and a hardware implementation. 3.1. Computer Simulations 3.1.1. Number of Cycles in the Data Window While the sampling time and length of the data window were fixed (i.e., t 30 us and N M 8192 ), the number of cycles in the data window was varied by varying the fundamental frequency of the test waveform, which consisted of a single-tone sine wave and a 60 dB white noise signal. In the simulations, the number of cycles in the data window was varied between 3 and 20, which corresponds to the fundamental frequencies between 12.207 Hz and 81.380 Hz. The root-mean-square (RMS) error of frequency estimation after 1000 repetitions at each number of cycles is shown in Figure 2, together with the CRLB. The 4PSF and PSFEi algorithms perform close to the CRLB for all numbers of cycles; the TDIS algorithm performs well, but is marginally worse than the 4PSF and PSFEi algorithms for six cycles or more within the data window. It was also found that the two-stage algorithm needs at least eight cycles in the data window to perform close to the CRLB.
Energies 2015, 8
9288
Figure 2. RMS error of frequency estimation with an increasing number of cycles in the data window.
3.1.2. Noise Level Simulations with noise were performed using a single-tone sine waveform with a random phase and fundamental frequency of 61.2 Hz. The signal-to-noise ratio (SNR) varied from 0 dB to 100 dB with a noise increase of 10 dB. The RMS error of frequency estimation after 1000 repetitions at each SNR level is shown in Figure 3. As with previous tests, the 4PSF and PSFEi algorithms perform close to the CRLB for all noise levels, and the two-stage algorithm also performs close to the CRLB. The TDIS algorithm performs approximately 1.2-fold worse than the others.
Figure 3. Root-mean-square (RMS) error of frequency estimation with increasing noise level.
3.1.3. Harmonics The simulated test waveforms have the following form: H
y(n) Ah (n)sin(h ω f tn θh ) e(n) h 0
(14)
Energies 2015, 8
9289
Tests were run with fundamental frequencies varying within 60 ± 5 Hz, with a random phase θ h for each harmonic. The other parameters in Equation (14) were set as follows: e(n) 60 dB , H 10 , A1 ( n ) 1 , Ah ,even (n) 0.01 S , Ah 1,odd (n) 0.2 S , where S was an integer multiplier from 0 to 4 used to increase the amplitudes of the even and odd harmonics. The maximum error of frequency estimation after 1000 repetitions at each level of THD is given in Figure 4. The performance of the 4PSF algorithm significantly degrades as the multiplier S and, therefore, the THD increases. The PSFEi, TDIS, and two-stage algorithms perform with greater accuracy regardless of THD level, with the two-stage algorithm exhibiting slightly improved performance over the PSFEi and TDIS algorithms.
Figure 4. Maximum error of frequency estimation with increasing THD.
3.1.4. Fluctuating Harmonic Component The simulated test waveforms with a fluctuating harmonic component of order k have the following form:
y(n)
H
h 0, k
Ah (n)sin(h ω f tn θh ) Ak (1 Bk sin(ωk tn )) sin(k ω f tn θk ) e(n)
(15)
where ωk is the frequency of fluctuation, which was set to vary randomly within 7 ± 2 Hz; Ak is the amplitude of the fluctuating harmonic component, which was set to 0.5; and Bk is the depth of fluctuation, which was set to 0.1. The other parameters were identical to those used in Section 3.1.3, except that here the integer multiplier S was set to 1. The order of the fluctuating harmonic component was varied from 2 to 10, and the maximum error of frequency estimation after 1000 repetitions for each fluctuating harmonic order is given in Figure 5; comparison between Figures 4 and 5 shows that the maximum errors for most of the algorithms are significantly worse when one of the harmonics fluctuates. Performance slightly improves as the fluctuating harmonic order increases. This is most likely because spectral leakage from a fluctuating harmonic closer to the fundamental frequency has a greater effect on the estimate.
Energies 2015, 8
9290
Figure 5. Maximum error of frequency estimation with increasing order of the fluctuating harmonic.
To evaluate the effect of modulation depth, the order of the fluctuating harmonic was set to 3 and Bk was varied from 0 to 1.0 in 0.1 increments. The maximum error of frequency estimation after 1000 repetitions for each modulation depth is shown in Figure 6. Similar to the effect seen when changing the fluctuating harmonic order, an increase in spectral leakage due to greater modulation depth has an adverse effect on the performance of the PSFEi, TDIS and two-stage algorithms. The 4PSF algorithm is more influenced by THD level and a fluctuating harmonic component does not have a significant effect on its performance.
Figure 6. Maximum error of frequency estimation with increasing modulation depth of the third harmonic.
3.1.5. Fluctuating Inter-Harmonic Component The simulated test waveforms with a fluctuating inter-harmonic component of index x have the following form:
Energies 2015, 8
9291 H
y ( n) Ah ( n) sin( h ω f tn θ h ) Ax (1 Bx sin(ω x tn )) sin( x ω f tn θ x ) e( n) h 0
(16)
where ω x is the frequency of fluctuation, which was set to vary randomly within 7 ± 2 Hz; and B x is the depth of fluctuation, which was set to 0.1. Other parameters were identical to those used in Section 3.1.3, except that the integer multiplier S was set to 1. The inter-harmonic amplitude Ax was varied from 0 to 0.7 in 0.1 increments. The maximum error of frequency estimation after 1000 repetitions for each of the inter-harmonic amplitude is given in Figure 7. At each repetition, index x was randomly varied from 1.5 to 10. The contamination of the fundamental component caused by the inter-harmonic component leads to increasing estimation errors for the TDIS, PSFEi, and two-stage algorithms with increasing inter-harmonic amplitude. Again, a fluctuating inter-harmonic component does not have a significant effect on the performance of the 4PSF algorithm.
Figure 7. Maximum error of frequency estimation with increasing inter-harmonic amplitude.
3.1.6. Computational Burden Table 1 lists the average time taken to complete a frequency estimate in the simulations for each of the algorithms. The algorithms were implemented in MATLAB, and all simulations were run on a personal computer with an Intel Core i7 processor running at 4.0 GHz. The TDIS and two-stage algorithms required significantly more time than the 4PSF and PSFEi algorithms, which is due to the time-domain interpolation. Table 1. Average time required for one frequency estimation (ms). Algorithm 4PSF PSFEi TDIS Two-stage
2 8.3337 12.388 463.98 254.12
3 8.2824 11.279 465.78 348.07
Figure number 4 5 8.1042 8.3044 10.444 11.102 459.23 466.76 331.07 341.41
6 8.2134 10.710 462.63 339.56
7 8.5206 11.762 481.13 355.14
Energies 2015, 8
9292
3.2. Hardware Implementation Tests using real waveforms with known characteristics are a useful indicator of the performance of the algorithms under real conditions. A system for efficient implementation and comparison of the algorithms was developed at Korea Testing Laboratory (KTL), a representative accreditation authority in South Korea for the testing and calibration of measurement equipment. As shown in Figure 8, an electrical power quality calibrator (Fluke 6105A) generates calibration voltage and current signals, which were sampled using the data acquisition system developed for the KTL power measurement calibration service. In the data acquisition system, a current shunt (Fluke A40B) converts the calibration current signal to a shunt voltage signal. Two digitizing multi-meters (Agilent 3458A) encode the calibration voltage signal and the shunt voltage signal into digital outputs at a 16-bit resolution. During the encoding process, a waveform generator (Agilent 33500B) produces an EXT TRIG signal to synchronize the operation of the two multi-meters. Integrated software on a host computer controls the two multi-meters through a GPIB and gathers the sampled data, which are used for power measurement calibration. All four algorithms are implemented as sub-programs to estimate the fundamental frequency of the calibration voltage signal, sampled at 8.192 kS/s for 8192-point data.
No. 1 2 3,4 5 6
Device Name Electrical power quality calibrator (Fluke 6105A) Waveform generator (Agilent 33500B) Digitizing multi-meter (Agilent 3458A) Current shunt (Fluke A40B) Host computer
Figure 8. Hardware implementation for tests using real waveforms.
Table 2 summarizes the maximum errors of frequency estimation when tests were run at a fundamental frequency of 60 Hz. Two calibration voltage levels (110 V and 220 V) were used in the tests and all algorithms demonstrated similar performance regardless of the calibration voltage level and harmonic. In particular, the maximum errors of the two-stage algorithm are maintained stably between 9.5416 106 and 9.9564 106 .
Energies 2015, 8
9293
Table 2. Maximum errors of frequency estimation with a fundamental frequency of 60 Hz (10−6 × Hz/Hz). H1 = 110 V, θ1 = 0
Voltage Harmonic
H3 = 10%
H1 = 220V, θ1 = 0
H3 = 10%
H49 = 10%
H49 = 10%
H3 = 10%
H3 = 10%
H49 = 10%
H49 = 10%
θ3 = 0
θ3 = π
θ49 = 0
θ49 = π
θ3 = 0
θ3 = π
θ49 = 0
θ49 = π
4PSF
6.6318
12.492
9.9227
9.6065
8.7664
11.733
9.5059
9.7659
PSFEi
9.4811
9.9378
9.9649
9.6864
9.6831
9.4355
9.8214
9.9948
TDIS
11.623
8.4567
9.3250
9.1283
10.472
9.7417
9.0150
9.0917
Two-stage
9.5266
9.8951
9.9366
9.6903
9.5992
9.5416
9.7377
9.9564
4. Conclusions
A two-stage algorithm is proposed for estimation of the fundamental frequency of asynchronously sampled signals in power systems. In the first stage, time-domain interpolation reconstructs the power system signal at a new sampling time and the reconstructed signal passes through a tuned sine filter. The tuned sine filter retains its ability to eliminate harmonics by adjusting its reference frequency to synchronize with an estimate of the fundamental frequency. Prior to applying the tuned sine filter, time-domain interpolation renders it possible to match the filter length of the tuned sine filter to the number of samples per cycle in the reconstructed signal. In the second stage, the fundamental frequency is estimated using a modified curve fitting, which is robust to noise. Since the tuned sine filter eliminates the DC component in addition to harmonics, the DC component is removed from the modeling parameters of the modified curve fitting. The performance of the two-stage algorithm was evaluated using computer-simulated signals, which were asynchronously sampled and contaminated with noise, harmonics, and an inter-harmonic component. The comparison showed that the two-stage algorithm required approximately eight cycles within the data window to provide a level of performance similar to CRLB, and enabled estimation of the fundamental frequency accurately under a range of conditions. In particular, the two-stage algorithm could estimate the fundamental frequency with greater accuracy than the other algorithms in the presence of high levels of THD, a fluctuating harmonic component and a fluctuating inter-harmonic component. The two-stage algorithm was then implemented on a KTL data acquisition system with 16-bit resolution. The results of this implementation demonstrate both the efficiency and validity of the two-stage algorithm, and show that it can achieve accurate estimations of the fundamental frequency in practical conditions. Therefore, the two-stage algorithm may be considered useful for high-precision applications, such as calibrations in metrology laboratories. Acknowledgments
This research was supported in part by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (No. NRF-2013R1A1A2062924). This research was also supported in part by the Human Resources Program in Energy Technology of the Korea Institute of Energy Technology Evaluation and Planning (KETEP), granted financial resource from the Ministry of Trade, Industry & Energy, Republic of Korea (No. 20154030200770).
Energies 2015, 8
9294
Author Contributions
Joon-Hyuck prepared the manuscript and completed the simulations. Soon-Ryul Nam supervised the study and coordinated the main theme of this paper. Dong-Hun Ryu and Jae-Lim Chang developed the hardware implementation. Sang-Hee Kang discussed the results and implications, and commented on the manuscript. All of the authors read and approved the final manuscript. Conflicts of Interest
The authors declare no conflict of interest. References
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15.
Grandke, T. Interpolation algorithms for discrete Fourier transforms of weighted signals. IEEE Trans. Instrum. Meas. 1983, 32, 350–355. Andria, G.; Savino, M.; Trotta, A. Windows and interpolation algorithms to improve electrical measurement accuracy. IEEE Trans. Instrum. Meas. 1989, 38, 856–863. Xi, J.; Chicharo, J.F. A new algorithm for improving the accuracy of periodic signal analysis. IEEE Trans. Instrum. Meas. 1996, 45, 827–831. Zhang, F.; Geng, Z.; Yuan, W. The algorithm of interpolating windowed FFT for harmonic analysis of electric power system. IEEE Trans. Power Del. 2001, 16, 160–164. Radil, T.; Ramos, P.M.; Serra, A.C. New spectrum leakage correction algorithm for frequency estimation of power system signals. IEEE Trans. Instrum. Meas. 2009, 58, 1670–1679. Begovic, M.M.; Djuric, P.M.; Dunlap, S.; Phadke, A.G. Frequency tracking in power network in the presence of harmonics. IEEE Trans. Power Del. 1993, 8, 480–486. Moore, P.J.; Carranza, R.D.; Johns, A.T. A new numeric technique for high-speed evaluation of power system frequency. IEE Proc. Gen. Transm. Distrib. 1994, 141, 529–536. Akke, M. Frequency estimation by demodulation of two complex signals. IEEE Trans. Power Del. 1997, 12, 157–163. Sidhu, T.S. Accurate measurement of power system frequency using a digital signal processing technique. IEEE Trans. Instrum. Meas. 1999, 48, 75–81. Yang, J.Z.; Liu, C.W. A precise calculation of power system frequency. IEEE Trans. Power Del. 2001, 16, 361–366. Nam, S.R.; Lee, D.G.; Kang, S.H.; Ahn, S.J.; Choi, J.H. Power system frequency Estimation in Power Systems Using Complex Prony Analysis. Int. J. Electr. Eng. Tech. 2011, 6, 154–160. Ren, J.; Kezunovic, M. A Hybrid method for power system frequency estimation. IEEE Trans. Power Del. 2012, 27, 1252–1259. Yamada, T. High-accuracy estimations of frequency, amplitude, and phase with a modified DFT for asynchronous sampling. IEEE Trans. Instrum. Meas. 2013, 48, 1428–1435. Nam, S.R.; Kang, S.H.; Kang, S.H. Real-time estimation of power system frequency using a three-level discrete fourier transform method. Energies 2015, 8, 79–93. Pintelon, R.; Schoukens, J. An improved sine-wave fitting procedure for characterizing data acquisition channels. IEEE Trans. Instrum. Meas. 1996, 45, 588–593.
Energies 2015, 8
9295
16. Handel, P. Properties of the IEEE-STD-1057 Four-Parameter Sine Wave Fit Algorithm. IEEE Trans. Instrum. Meas. 2000, 49, 1189–1193. 17. Ramos, P.M.; da Silva, M.F.; Martins, R.C.; Cruz Serra, A.M. Simulation and experimental results of multi-harmonic least squares fitting algorithms applied to periodic signals. IEEE Trans. Instrum. Meas. 2006, 55, 646–651. 18. Ramos, P.M.; Cruz Serra, A.M. Least squares multi-harmonic fitting: Convergence improvements. IEEE Trans. Instrum. Meas. 2007, 56, 1412–1418. 19. Giarnetti, S.; Leccese, F.; Caciotta, M. Non recursive multi-harmonic least squares fitting for grid frequency estimation. Measurement 2015, 66, 229–237. 20. Zhu, L.M.; Ding, H.; Zhu, X.Y. Extraction of periodic signal without external reference by time-domain average scanning. IEEE Trans. Ind. Electron. 2008, 55, 918–927. 21. Clarkson, P.; Wright, P. Evaluation of an asynchronous sampling correction technique suitable for power quality measurements. In Proceedings of the IMEKO World Congress Fundamental and Applied Metrology, Lisbon, Portugal, 6–11 September 2009; pp. 907–912. 22. Zhou, F.; Huang, Z.; Zhao, C.; Wei, X.; Chen, D. Time-domain quasi-synchronous sampling algorithm for harmonic analysis based on Newton’s interpolation. IEEE Trans. Instrum. Meas. 2011, 60, 2804–2812. 23. Wang, K.; Teng, Z.; Wen, H.; Tang, Q. Fast Measurement of Dielectric Loss Angle with Time-Domain Quasi-Synchronous Algorithm. IEEE Trans. Instrum. Meas. 2015, 64, 935–942. 24. Lapuh, R.; Clarkson, P.; Pogliano, U.; Hallstrom, J.K.; Wright, P.S. Comparison of asynchronous sampling correction algorithms for frequency estimation of signals of poor power quality. IEEE Trans. Instrum. Meas. 2011, 60, 2235–2241. 25. Ristic, B.; Boashash, B. Comments on “The Cramer-Rao lower bounds for signals with constant amplitude and polynomial phase”. IEEE Trans. Signal. Process. 1998, 46, 1708–1709. 26. Lapuh, R. Phase Estimation of Asynchronously Sampled Signal Using Interpolated Three-Parameter Sinewave Fit Technique. In Proceedings of the Instrumentation and Measurement Technology Conference, Austin, TX, USA, 3–6 May 2010; pp. 82–86. 27. Lapuh, R. Phase Sensitive Frequency Estimation Algorithm for Asynchronously Sampled Harmonically Distorted Signals. In Proceedings of the Instrumentation and Measurement Technology Conference, Binjiang, China, 10–12 May 2011; pp. 1–4. 28. Negusse, S.; Handel, P.; Zetterberg, P. IEEE-STD-1057 Three Parameter Sine Wave Fit for SNR Estimation: Performance Analysis and Alternative Estimators. IEEE Trans. Instrum. Meas. 2014, 63, 1514–1523. 29. Press, W.H.; Teukolsky, S.A.; Vetterling, W.T.; Flannery, B.P. Numerical Recipes in C: The Art of Scientific Computing; Cambridge University Press: Cambridge, UK, 1992. 30. Souders, M.; Blair, J.; Boyer, W. IEEE Std. 1057-2007. In IEEE Standard for Digitizing Waveform Recorders; Institute of Electrical and Electronics Engineers (IEEE): New York, NY, USA, 2008. 31. Agrez, D. Dynamics of Frequency Estimation in the Frequency Domain. IEEE Trans. Instrum. Meas. 2007, 56, 2111–2118. © 2015 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license (http://creativecommons.org/licenses/by/4.0/).