Next Article in Journal
A Review of Deep Learning Techniques for Forecasting Energy Use in Buildings
Next Article in Special Issue
Transformer-Less Switched-Capacitor Quasi-Switched Boost DC-DC Converter
Previous Article in Journal
Octane Index Applicability over the Pressure-Temperature Domain
Previous Article in Special Issue
Energy Management System of DC Microgrid in Grid-Connected and Stand-Alone Modes: Control, Operation and Experimental Validation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Harmonic Compensation Method Using a Lock-In Amplifier under Non-Sinusoidal Grid Conditions for Single Phase Grid Connected Inverters †

Department of Electrical Engineering, Soongsil University, Seoul 06978, Korea
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in 2019 10th International Conference on Power Electronics and ECCE Asia (ICPE 2019—ECCE Asia), Busan, Korea (South), 2019; pp. 1–7.
Energies 2021, 14(3), 597; https://doi.org/10.3390/en14030597
Submission received: 22 December 2020 / Revised: 16 January 2021 / Accepted: 19 January 2021 / Published: 25 January 2021
(This article belongs to the Special Issue Energy Conversion and Operation Technologies for Smart Grid)

Abstract

:
The power quality of grid-connected inverters (GCIs) is attracting a lot of attention as the number of distributed generation systems with renewable energy sources are increased. It is well known that the harmonics present in the grid have a lot of detrimental effects on the equipment and devices connected to a power system network such as heating and derating. These effects lead to problems in terms of safety and lifespan. Therefore, harmonic standards such as IEEE 519 and P1547 suggest that GCIs should achieve total harmonic distortion (THD) of the output current that is less than 5%. However, it is not easy to achieve the current THD of GCIs that is less than 5% with only an output filter under distorted grid conditions. In this paper, a harmonic compensation method using a lock-in amplifier (LIA) is proposed. Due to the outstanding performance of the LIA, accurate information of the harmonics can be obtained. This information is used to eliminate the harmonics by the simple PI controller. To demonstrate the superiority of the proposed method, it is applied to a 5 kW single phase GCI connected to the real grid. The results obtained are compared with those of the conventional harmonic compensation methods.

1. Introduction

1.1. Motivation

The grid connected inverters (GCIs) play a crucial role in transferring power from renewable energy sources to the grid [1,2,3,4,5]. The increasing number of GCIs has received a great deal of attention regarding their effects on the power quality and harmonic pollution of the grid. Typically, the output quality of GCI is ensured by the total harmonic distortion (THD) of the injected current into the grid. According to the harmonic standards such as IEEE 519 and P1547, the THD of the injected current into the grid should be less than 5% [6,7].
There are several factors that lead to an increase in the output current THD of the GCIs, such as the dead time, dc-offset, scaling error in current and voltage sensing circuits, and the harmonics that are already present in the grid due to the extensive use of non-linear loads [8,9]. Recently, the LCL output filters are preferred to reduce the switching frequency harmonics in GCIs due to their excellent high-frequency attenuation performance. However, they dramatically increase the susceptibility to low-order current distortions due to their low inductance when compared to L or LC filters [10]. Therefore, instead of increasing the inductance (hence the cost and volume) of the output filter, it is preferred to use harmonic compensation methods [11,12,13,14,15].
To ensure the output quality of the GCIs, the current controller plays a critical role. The well-known current control method for GCIs is a Rotatory Reference Frame (RRF) control, also known as a DQ frame control [13]. Initially, the RRF current controller was widely used for three phase systems [16,17,18]. Then it was extended to single-phase grid-connected applications with the help of an orthogonal signal generator (OSG) [19]. To extract the accurate orthogonal signals from the grid current, a second order generalized integrator (SOGI) technique is recommended the most [20]. In the RRF controller, since the αβ/DQ transformation turns AC quantities into DC quantities, a good control performance can be achieved with a PI controller. The design process of the PI controller is simple, and it provides satisfactory dynamic performance.
However, as mentioned earlier, the current injected into the grid gets polluted due to the harmonics present in the grid voltage, along with the other detrimental factors. Unfortunately, under these conditions, the RRF fundamental current controller is not able to remove the low order harmonics. This makes it difficult to achieve the THD of the GCI output current suggested by the harmonic standards. To eliminate the low-order harmonics from the GCI output current, two common methods for harmonic compensation have been proposed in RRF [21,22,23,24,25,26,27,28,29,30,31].

1.2. Literature

The first conventional method is to introduce harmonic compensators in parallel with the fundamental current controller as shown in Figure 1a. This method is widely used, and several variations can be found in the literature [21,22,23,24,25,26,27,28]. In [21,22,23,24], the proportional resonant (PR), SOGI [25] and repetitive controller (RC) [26,27,28] are employed in parallel with the fundamental current controller (PI) in the D and Q axis, to detect a certain harmonic and compensate it in a feedforward manner. Although this control method is effective in harmonic rejection, it still has many limitations such as:
(1)
This method requires two compensators for each D and Q axis to eliminate a certain harmonic. Since a harmonic component in the SRF appears as two different frequency components in the RRF, it should be compensated for both the D and Q axis [32].
(2)
Another disadvantage is that the orthogonal signals are generated by the SOGI, which is composed of a low pass filter (LPF) and a band pass filter (BPF). As a result, it attenuates the harmonic information due to filtering, which makes it impossible to extract accurate information about the harmonic component. Thus, the harmonic compensator is not able to perfectly compensate the harmonic.
The second conventional method is to compensate the harmonic on its individual multiple frame as shown in Figure 1b. In this method, an individual harmonic is detected at its own frequency frame and compensated after it is converted to a DC component [29,30,31]. This method has several advantages over the first approach due to the fact that it is: (1) independent of the frequency; (2) simple to design the harmonic compensator (PI controller); and (3) simple to implement and tune the parameters. However, this method has several disadvantages, such as:
(1)
The computational burden is high, and its dynamic characteristics are not good enough due to the delay produced by the OSG block, high order LPF for multiple numbers of RRFs, and the transformations required to transform AC components into DC components and vice versa.
(2)
In these transformations, the information of the grid theta generated by the phase locked loop (PLL) is needed. However, it is often polluted by distorted grid conditions such as grid harmonics, DC offset, etc., which significantly affect the GCI output current quality [33,34,35].
(3)
Furthermore, the OSG may generate asymmetric signals, which degrades the performance of the harmonic compensator (PI controller).
(4)
In addition, when a SOGI is used to generate the orthogonal signals, it attenuates the harmonic information due to filtering, which makes it difficult to perfectly eliminate the harmonic.

