A Novel Fundamental and Harmonics Detection Method Based On State-Space Model For Power Electronics System
A Novel Fundamental and Harmonics Detection Method Based On State-Space Model For Power Electronics System
ABSTRACT Harmonic current estimation is the key technology of power electronics systems to generate a
harmonics reference current for harmonic control. In this paper, a novel fundamental and harmonic current
detection method based on the state-space model (SSM) is introduced. The proposed SSM harmonics
detection method has the ability to detect the positive sequence component (PSC), negative sequence
component (NSC), and zero-sequence component (ZSC) of both fundamental and each order harmonics
current with fast response and high accuracy separately, including the fundamental component, which is
appealing for harmonics control in power electronic applications, such as active power filter (APF), unified
power quality conditioner (UPQC), virtual synchronous generator (VSG), and so on. The correctness of the
proposed SSM based harmonics detection method has been verified by simulation and experiment result,
and it shows that the PSC, NSC, and ZCS of the grid fundamental and high order harmonic current can
be detected quickly and accurately, which is important for harmonics analysis and control in the power
electronics system.
INDEX TERMS Harmonics detection, state-space model (SSM), positive negative and zero sequence
separation, power quality control.
second-order filters are adopted, and the number of the fil- In this paper, a novel algorithm based on SSM for dynami-
ter is equal to the number of the harmonics, which makes cally detecting the polluted power gird harmonic components
SOGI method too complex to be implemented, and not engi- is proposed. The convergence of amplitude and phase errors
neering applicable. The CDSC harmonics detection method of SSM harmonic detection is analyzed in detail, and the
is based on a series of DSC operators, thus, a group of range of parameters to ensure the stability and controllability
harmonics can be detected at the same time, and in recent of the proposed state-space model are given by theoretical
years, the researchers have developed some algorithms to analysis. Simulation and experiments show that this method
improve the performance of CDSC [14], [18]. But the CDSC has a good detection effect.
method needs too many DSC operators, which makes the In general, the proposed SSM harmonics detection method
system complex and increases the system computational bur- has the following practical features:
den [15], [18]. In a word, Though effective for harmonics 1) The proposed SSM harmonic detection method can
detection, both SOGI and CDSC methods have disadvantages separately detect out PSC, NSC, and ZSC of each harmonic
of structural complexity and computation intensity. [19], [20]. orders from distorted power grid signal;
The harmonic detection method base on Kalman filter is 2) The method proposed in this paper can detect the har-
developed in recent years, but the Kalman filter methods monics in real-time, so it is suitable to suppress the har-
need prior information of the detected harmonics for better monic amplification effect of the power electronic system in
accuracy and faster response [21]–[23]. dynamic response.
As to frequency-domain methods, discrete Fourier trans- 3) The SSM method is computed in time-domain, and there
form (DFT) and its upgraded methods fast Fourier trans- is not transform computation burden for the system.
form (FFT) are commonly used [24]. In recent researches, For convenience, some common matrices are defined in
many improved DFT methods are studied for more stable, this paper. In is defined for the n-order unit matrix. On is the
faster response, and fewer leakage effects, to achieve a bet- n-order square matrix and Or×s is the matrix with dimension
ter harmonics detection performance. The detection method r × s. Elements of On and Om×n are all zero. En is the n-order
based wavelet-function is another frequency-domain method, square matrix and Er×s is the matrix with dimension r × s.
but it is limited by the large computation burden [25]. Elements of En and Er×s are all 1. Subscripts variable h, s,
Regardless of the time domain method or the frequency and r are all natural numbers. This paper adopts f = 50Hz as
domain method, the harmonic detection method needs to the fundamental frequency of China and most other national
have a certain frequency adaptability to solve the problem of power grids, and the sample frequency of the controller is
fundamental frequency offset. In this regard, the researchers 5kHz in this paper.
also proposed the methods, such as phase-locked loop et.al, The paper is organized as follows. Section II describes
to make the harmonic detection method acquires frequency the proposed harmonic detection method, and the state-space
adaptability [14], [18], [26]. model is established in detail. The theoretical analysis of
With the development of artificial intelligence technol- the proposed SSM harmonics detection method is presented
ogy in recent years, intelligent algorithms have also been in Section III, which include controllability, stability, and
applied in the field of harmonic detection, such as neural error convergence. Experimental results of the proposed har-
networks [27], [28] and particle swarm optimization algo- monic detection method are reported in Section IV. Finally,
rithm [29]. Paper [30] proposed a harmonic current detection Section V concludes the paper.
method based on state observer, but the results of the harmon-
ics obtained by this method have a 90-degree phase difference II. STATE SPACE MODEL CONSTRUCTION FOR
with the real harmonic signals, so it is not applicable to most HARMONICS DETECTION
applications. These intelligent algorithms are not practical for Three-phase hth harmonic vector (current or voltage) ihj_abc
industries because they need a lot of sample training, so they (j = p, n, z) could be expressed as Equation (1), and Ihj_m is
still need to be further explored. the amplitude of the corresponding sequence component.
However, the harmonics detection methods mentioned
Ihp_m sin(hωN t + ϕhp )
above cannot separately detect out the positive sequence
components(PSC), negative sequence component(NSC), and
3 + ϕhp )
ihp_abc = Ihp_m sin(hωN t − 2π
zero sequence component(ZSC) of each harmonic from the
3 + ϕhp )
I sin(hωN t + 2π
hp_m
distorted power grid, which limits their application in some
Ihn_m sin(hωN t + ϕhn )
situations. It is well-known that the three-phase four-wire
hn_abc = Ihn_m sin(hωN t + 3 + ϕhn )
i 2π
system is common in the power electronics system, and there
(1)
Ihn_m sin(hωN t − 2π3 +ϕhn )
exist zero-sequence components in the four-wire system.
Moreover, an unbalanced grid or load can also bring an
Ihz_m sin(hωN t + ϕhz )
unbalanced current of negative-sequence and zero-sequence.
ihz_abc = Ihz_m sin(hωN t + ϕhz )
Therefore, a harmonic detection method that can individually
Ihz_m sin(hωN t + ϕhz )
detect the PSC, NSC, and ZSC of each harmonic is needed to
meet the requirement of flexible harmonic control.
The transformation results of Equation (1) in the αβγ coor- It can be seen from Equation (3) that the PSC ihp−αβγ
dinate system are shown in Equation (3), and the Clarke and the NSC ihn−αβγ on γ -axis are zero, while the ZSC
transformation matrix Tabc−αβγ is shown in Equation (2). ihz−αβγ on α-axis and β-axis is zero. Their derivatives are the
Equation (5), in which the derivative of ihz−αβγ is nonlinear
1 √ −1/2 −1/2
√ with ihz−αβγ , Because it contains the nonlinear part of the
2
T abc−αβγ = 0 3/2 − 3/2 (2) trigonometric function as the third branch of Equation (5),
3
1/2 1/2 1/2 and it is impossible to establish a state-space model which
Ihp_m sin(hωN t + ϕhp )
is linear time-invariant (LTI), according to the Equation (5).
ihp_αβγ = −Ihp_m cos(hωN t + ϕhp )
To meet the requirement of the LTI system, this paper defines
a generalized zero-order vector vhz−αβ in the αβ frame sys-
0
tem. The definition rules are shown as Equation (6).
−Ihn_m sin(hωN t + ϕhn )
√
π
ihn_αβγ = −Ihn_m cos(hωN t + ϕhn ) (3) 2
Ihz_m sin(hωt + ϕhz + )
v
vhz_αβ = hz_α = 2 4
0 √
vhz_β π
2
Ihz_m cos(hωt + ϕhz + )
0 −
2 4
ihz_αβγ = 0 (6)
Ihz_m sin(hωN t + ϕhz )
In Equation.(5), the γ -axis of PSC and NSC are both 0,
Therefore, iαβγ can be expressed as Equation (4) and so they can be characterized by the α-axis and β-axis. ZSC
Equation (5) in αβγ coordinate. only has γ -axis non-zero and there is a non-linear relation-
ship. Therefore, the αβ axis in the generalized ZSC vector
iαβγ = T abc−αβγ iabc of Equation.(6) can be used to characterize the actual ZSC.
N Obviously, the generalized ZSC definition of Equation.(6) is
linear.
X
= (T abc−αβγ ihp_abc
h=1
According to Equation (6), the relationship between
generalized zero-sequence vector vhz−αβ and the actual
+T abc−αβγ ihn_abc + T abc−αβγ ihz_abc )
zero-sequence component ihz−αβγ on the γ -axis can be
N
X obtained as shown in Equation (7).
= (ihp_αβγ + ihn_αβγ + ihz_αβγ ) (4)
vhz_α
h=1 ihz_γ = [ 1 1 ] = E1×2 vhz_αβ (7)
vhz_β
hωN Ihp_m cos(hωN t + ϕhp )
Therefore, by replacing the nonlinear actual ZSC vector
·
hωN Ihp_m sin(hωN t + ϕhp )
i = with a linear generalized ZSC vector, the PSC, NSC, and ZSC
hp_αβγ
in the system can be made linear, so that an LTI system can
0
be constructed on this basis.
0 −hωN 0 By combining Equation (6) and Equation (7), the positive,
negative, and zero sequence vectors are transformed into αβ
0 0 ihp_αβγ
= hωN
coordinate system, which can get rid of the dependence of
0 0 0
state vectors on the γ -axis and facilitate the establishment of
−hωN Ihn_m cos(hωN t + ϕhn ) the appropriate state-space model.
The h-th sub-state vector xh contains the PSC, NSC, and
·
hωN Ihn_m sin(hωN t + ϕhn )
i =
ZSC of h-th harmonics. The h sub-state vector xh (n) in the
hn_αβγ
digital control system discrete domain is defined as Equa-
0
(5) tion (8).
0 hωN 0
h iT
xh (n) = xhp_αβ (n)T xhn_αβ (n)T xhz_αβ (n)T
−hωN 0 0 ihn_αβγ
=
" #
i
0 0 0
hp_α
xhp_αβ (n) =
i
" hp_β #
0
·
ihn_α (8)
i = 0
xhn_αβ (n) =
i
hz_αβγ
" hn_β #
ϕ
cos(hω + )
hω I t
N hz_m N hz
vhz_α
xhz_αβ (n) =
0
vhz_β
0
=
i hz_γ
Therefore, at the moment (n +1), the PSC of the sub-state
hωN Ihz_m cos arcsin Ihz_m vector xhp _αβ (n+1) of the corresponding detected h-th order
harmonic component can be calculated from xhp _αβ (n) as And Equation (13), as shown at the bottom of the next
shown in Equation (9), where Ts is the sampling time and page, is available with the combination of Equation (3), Equa-
Rothp is the corresponding rotation transformation matrix. tion (4), and Equation (6).
In which, the dimensions of the matrix F, G, and H are
xhp_αβ (n + 1) 2 × 6 N , 1 × 6N, and 3 × 6 N respectively. And matrix F and
Ihp_m sin((n + 1)Ts hω0 + ϕhp )
G with 6N columns are shown in Equation(14).
=
−Ihp_m cos((n + 1)Ts hω0 + ϕhp )
N
Ihp_m sin((nTs hω0 + ϕhp ) + nTs hω0 )
z }| {
=
−Ihp_m cos((nTs hω0 + ϕhp ) + nTs hω0 ) F = I 2 I 2 O2 · · · I 2 I 2 O2
cos(Ts hω0 ) −sin(Ts hω0 )
=
sin(Ts hω0 ) cos(Ts hω0 )
Ihp_m sin(nTs hω0 + ϕhp ) G = (O1×2 O1×2 E1×2 ) · · · (O1×2 O1×2 E1×2 )
×
−Ihp_m cos(nTs hω0 + ϕhp )
| {z }
N
= Rot hp xhp_αβ (n) (9) (14)
Similarly, for the NSC and the ZSC, Equation (10) as the Then, substitute Equation (14) into Equation (10) and Equa-
following can be established. tion (11), Equation (15) and Equation (16) can be get, where
" # λ is a constant coefficient, and λ ∈(0,1).
xhn_αβ (n + 1) = cos(hω 0 T s ) sin(hω 0 T s )
xhn_αβ (n)
h λFx(n) +
i λFx(n)
−sin(hω0 Ts ) cos(hω0 Ts )
xhp_αβ (n + 1) = Rot hp xhp_αβ (n) −
= Rot hp xhp_αβ (n) − λFx(n) + λ I 2 O2×1 iαβγ (n)
" = Rot hn xhn_αβ (n)
According to the control theory, the state-space model where matrix K and Bu are shown as Equation (18).
variables x(n) shown in Equation (12) are not controlled F
I 2 O2×1
by the input vector iαβγ (n), that is, the state-space model F
K = G Bu = I 2 O2×1 (18)
is uncontrollable. Therefore, it is necessary to improve the
O2 E2×1
state-space model shown in Equation (12). G
Therefore, the standard form of a state-space model for har- illustrated in Figure.1. And in this paper, the calculation is
monic detection is established as Equation (19). executed when N increase from 1 to 13, for the harmonics
( in the power electronics system mainly contains these order
x(n + 1) = Ax(n) + Biαβγ (n) harmonics.
(19)
y(n) = I 6N x(n)
In the Equation (19), y(n) is the output of the state-space
model, A is the system matrix of the state space, B is the
input control matrix, and I6 N is the output control matrix.
Matrix A, B, and I6 N are time-independent constant coef-
ficient matrices, that is, the detection system based on the
presented state-space model above is a linear time-invariant
system.
N
P
I 2 × ihp_αβ (n) + I 2 × ihn_αβ (n)
iαβ (n) h=1
iαβγ (n) = = N
iγ (n) P
ihz_γ (n)
h=1
N
P
I 2 × xhp_αβ (n) + I 2 × xhn_αβ (n) + O2 × xhz_αβ (n)
= h=1
PN
O1×2 × xhp_αβ (n) + O1×2 × xhn_αβ (n) + E1×2 × xhz_αβ (n)
h=1
F
= x(n) = Hx(n) (13)
G
FIGURE 4. (a, b) Convergence curve of 1Maghp,n (n) and 1Maghz (n) with
different λ when h = 1 (c, d) Convergence curve of 1Maghp,n (n) and
1Maghz (n) with different h when λ equal to 0.1.
q
x 2 (n) + x 2 (n), i = p, n
hi_α hi_β
1Maghi (n) = Ihi_m − q (22)
2(x 2 (n) + x 2 (n)), i = z
hi_α hi_β
x (n) cos (hω nT ) + x
hi_α 0 s hi_β (n) sin (hω0 nTs )
q , i=p
2 2 (n)
x hi_α (n) + x hi_β
−xhi_α (n) cos (hω0 nTs ) + xhi_β (n) sin (hω0 nTs )
1ϕhi = ϕhi − arcsin q , i=n (23)
x 2 (n) + x 2 (n)
hi_α hi_β
xhi_α (n) cos (hω0 nTs + π/4) + xhi_β (n) sin (hω0 nTs + π/4)
,
i=z
q
2 (n) + x 2 (n))
2(xhi_α hi_β
FIGURE 6. Simulation results of the proposed harmonics detection FIGURE 8. Picture of (a) the prototype and (b) programmable AC source.
method.
FIGURE 7. A simulation comparison of three detection methods (State FIGURE 9. Experiment waveform of the input signal.
Space Model, DFT, SOGI).
NSC, and ZSC separately of each fundamental and harmonics controller is adopted in built prototype to sample the input sig-
which the DFT cannot achieve. nal and implement the proposed harmonic detection method,
then the calculated result is output by DA chip.
B. EXPERIMENT RESULTS The experimental results based on the proposed SSM har-
To verify the effectiveness and the engineering practi- monics detection method are shown in Figure.10-12. And
cability of the proposed harmonic detection methods in Figure.10, Figure.11 and Figure.12 are the fundamental,3-th
this paper, built in the laboratory prototype as shown in harmonic, 5-th harmonic and 7-th harmonic detection results
Figure.8(a). of PSC, NSC, and ZSC respectively. Similar to the simulation
And the related validation experiment has been car- results, the proposed algorithm can be used to accurately
ried in the laboratory. The distortion test signal as shown detect out the PSC, NSC, and ZSC separately of the funda-
in Fig.9 is produced by the programmable AC source as mental component and the 5-th harmonic component from the
shown in Fig.8(b) based on Table 2. The DSP + FPGA distorted power grid signal.
[27] W. Yao, Z. Teng, Y. Gao, and Q. Tang, ‘‘Measurement of power system DONGDONG CHEN received the B.S. degree
harmonic based on adaptive kaiser self-convolution window,’’ IET Gener., in electronic information engineering from Zhe-
Transmiss. Distrib., vol. 10, no. 2, pp. 390–398, Feb. 2016. jiang University, Hangzhou, China, in 2013, and
[28] J. Na, J. Yang, X. Ren, and Y. Guo, ‘‘Adaptive online estimation of time- the Ph.D. degree in electrical engineering from
varying parameter nonlinear systems,’’ in Proc. 32nd Chin. Control Conf., the College of Electrical Engineering, Zhejiang
Xi’an, China, 2013, pp. 4570–4575. University, in 2018.
[29] S. K. Singh, A. K. Goswami, and N. Sinha, ‘‘Harmonic parameter esti- He is currently a Vice Professor with the
mation of a power signal using FT-RLS algorithm,’’ in Proc. 16th Int.
Minnan University of Science and Technology.
Conf. Harmon. Qual. Power (ICHQP), Bucharest, Romania, May 2014,
His research interests include power electronics
pp. 157–161.
[30] Y. Hu, Y. Shao, R. Yang, X. Long, and G. Chen, ‘‘A configurable system design, power converter digital control,
virtual impedance method for grid-connected virtual synchronous gen- and optimal design.
erator to improve the quality of output current,’’ IEEE J. Emerg. Sel.
Topics Power Electron., vol. 8, no. 3, pp. 2404–2419, Sep. 2020, doi:
10.1109/JESTPE.2019.2918386.
[31] C.-S. Park, ‘‘Fast, accurate, and guaranteed stable sliding discrete Fourier
transform,’’ IEEE Signal Process. Mag., vol. 32, no. 4, pp. 145–156, LONG XIAO received the B.S. degree in optoelec-
Jul. 2015. tronic information engineering from the Huazhong
[32] S. O. Gilani, Y. Ilyas, and M. Jamil, ‘‘Power line noise removal from ECG University of Science and Technology, Wuhan,
signal using notch, band stop and adaptive filters,’’ in Proc. Int. Conf. China, in 2012, the B.S. and M.S. degrees in
Electron., Inf., Commun. (ICEIC), Honolulu, HI, USA, Jan. 2018, pp. 1–4.
software engineering from the Wuhan University
[33] IEEE Recommended Practice and Requirements for Harmonic Control in
Electric Power Systems, IEEE Standard 519-2014 (Revision IEEE Std 519-
of Science and Technology, Wuhan, in 2012 and
1992), 2014, pp. 1–29. 2014, respectively, and the Ph.D. degree in elec-
[34] Q. Wang, Q. Zhang, and Q. Wang, ‘‘Lyapunov equations with positive trical engineering from the College of Electri-
definite solutions for Continuous-and discrete-time descriptor systems,’’ cal Engineering, Zhejiang University, Hangzhou,
in Proc. IEEE Int. Conf. Control Autom., Guangzhou, China, May 2007, China, in 2019.
pp. 681–685. He is currently a Vice Professor with the Minnan University of Science
[35] X. Liu, ‘‘Stability analysis of switched positive systems: A switched linear and Technology. His research interests include power semiconductor device
copositive Lyapunov function method,’’ IEEE Trans. Circuits Syst. II, Exp. modeling and driving, power converter digital control, and optimal design.
Briefs, vol. 56, no. 5, pp. 414–418, May 2009.