Improved Line Voltage Zero-Crossing Detection Techniques For PV Inverters
Improved Line Voltage Zero-Crossing Detection Techniques For PV Inverters
INVERTERS
Abstract: This paper presents a comparison of two different zero-crossing detection techniques used in grid-
connected photovoltaic Inverters. The current controlled Inverter should be synchronised with the supply
grid to allow a steady power flow with a controlled power factor. The obvious and the most widely used
method is by using a zero crossing detector. This however, is prone to errors due to various distortions found
usually on the grid. A detailed grid distortion model is derived to be used for simulations. Two zero-crossing
techniques based on predictive filtering and Phase-locked loops are modelled and simulated for comparison.
I Introduction
1
III Noise reduction in the distorted grid
signal - Design and simulation of a
Out1
predictive digital filter
voltage spike 2
IV Experimental results sin-out
Noise types described in sec. II, causes spurious
Fig2. Offset current drift of the sensor zero crossings at the output of the zero crossing
fundam ental detector (fig 4). This reduces the reliability of
supply grid phase detection and therefore makes
Scope the task of synchronising to the grid more difficult.
V.
3rd harm onic Conclusions and Further Work
The method described below is based on predictive
1
References digital filtering to minimise multiple zero crossings
signal+noise
caused by distortions in the grid. The filtered signal
5 th harmonic is then used to calculate the true phase and the
frequency of the grid signal. A sinusoidal signal
synthesised using this information, will serve as a
Noise
reference to the PWM generator of the Inverter. A
Time in secs simplified block diagram of the predictor is shown
in fig 3.
0.25
The Predictor is based on a Least Mean Square
dc offset (LMS) Adaptive filter, whose filter coefficients
change adaptively to reduce the error (in a Least
Mean Square sense) between the filter output and
the desired signal [5]. The predictive nature of the
algorithm guarantees zero phase shift between the
Fig 1 - Grid noise model in Simulink
grid and the filter output signal. The convergence
of the error is guaranteed only if the filter input
signal contains the noise component which is
uncorrelated with the desired signal. This condition
is achieved by delaying the noisy signal by one
sample (Z-1) before feeding in to the filter.
Time in secs
2
Signal + Noise
zero cross
zero cross
Sin + Noise1
Sine
A - Simulation results
Time in secs
Fig 4 - Simulation results of a normalised distorted line voltage signal sample filtered through an adaptive
predictor
3
IV - Tracking filters - Phase Locked Loops
As seen from (1), a higher locking range requires
Another approach of improving zero crossing a higher bandwith (assuming ξ to be constant),
detection reliability is the use of tracking filters. which in contrary leaves the system vulnerable to
Tracking filters are basically, Phased Lock Loops high frequency noise. Since the closed loop
(PLL), designed to track the system could be modeled as a 2nd order system of
50 (+/- 2%) Hz grid voltage with required the type :
dynamic response. A survey of theoretical and
experimental work done on digital phase locked
loops (DPLL) was published by Lindsay et al. [4]. ω 2n
H ( s) = (2)
S 2 + 2.ζ .ω n .S + ω 2 n
Grid signal
Phase
Detector An optimum value for ξ (= 0.707) is found using
(PD) the Weiner optimisation criteria [1].
Low pass This guarantees the delicate trade-off between fast
filter (LPF) tracking and noise immunity of the PLL.
4
signal+noise 1
0.42 26.2
0.04545s+1
gri d-signal
Phase detector Loop fil ter rad/Hz error/fi lter out
VCO
vco output
Frequency, Hz
Time in secs
Time in secs
V - Measuring the accuracy of zero-crossing the same frequency and phase. The misplacement
detection is measured in samples and put in to bins to give a
histogram output of the results.
The need for an efficient tool to measure the The algorithm is realised in Matlab m-code. Fig 9
accuracy of zero crossing detection has risen shows the results of the program run through
when comparing relative merits of different signal data obtained through simulation results of
techniques. The method proposed in this paper, sec. II (fig 4).
calculates misplacements of zero- crossings of a
given distorted signal, relative to an ideal signal of
5
predicted signal zero crossing detection error PDF
0.6
0.4
0.2
0
-45 -40 -35 -30 -25 -20 -15 -10 -5 0
zero crossing detection error in samples
0.35
0.3
0.25
0.2
0.15
0.1
0.05
0
-15 -10 -5 0 5 10 15
zero crossing detection error in samples
VI - Conclusions
Models have been derived and simulated for two [2] Sami Valiviita, Zero-crossing detection of
different zero-crossing detection techniques. The distorted line voltages using 1-b
noise reduction approach based on Least Mean Measurements, IEEE trans. on Ind.
Square adaptive filtering requires different Electronics, vol. 46, No 5, pp917, October
sampling rates. Further, an additional block is 1999
needed to calculate the frequency and the phase
from the filter output. Hence the DSP [3] Kumar et al., A microprocessor-based dc
implementation of this will be computationally drive control scheme using predictive
intensive. On the contrary, the phase-locked loop Synchronisation, IEEE trans. on Ind.
approach has proved to be both simple and Electronics, vol. 40, No 4, pp445, August 1993
straightforward to implement.
Further work is continuing in this direction to [4] Lindsay W.C, Chak Ming Chie, A survey of
implement the Adaptive PLL algorithm in C digital phase-locked loops, proc. of IEEE, vol.
Language. This code can then be downloaded to 69, No 4, pp 410, April 1981
the TMS320C31 DSP for real-time zero-crossing
detection. A noise generator, based on the model [5] Widrow B, Stearns S.D, Adaptive Signal
described in sec.II, will be will be developed Processing, Prientice-Hall Int., Inc, 1985
combining the DSP and a power amplifier.
[6] Roland E. Best, Phase-locked loops -
Design, Simulation and Applications, McGraw
References -Hill, 1997