1.3. Advancement

In this paper, to overcome the problems associated with the conventional methods, a harmonic compensation method using a lock-in amplifier (LIA) is proposed. This method is used due to the outstanding performance in terms of extracting a specific frequency component of interest under extreme noise conditions. This leads to the detection of the amplitude and the phase information of the harmonic component from the GCI output current with a high accuracy. Later, the detected harmonic can be compensated by the simple PI controller. The advantages of the proposed method over conventional methods are as follows.
(1)
The LIA can extract the amplitude and the phase of a harmonic with a high accuracy, which results in a more effective harmonic compensation than those obtained with conventional methods.
(2)
The harmonic detection is performed by using a reference signal with an arbitrary theta, which is independent of the grid theta detected by the PLL, eliminating the concerns of using a grid theta that is polluted by distorted grid conditions, such as grid harmonics, DC offset, etc.
(3)
The OSG is not required for harmonic compensation, which eliminates the concerns about the asymmetric generation of orthogonal signals and attenuation of harmonic information.
(4)
The transformations from SRF to RRF and from RRF to SRF for harmonic detection are not required.
(5)
In the proposed LIA harmonic compensation, the LPF used to eliminate the AC ripples and the PI harmonic compensator both are designed the same for the nth harmonic order. Thus, it will reduce the design complexity and less effort will be applied for better performance of the system.
This paper is organized as follows. In Section 2, the proposed harmonic compensation method is discussed. In Section 3, controller design considerations for the proposed method are discussed. In Section 4 and Section 5, simulation and experimental results are presented to compensate the 3rd, 5th, and 7th harmonics under non-sinusoidal grid conditions. Finally, the conclusion is given in Section 6.

2. Proposed Lock-In Amplifier (LIA) Harmonic Compensation Method

In this paper, a lock-in amplifier (LIA)-based harmonic compensation method is proposed. The LIA has been used for highly sensitive measurement equipment such as impedance Analyzers (IAs), arbitrary waveform generators (AWGs), Impedance Spectroscopes (ISs), etc. [36,37,38]. The typical block diagram of LIA is shown in Figure 2. To capture the desired harmonic information at a certain frequency, the reference signal and its orthogonal with a unity amplitude and an arbitrarily phase needs to be multiplied to the input signal. This process is called phase sensitive detection (PSD) and it is the heart of LIA. The output of PSD has the following characteristics:
(1)
Through the PSD, all of the input signals where the frequencies are not the same as the reference signal are rejected and only an input signal with the same frequency as the reference signal is converted to a zero-frequency component, i.e., a DC quantity.
(2)
The other frequencies present in the input signals are converted into two AC signals, one is at the difference of frequency, and the other is at the sum of frequency due to frequency shifting property of PSD.
Later, the outputs of PSD are passed through the LPFs and an input signal with the same reference frequency signal appears at the output as a zero-frequency component. The above-mentioned principle of LIA will be explained by means of mathematical equations.
Figure 3 shows the block diagram of the proposed method. In the proposed method, the fundamental component of the grid current is regulated with a simple PI controller. Meanwhile, the individual harmonic is detected by means of LIA at its own frequency and compensated by the PI controller. The detail process of the harmonic detection by the LIA is presented in the following section.

2.1. Detection of Harmonics Using Lock-In Amplifier

In this section, the harmonic detection process using a LIA is detailed by using mathematical derivation. It is assumed that the grid current is distorted and that it has odd harmonic components as shown in Equation (1).
I g = I a m p sin ω g t + θ g + c 3 h sin 3 ω g t + 3 θ g + c 5 h sin 5 ω g t + 5 θ g + + c n h sin n ω g t + n θ g
where Ig is the grid current, Iamp represents the amplitude of the fundamental current, c3h, c5h and cnh represents the amplitude of the harmonics in the feedback current, the ωg represents the grid frequency, the grid theta represents the θg and the “n” represents the order of the odd harmonics. To detect the harmonic components, the reference and its orthogonal signal are needed as shown in Equation (2).
I n h r e f = sin k ω r e f t + k θ r e f I n h r e f = cos k ω r e f t + k θ r e f
where I n h r e f and I n h r e f are the unity amplitude orthogonal reference signals with a frequency of ωref (same to the line frequency “60 Hz”), the phase θref arbitrarily generated by the DSP, which is independent of the grid theta extracted from the PLL and “k”, represents the order of the reference signal, which is selected to be the same as the harmonic order. These reference signals are multiplied by the grid current. This process is called PSD, which can be expressed as follows:
I α n h = I g I n h r e f = I g sin k ω r e f t + k θ r e f I β n h = I g I n h r e f = I g cos k ω r e f t + k θ r e f
where I α n h and I β n h represents the output of PSD. Equation (4) shows the frequency shifting trigonometric identity used to simplify Equation (3).
sin ( ω 1 ) sin ( ω 2 ) = 1 2 cos ( ω 1 ω 2 ) cos ( ω 1 + ω 2 ) sin ( ω 1 ) cos ( ω 2 ) = 1 2 sin ( ω 1 + ω 2 ) + sin ( ω 1 ω 2 )
where the product of two sinusoidal having frequencies “ω1” and “ω2”, represents the output frequencies shifted at ω1ω2 and ω1 + ω2. Equations (5) and (6) shows the resulting equation by applying Equation (4) into (3):
I α n h = I a m p 2 n = 1 , 3 , 5 k = 3 , 5 c n h cos k ω r e f n ω g t + k θ r e f n θ g cos k ω r e f + n ω g t + k θ r e f + n θ g
I β n h = I a m p 2 n = 1 , 3 , 5 , k = 3 , 5 , c n h sin k ω r e f + n ω g t + k θ r e f + n θ g + sin k ω r e f n ω g t + k θ r e f n θ g
Equations (5) and (6) show the outputs of PSD containing two AC signals. One is at the difference frequency (ωrefωg), and the other is at the sum frequency (ωref + ωg). As mentioned earlier, all the signals of which frequencies are not the same as that of the reference signal are rejected by the PSD and only a signal with the same reference frequency is converted to a zero-frequency component, i.e., DC quantity. The other harmonics are shifted to different frequencies, which can be considered as AC ripples. The LPFs are employed to eliminate AC ripples, which will be detailed in the next section.

2.2. Filtering AC Ripple

To extract pure DC quantities from the PSD output, a low pass filter (LPF) is employed. The AC ripples are eliminated by the LPF and only the DC quantity remains. The transfer function of an LPF can be expressed as follows:
G L P F ( s ) = ω c s + ω c n
where “n” is the order of the LPF. To obtain accurate DC quantities that contain the amplitude and phase information of a certain harmonic component, the order and the cut-off frequency of the LPF need to be selected carefully.

Low Pass Filter Design Criteria

First of all, the cutoff frequency of the LPF needs to be selected by 1/10 of the AC ripple needs to be eliminated. Here, the 3rd harmonic is the lowest grid current harmonic to be eliminated. In order to extract the amplitude and the phase information of the 3rd harmonic, the reference signal with the same frequency is multiplied to the grid current. At the output of the PSD, the dominant and the lowest frequency AC ripple is 120 Hz. Thus, the cut-off frequency needs to be selected at around 12 Hz to eliminate the 120 Hz AC Ripple. In this research, cut-off frequency has been selected at 20 Hz for the better dynamics of the system.
The next step is to select the gain slope of the filter at the stop band. Table 1 shows the attenuation of the filter with different slopes at the stop band. In designing the filter, the selection of the gain slope at the stop band is a trade-off between the attenuation and the dynamics of the system. Figure 4 shows the bode plots of the LPFs with different orders. Here, we have selected a 4th order Butterworth filter with a slope of −80 dB/dec, since it provides an attenuation of 1/1000 (−60 dB) at 120 Hz. An even higher attenuation will increase the computational burden and lead to the slow dynamics of the system.
The transfer function of the Butterworth filter can be represented by Equation (8).
H s = 1 1 + s j ω c 2 n
where, n is the order of the filter, and ωc is the cutoff frequency 126 rad/s (20 Hz). It should be noted that the above-designed LPF can be used for all LIAs regardless of the harmonic order since it is designed to eliminate the lowest order of AC ripple.

2.3. Reconstruction of the Harmonic

As previously explained, the harmonics are detected through the LIA and regulated by PI controller. The harmonics can be simply reconstructed by using its amplitude and phase information detected by the LIA as expressed in Equation (9).
m n h = A n h cos k θ r e f + θ n h
where n represents the order of the odd harmonics, mnh represents the reconstructed harmonic, Anh is the amplitude of the harmonic component after the harmonic compensator, and ϴnh is the phase difference between the harmonic component and the reference signal. After the LPF is applied in Equations (5) and (6), all the AC ripples are removed except the zero frequency or DC quantity, which has the amplitude and phase information of the desired harmonic. The amplitude and phase information of a certain harmonic can be computed as follows:
I d n h = c n h cos k ω r e f n ω g t + k θ r e f n θ g 2 I q n h = c n h sin k ω r e f n ω g t + k θ r e f n θ g 2
To extract the amplitude information of the nth harmonic, the Pythagorean theorem sin 2 ( θ ) + cos 2 ( θ ) = 1 is applied on Equation (10). The amplitude of the nth harmonic can be expressed as Equation (11).
A n h = I d n h 2 + I q n h 2 A n h = c n h 2 2 cos k ω r e f n ω g t + k θ r e f n θ g 2 + sin k ω r e f n ω g t + k θ r e f n θ g 2
After further simplifying Equation (11), we can get the final amplitude information of the nth harmonic at the reference frequency, which is a half of actual value. To get the right value, the measured value needs to be multiplied by a factor of 2 as shown in Equation (12).
A n h = c n h 2 × 2
The phase difference between the reference signal and the harmonic can be calculated by using the arctangent function as shown in Equation (13).
θ n h = tan 1 I q n h I d n h θ n h = tan 1 c n h 2 sin k ω r e f n ω g t + k θ r e f n θ g c n h 2 cos k ω r e f n ω g t + k θ r e f n θ g
After simplifying Equation (13), we can get the phase difference, as shown in Equation (14)
θ n h = k θ r e f n θ g p h a s e d i f f e r e n c e
Figure 5 shows the PSIM simulation results to extract the amplitude and the phase information of a certain frequency component using the reference signals generated arbitrarily. Figure 5a shows the FFT of the grid current, which contains multiple odd harmonics (3rd, 5th and 7th). Here, the grid current is multiplied with a reference signal at the 3rd harmonic frequency. Figure 5b shows the 3rd harmonic of the grid current and the reference signal generated arbitrarily, which is independent of the grid theta. Figure 5c shows the amplitude and phase information of the 3rd harmonic shifted to zero frequency and the other AC ripples are removed by the LPF. Thus, from Figure 5c we can see that the amplitude and phase of the harmonic at the reference frequency can be obtained with high accuracy due to the outstanding performance of the LIA.
Once the harmonic information is obtained through the LIA, it is necessary to reconstruct the nth harmonics for the harmonic compensation. Equations (9), (11) and (14) are used for the harmonic reconstruction. Thus, the nth harmonic can be compensated by adding the reconstructed signal to the output of fundamental current controller as shown in Figure 6.

3. Controller Design Considerations of the Propose Method

In this section, the controller design for a single-phase GCI is discussed. As shown in Figure 6, one fundamental component controller and multiple harmonic compensators need to be designed, where Gi(s) is the fundamental current regulator, and HC(s) is the harmonic compensator, which may be composed of many harmonic compensators depending on the requirements.

3.1. Design of the Fundamental Current Controller

In the proposed method, the grid current is regulated in the RRF. This is based on the system diagram shown in Figure 3, where the inverter is interfaced with the grid through an LCL passive filter. The LCL filter behavior is the same as that of an L filter when the frequency is below the resonance frequency. Thus, it is possible to neglect the influence of the LCL filter capacitor in designing the current controller for the sake of simplicity. The loop gain for the fundamental current controller is expressed in Equation (15):
G o l s = G i s G P W M s G P s
where Gi(s) is the transfer function of the fundamental current controller, and GPWM(s) is the transfer function of the PWM unit in the s-domain, which includes the computation delay, sampler, and zero-order hold unit as shown in Equation (16). In addition, GP(s) is the simplified transfer function of the LCL filter expressed in Equation (17).
G P W M s = e T s s 1 e T s s T s s 1 0.5 T s s 1 + 0.5 T s s 2
G P s = 1 s L i + L g + R i + R g
The design of the fundamental current controller Gi(s) significantly affects the bandwidth and stability margin of the whole system. Ideally, the bandwidth of a closed loop system must be maximized by selecting a higher proportional gain kp to obtain a fast-dynamic response and good disturbance rejection capability. However, a high gain degrades the stability and the noise immunity of the control system. Consequently, the choice of the proportional gain kp is a trade-off between the stability margin and the bandwidth of the system. The PI current controller is designed to achieve a wider bandwidth and a higher phase and gain margins by using the SISOTOOL in MATLAB software (R2015a, MathWorks, USA). The open loop gain bode plot of the current controller is shown in Figure 7a. The parameters kp and ki are chosen to be 5.055 and 96.06, respectively.

3.2. Design of the Harmonic Compensator

In the proposed method, harmonic detection is achieved by the LIA. The amplitude and the phase information of the harmonic in the proposed method is a DC quantity. Thus, the harmonic compensation can be performed with a simple PI controller. The open loop gain for the nth harmonic compensation loop can be expressed as in Equation (18).
G o l n h s = L P F ( s ) P I ( s ) = ω c s + ω c n   k p s + k i s
where Golnh is the open-loop gain for the nth harmonic compensators, “n” shows the order of the low pass filter, and ωc is the cut-off frequency of the LPF filter which has selected 20 Hz. The kp and ki are the PI controller (nth harmonic compensator) proportional and integral parameters, respectively. To achieve effective harmonic compensation, the bandwidth of the PI controller should be less than the cut-off frequency of the LPF. A higher bandwidth selection for the PI controller may cause the harmonic compensation loop to become unstable. The open loop gain bode plot of the nth harmonic compensators are shown in Figure 7b. The PI controller parameters kp and ki for the nth harmonic controllers are chosen to be the same, 1.489 and 12.07, to get the optimal performance. Thus, to ensure stability, the phase margin for nth harmonic compensators is 70.6 degrees at 9.51 Hz.
It should be noted that for the nth harmonic compensator, the above-designed PI controller parameters are chosen to be the same. Thus, we can reduce the controller design complexity and less effort will be applied for better performance of the system. On the contrary, the conventional harmonic compensation methods need to consider the controller design parameters for the nth harmonic compensators. As a result, there is an increase in the controller design complexity and more effort is needed to be applied for better performance of the system.

4. Simulation Results

To show the superior performance of the proposed method with respect to the conventional methods, PSIM simulations with a 5 kW single phase inverter are conducted under a highly distorted grid voltage condition (THD of the grid voltage is around 5.0%). The amplitude of the 3rd, 5th, and 7th grid harmonics are 1.9%, 2.5%, and 4.0% of the fundamental components, respectively as shown in Figure 8. The unipolar SPWM scheme is used along with 1.0µs dead time given to drive the IGBT. All the system parameters are listed in Table 2.
The performance of the conventional and proposed harmonic compensation methods are presented in Figure 9 along with the FFT results. It can be seen in Figure 9a that the grid current shows higher THD, i.e., 12% with no harmonic compensation and the 3rd, 5th, and 7th harmonics currents are 3.2 A, 1.54 A, and 1.34 A, respectively. Figure 9b shows that the THD of the grid current is reduced from 12% to 2.9% with a reduction of 75% by the conventional PR-based harmonic compensation and 3rd, 5th, and 7th harmonics are 0.41 A, 0.53 A, and 0.64 A, respectively. Figure 9c shows that THD of the grid current is reduced from 12% to 1.6% with a reduction of 87% by the conventional individual multiple frames-based harmonic compensation and 3rd, 5th and 7th harmonics are 0.23 A, 0.25 A, and 0.35 A, respectively. In Figure 9d, the grid current THD is reduced from 12% to 0.8% with a reduction of 93% by the proposed LIA-based harmonic compensation, and 3rd, 5th, and 7th harmonics are 0.02 A, 0.015 A, and 0.013 A, respectively.
In Figure 10, the grid current FFT results are compared after employing different harmonic compensations. It can be observed from the simulation results that the harmonic reduction with the proposed LIA method shows an outstanding performance in eliminating the current harmonics as compared to those of other techniques.

5. Experimental Results

In order to verify the superior performance of the proposed method, a 5 kW single-phase grid-connected inverter has been built as shown in Figure 11. The system is tested under the following conditions: DC link voltage Vdc (400 V), grid voltage Vg (220 Vrms) with a 2.0% THD, fundamental frequency fg (60 Hz), switching frequency fsw (10 kHz), and the unipolar SPWM scheme is used along with dead time Td (1.0 µs) is given to drive the IGBT. A TMS320F28335 DSP is used to control the inverter and the controllers are implemented by discretizing them with bi-linear transformations. All the system parameters are listed in Table 2. The amplitude of the 3rd, 5th, and 7th grid harmonics are 0.5%, 1.2%, and 2.4% of the fundamental components, respectively, as shown in Figure 12.
Figure 13a,b shows the experimental results of the RRF current controller without a harmonic compensator at 1 kW and 5 kW, respectively. It can be observed from Figure 13a that the 3rd, 5th, and 7th harmonics are 0.25 A, 0.53 A, and 0.58 A, respectively, and that the THD of the output current is 14.9%. In Figure 13b, the magnitude of the 3rd, 5th, and 7th harmonics are 1.75 A, 1.1 A, and 0.8 A, respectively, and the THD of the output current is 7.2%, which exceeds the values suggested by IEEE Std.519 and P1547.
Figure 13c,d shows the experimental results of the RRF controller with the proposed LIA harmonic compensator. It can be observed that the THD of the inverter current is significantly reduced from 14.9% to 6.4% (57% reduction) at 1 kW, and from 7.2% to 2.1% (71% reduction) at 5 kW. The harmonics reduction by the proposed method is as follows: the 3rd harmonic at 1 kW from 0.25 A to 0.02 A (92% reduction), 5th harmonic from 0.50 A to 0.015 A (96% reduction), and 7th harmonic 0.58 to 0.018 A (96% reduction) respectively. Meanwhile, the harmonic reduction by the propose method at 5 kW is as follows; the 3rd harmonic from 1.75 A to 0.15 A (92% reduction), 5th harmonic from 1.1 A to 0.18 A (87% reduction), and 7th harmonic from 0.8 A to 0.17 A (80% reduction), respectively.
As shown in the Table 3, the THD of the inverter current is not able to meet the 5% threshold without the harmonic compensation. However, when the proposed LIA harmonic compensation is applied to eliminate the 3rd, 5th, and 7th harmonics, the inverter current is able to achieve the THD under 5% over the 40% load. It can be confirmed by the experimental results that the THD of the grid current is well reduced by the proposed method under the distorted grid condition.
Table 4 shows a comparison of the proposed harmonic compensation method and the conventional harmonic compensation methods employing the LCL filters in terms of THD, switching frequency, base impedance of the inverter, the ratio of the impedance of the filter with respect to the base impedance of the inverter and less than 5% THD over the 40% load. The size of the filter is compared by the base impedance, which can be calculated according to the power, inverter output RMS voltage (Vo) and output RMS current (Io) and output fundamental frequency (fo) as followings.
Inverter   Base   Impedance = I n v e r t e r   O u t p u t   V o l t a g e   ( V o ) I n v e r t e r   R a t e d   C u r r e n t   ( I o   ) = 220 V 22 A = 10   Ω
Filter   Impedance = 2 π f o L ( Total   Inductance ) 2 π ( 60 ) ( 1.8 m H   ) = 0.678   Ω  
Ratio   of   Filter   Impedance   to   Base   Impedance = Filter   Impedance Base   Impedance % = 0.678   Ω 10   Ω   ×   100 = 6.78 %  
The filter impedance ratio shown in Equation (21) is the ratio of the filter impedance to the base impedance of the inverter. A higher value of the ratio implies the higher attenuation of the harmonics and hence the improved THD. However, the higher value of the ratio also implies the increased volume and cost of the filter employed.
In Table 4, all the filters used in the reference papers have the higher “Ratio of filter impedance to base impedance” as compared to that of the proposed method, which implies the larger size of the filter and even higher attenuation to the harmonics as well. However, they are unable to achieve a 5% THD threshold at less than 40% rated power, even though the filter with higher attenuation is employed. In contrast, the proposed method employs a filter with lower attenuation, i.e., a smaller “Ratio of filter impedance to base impedance”, as compared to those of other methods. Therefore, it can be concluded that it is possible to achieve the better THD value with a smaller sized filter with the proposed harmonic compensation method due to the high performance of the proposed harmonic compensation method with LIA.

6. Conclusions

In this paper, an LIA-based harmonic compensation method for the single phase GCIs is proposed. The LIA is used to extract the amplitude and the phase of a harmonic with the high accuracy from the highly distorted grid feedback current. In addition, for detection of the harmonic, a reference signal with an arbitrary theta is generated, which is independent of the grid theta, detected by the PLL. It eliminates the concerns of using grid theta that is polluted by distorted grid conditions. Moreover, in the proposed LIA harmonic compensation, the LPF used to eliminate the AC ripples and the PI harmonic compensator both are designed the same for the for the nth harmonic order. Thus, it will reduce the design complexity and less effort will be applied for better performance of the system.
Finally, a comparison is done between the proposed and the conventional harmonic compensation methods by employing the LCL filter. It has been concluded that the proposed method employs a filter with a lower attenuation, smaller in size and volume as compared to those of conventional methods. Moreover, the proposed method ensures THD less than 5% for a 5 kW GCI over the 40% load with a smaller size filter under the distorted grid conditions due to the high performance LIA harmonic compensation. The outstanding performance of the proposed LIA harmonic compensation method have been verified by simulation and experimental results.

Author Contributions

Conceptualization, R.A.K. and W.C.; methodology, R.A.K., M.N.A. and W.C.; software, R.A.K.; validation, R.A.K., M.N.A. and W.C.; formal analysis, R.A.K.; investigation, R.A.K.; resources, R.A.K., and M.N.A.; data curation, R.A.K. and M.N.A.; writing—original draft preparation, R.A.K.; writing—review and editing, R.A.K. and W.C.; visualization, R.A.K., M.N.A. and W.C.; supervision, W.C.; project administration, R.A.K.; funding acquisition, W.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by Korea Electric Power Corporation. (Grant number: R17XA05-42).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Sinsukthavorn, W.; Ortjohann, E.; Mohd, A.; Hamsic, N.; Morton, D. Control strategy for three-/four-wire-inverter-based distributed generation. IEEE Trans. Ind. Electron. 2012, 59, 3890–3899. [Google Scholar] [CrossRef]
  2. Trujillo, C.; Velasco, D.; Garcera, G.; Figueres, E.; Guacaneme, J. Reconfigurable control scheme for a PV micro inverter working in both grid-connected and island modes. IEEE Trans. Ind. Electron. 2013, 60, 1582–1595. [Google Scholar] [CrossRef]
  3. Branco, C.G.C.; Torrico-Bascope, R.P.; Cruz, C.M.T.; de Lima, F.K.A. Proposal of three-phase high-frequency transformer isolation UPS topologies for distributed generation applications. IEEE Trans. Ind. Electron. 2013, 60, 1520–1531. [Google Scholar] [CrossRef]
  4. Wai, R.J.; Lin, C.Y.; Huang, Y.C.; Chang, Y.R. Design of high-performance stand-alone and grid-connected inverter for distributed generation applications. IEEE Trans. Ind. Electron. 2013, 60, 1542–1555. [Google Scholar] [CrossRef]
  5. Kjaer, S.B.; Pedersen, J.K.; Blaabjerg, F. A review of single-phase grid-connected inverters for photovoltaic modules. IEEE Trans. Ind. Appl. 2005, 41, 1292–1306. [Google Scholar] [CrossRef]
  6. IEEE Standard for Interconnecting Distributed Resources with Electric Power Systems; IEEE15471; IEEE: Piscataway, NJ, USA, 2005.
  7. IEEE Recommended Practices and Requirements for Harmonic Control in Electrical Power Systems; IEEE Standard 519-1992; IEEE: Piscataway, NJ, USA, 1992.
  8. He, G.; Xu, D.; Chen, M. A novel control strategy of suppressing DC current injection to the grid for single-phase PV inverter. IEEE Trans. Power Electron. 2015, 30, 1266–1274. [Google Scholar] [CrossRef]
  9. Wang, X.; Ruan, X.; Liu, S.; Tse, C.K. Full Feedforward of Grid Voltage for Grid-Connected Inverter with LCL Filter to Suppress Current Distortion Due to Grid Voltage Harmonics. IEEE Trans. Power Electron. 2010, 23, 3119–3127. [Google Scholar] [CrossRef]
  10. Hong, L.; Tian, Y.; Zhang, J.; Li, D.; Xu, D.; Chen, G. High precision compensation for high power Hybrid Active Power Filter based on repetitive control algorithm. In Proceedings of the 2011 IEEE International Symposium on Industrial Electronics, Gdansk, Poland, 27–30 June 2011; pp. 295–300. [Google Scholar]
  11. Mohamed, Y.A.R.I.; El-Saadany, E.F. A Control Scheme for PWM Voltage-Source Distributed-Generation Inverters for Fast Load Voltage Regulation and Effective Mitigation of Unbalanced Voltage Disturbances. IEEE Trans. Ind. Electron. 2008, 55, 2072–2084. [Google Scholar] [CrossRef]
  12. Zhang, X.; Wang, Y.; Yu, C.; Guo, L.; Cao, R. Hysteresis Model Predictive Control for High-Power Grid-Connected Inverters with Output LCL Filter. IEEE Trans. Ind. Electron. 2016, 63, 246–256. [Google Scholar] [CrossRef]
  13. Timbus, A.; Liserre, M.; Teodorescu, R.; Rodriguez, P.; Blaabjerg, F. Evaluation of current controllers for distributed power generation systems. IEEE Trans. Power Electron. 2009, 24, 654–664. [Google Scholar] [CrossRef]
  14. Castilla, M.; Miret, J.; Camacho, A.; Matas, J.; de Vicuna, L.G. Reduction of Current Harmonic Distortion in Three-Phase Grid Connected Photovoltaic Inverters via Resonant Current Control. IEEE Trans. Ind. Electron. 2013, 60, 1464–1472. [Google Scholar] [CrossRef]
  15. Trinh, Q.N.; Lee, H.H. An Enhanced Grid Current Compensator for Grid-Connected Distributed Generation Under Nonlinear Loads and Grid Voltage Distortions. IEEE Trans. Ind. Electron. 2014, 61, 6528–6537. [Google Scholar] [CrossRef]
  16. Liserre, M.; Blaabjerg, F.; Hansen, S. Design and control of an LCL-filter-based hree-phase active rectifier. IEEE Trans. Ind. Appl. 2005, 41, 1281–1291. [Google Scholar] [CrossRef]
  17. Twining, E.; Holmes, D.G. Grid current regulation of a three-phase voltage source inverter with an LCL input filter. IEEE Trans. Power. Electron. 2003, 18, 888–895. [Google Scholar] [CrossRef] [Green Version]
  18. Kazmierkowski, M.P.; Malesani, L. Current control techniques for three-phase voltage-source PWM converters: A survey. IEEE Trans. Ind. Electron. 1998, 45, 691–703. [Google Scholar] [CrossRef]
  19. Ebrahimi, M.; Khajehoddin, S.A.; Ghartemani, M.K. Fast and Robust Single-Phase DQ Current Controller for Smart Inverter Applications. IEEE Trans. Power Electron. 2016, 31, 3968–3976. [Google Scholar] [CrossRef]
  20. Ciobotaru, M.; Teodorescu, R.; Blaabjerg, F. A new single-phase PLL structure based on second order generalized integrator. In Proceedings of the 37th IEEE Power Electronics Specialists Conference, Jeju, Korea, 18–22 June 2006; pp. 1–6. [Google Scholar]
  21. Lisrerre, M.; Teodorescu, R.; Blaabjerg, F. Multiple harmonic control for three phase grid converter system with the use of PI-RES current controller in rotating frame. IEEE Trans. Power Electron. 2006, 21, 836–841. [Google Scholar] [CrossRef]
  22. Blanco, C.; Reigosa, D.; Vasquez, J.C.; Guerrero, J.M.; Briz, F. Virtual Admittance Loop for Voltage Harmonic Compensation in Microgrids. IEEE Trans. Ind. Electron. 2016, 52, 3348–3356. [Google Scholar] [CrossRef] [Green Version]
  23. Yepes, A.G.; Freijedo, F.D.; Lopez, O.; Doval-Gandoy, J. Analysis and Design of Resonant Current Controllers for Voltage-Source Converters by Means of Nyquis Diagrams and Sensitivity Function. IEEE Trans. Ind. Electron. 2011, 58, 5231–5250. [Google Scholar] [CrossRef]
  24. Trinh, Q.N.; Wang, P.; Choo, F.H. An Improved Control Strategy of Three-Phase PWM Rectifier under Input Voltage Distortions and DC-offset Measurement Errors. IEEE J. Emerg. Sel. Top. Power Electron. 2017, 5, 1164–1176. [Google Scholar] [CrossRef]
  25. Kim, E.-S.; Seong, U.-S.; Lee, J.-S.; Hwang, S.-H. Compensation of dead time effects in grid-tie single phase inverter using SOGI. In Proceedings of the Applied Power Electronic Conference and Exposition (APEC), Tampa, FL, USA, 26–30 March 2017; pp. 2633–2637. [Google Scholar]
  26. Sha, D.; Wu, D.; Liao, X. Analysis of a hybrid controlled three phase grid-connected inverter with harmonic compensation in synchronous reference frame. IET Power Electron. 2010, 4, 743–751. [Google Scholar] [CrossRef]
  27. Trinh, Q.N.; Wang, P.; Yi, T.; Choo, F.H. Mitigation of DC and Harmonic Currents Generate by Voltage Measurement Errors and Grid Voltage Distortions in Transformerless Grid-Connected Inverters. IEEE Trans. Energy Convers. 2012, 33, 801–813. [Google Scholar] [CrossRef]
  28. Pandove, G.; Trivedi, A.; Singh, M. Repetitive control-based single-phase bidirectional rectifier with enhanced performance. IET Power Electron. 2015, 9, 1029–1036. [Google Scholar] [CrossRef]
  29. Campos-Gaona, D.; Pena-Alzola, R.; Monroy-Morales, J.L.; Ordonez, M.; Anaya-Lara, O.; Leithead, W.E. Fast Selective Harmonic Mitigation in Multi-functional Inverters Using Internal Model Controllers and Synchronous Reference Frame. IEEE Trans. Ind. Electron. 2017, 64, 6338–6349. [Google Scholar] [CrossRef] [Green Version]
  30. Newman, M.J.; Zmood, D.N.; Holmes, D.G. Stationary Frame Harmonic Reference Generation for Active Filter Systems. IEEE Trans. Ind. Appl. 2002, 38, 1591–1599. [Google Scholar] [CrossRef]
  31. Blaabjerg, F.; Teodorescu, R.; Liserre, M.; Timbus, A.V. Overview of Control and Grid Synchronization for Distributed Power Generation Systems. IEEE Trans. Ind. Electron. 2006, 53, 1398–1409. [Google Scholar] [CrossRef] [Green Version]
  32. Khan, R.A.; Choi, W. An Improved Harmonic Compensation Method for a Single-Phase Grid Connected Inverter. TKPE Trans. Korean Inst. Power Electron. 2019, 24, 215–227. [Google Scholar]
  33. Khan, R.A.; Ashraf, N.; Choi, W. A method to improve the performance of Phase-Locked Loop (PLL) for a Single-Phase Inverter under the Non-sinusoidal grid voltage conditions. TKPE Trans. Korean Inst. Power Electron. 2018, 23, 231–239. [Google Scholar]
  34. Wu, X.; Li, X.; Yuan, X.; Geng, Y. Grid harmonic suppression scheme for LCL-type grid connected inverter based on output admittance revision. IEEE Trans. Sustain. Energy 2015, 6, 411–421. [Google Scholar] [CrossRef]
  35. Ashraf, M.N.; Khan, R.A.; Choi, W. A Robust PLL Technique using a Digital Lock-In Amplifier under the Non-Sinusoidal Grid Conditions. In Proceedings of the 2019 10th International Conference on Power Electronics and ECCE Asia (ICPE 2019—ECCE Asia), Busan, Korea, 27–30 May 2019; pp. 2330–2335. [Google Scholar]
  36. Cosens, C.R. A balance detector for alternating current bridges. Proc. Phys. Soc. 1934, 46, 818. [Google Scholar] [CrossRef]
  37. Michels, W.C. A Double Tube Vacuum Tube Voltmeter. Rev. Sci. Instrum. 1938, 9, 10–12. [Google Scholar] [CrossRef]
  38. Khan, R.A.; Ashraf, M.N.; Choi, W. A Robust Harmonic Compensation Technique for the Single Phase Grid Connected Inverters under the Distorted Grid Voltage Conditions. In Proceedings of the 2019 10th International Conference on Power Electronics and ECCE Asia (ICPE 2019—ECCE Asia), Busan, Korea, 27–30 May 2019; pp. 1–7. [Google Scholar]
  39. Abeyasekera, T.; Johnson, C.M.; Atkinson, D.J.; Armstrong, M. Suppression of line voltage related distortion in current controlled grid connected inverters. IEEE Trans. Power Electron. 2005, 20, 1393–1401. [Google Scholar] [CrossRef]
  40. Mattavelli, P.; Marafao, F.P. Repetitive-based control for selective harmonic compensation in active power filters. IEEE Trans. Ind. Electron. 2004, 51, 1018–1024. [Google Scholar] [CrossRef]
  41. Wu, T.; Kuo, C.; Lin, L.; Chen, Y. DC-Bus Voltage Regulation for a DC Distribution System with a Single-Phase Bidirectional Inverter. IEEE J. Emerg. Sel. Top. Power Electron. 2016, 4, 210–220. [Google Scholar] [CrossRef]
Figure 1. Conventional harmonic compensation methods in RRF: (a) Method I [21,22,23,24,25,26,27,28]; (b) Method II [29,30,31].
Figure 1. Conventional harmonic compensation methods in RRF: (a) Method I [21,22,23,24,25,26,27,28]; (b) Method II [29,30,31].
Energies 14 00597 g001aEnergies 14 00597 g001b
Figure 2. Block Diagram of a lock-in amplifier (LIA).
Figure 2. Block Diagram of a lock-in amplifier (LIA).
Energies 14 00597 g002
Figure 3. Block diagram of the proposed harmonic compensation method in the RRF.
Figure 3. Block diagram of the proposed harmonic compensation method in the RRF.
Energies 14 00597 g003
Figure 4. Bode plots of LPFs with different orders.
Figure 4. Bode plots of LPFs with different orders.
Energies 14 00597 g004
Figure 5. The amplitude and phase of the grid harmonic current extracted by LIA with reference frequency (a) FFT of the grid current (b), 3rd harmonic and arbitrarily reference signals (c) phase and amplitude of the 3rd harmonic current by LIA.
Figure 5. The amplitude and phase of the grid harmonic current extracted by LIA with reference frequency (a) FFT of the grid current (b), 3rd harmonic and arbitrarily reference signals (c) phase and amplitude of the 3rd harmonic current by LIA.
Energies 14 00597 g005
Figure 6. Simplified block diagram of the proposed harmonic compensation method.
Figure 6. Simplified block diagram of the proposed harmonic compensation method.
Energies 14 00597 g006
Figure 7. Open loop gain Bode plot of the (a) Gol(s) for the fundamental current controller (b) Golnh(s) for the nth harmonic compensators.
Figure 7. Open loop gain Bode plot of the (a) Gol(s) for the fundamental current controller (b) Golnh(s) for the nth harmonic compensators.
Energies 14 00597 g007
Figure 8. Distorted grid voltage and its FFT results (5.0% THD).
Figure 8. Distorted grid voltage and its FFT results (5.0% THD).
Energies 14 00597 g008
Figure 9. Simulation results of harmonic compensation methods at 5 kW (a) without harmonic compensation, (b) conventional PR-based harmonic compensation, (c) conventional individual multiple frame harmonic compensation, (d) proposed LIA harmonic compensation.
Figure 9. Simulation results of harmonic compensation methods at 5 kW (a) without harmonic compensation, (b) conventional PR-based harmonic compensation, (c) conventional individual multiple frame harmonic compensation, (d) proposed LIA harmonic compensation.
Energies 14 00597 g009
Figure 10. FFT comparison of grid currents between conventional and proposed harmonic compensation methods.
Figure 10. FFT comparison of grid currents between conventional and proposed harmonic compensation methods.
Energies 14 00597 g010
Figure 11. Experimental setup of a 5 kW single phase GCI.
Figure 11. Experimental setup of a 5 kW single phase GCI.
Energies 14 00597 g011
Figure 12. Grid voltage and its FFT result (2% THD).
Figure 12. Grid voltage and its FFT result (2% THD).
Energies 14 00597 g012
Figure 13. Experimental results of GCI (a) without harmonic compensation at 1 kW, (b) without harmonic compensation at 5 kW, (c) proposed LIA harmonic compensation at 1 kW, (d) proposed LIA harmonic compensation at 5 kW.
Figure 13. Experimental results of GCI (a) without harmonic compensation at 1 kW, (b) without harmonic compensation at 5 kW, (c) proposed LIA harmonic compensation at 1 kW, (d) proposed LIA harmonic compensation at 5 kW.
Energies 14 00597 g013
Table 1. Attenuation of the LPF with a different slope at the stop band.
Table 1. Attenuation of the LPF with a different slope at the stop band.
OrderSlope at the Stop Band (dB/dec)Voltage Gain (V/v)
1st−20 dB0.1
2nd−40 dB0.01
4th−80 dB0.001
6th−120 dB0.0001
Table 2. Parameters of the Single-Phase Grid-Connected Inverter.
Table 2. Parameters of the Single-Phase Grid-Connected Inverter.
ParametersValues
Rated Power (Po)5 kW
Switching/Sampling frequency (fsw)10 kHz
Dead time (Td)1.0 µs
Inverter side inductor (Li)1.2 mH
Grid side inductor (Lg)0.6 mH
Filter capacitor (Cf)6.0 µF
Damping resistor (Rd)3.0 Ω
Grid voltage (Vg)220 Vrms
Grid frequency (fg)60 Hz
DC link Voltage (Vdc)400 V
Table 3. THD reduction by the proposed harmonic compensation method.
Table 3. THD reduction by the proposed harmonic compensation method.
PowerWithout
Harmonic Compensation
With Proposed LIA Harmonic Compensation% of THD Reduction
1 kW14.9%6.4%57%
2 kW8.6%4.0%54%
3 kW8.0%2.8%65%
4 kW7.84%2.3%70%
5 kW7.26%2.1%71%
Table 4. Comparison of the filters used in earlier studies.
Table 4. Comparison of the filters used in earlier studies.
ReferencesSwitching FrequencyBase Impedance
Ω
Ratio of Filter Impedance to Base ImpedanceTHD < 5% for >40% Load Range
[21]10 KHz24.418.5%
[39]8 KHz2.2728%
[40]20 KHz1011.3%
[41]20 KHz1011.3%
Proposed10 KHz106.78%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Khan, R.A.; Ashraf, M.N.; Choi, W. A Harmonic Compensation Method Using a Lock-In Amplifier under Non-Sinusoidal Grid Conditions for Single Phase Grid Connected Inverters. Energies 2021, 14, 597. https://doi.org/10.3390/en14030597

AMA Style

Khan RA, Ashraf MN, Choi W. A Harmonic Compensation Method Using a Lock-In Amplifier under Non-Sinusoidal Grid Conditions for Single Phase Grid Connected Inverters. Energies. 2021; 14(3):597. https://doi.org/10.3390/en14030597

Chicago/Turabian Style

Khan, Reyyan Ahmad, Muhammad Noman Ashraf, and Woojin Choi. 2021. "A Harmonic Compensation Method Using a Lock-In Amplifier under Non-Sinusoidal Grid Conditions for Single Phase Grid Connected Inverters" Energies 14, no. 3: 597. https://doi.org/10.3390/en14030597

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop