Single-Phase Active Power Harmonics Filter by Op-Amp Circuits and Power Electronics Devices

This paper introduces a new structure for single-phase Active Power Harmonics Filter (APHF) with the simple and low-cost controller to eliminate harmonics and its side effects on low voltage grid. The proposed APHF includes an accurate harmonic detector circuit, amplifier circuit to trap tiny harmonics, switching driver circuit for precise synchronization, and inverter to create injection current waveform, which is extracted from reference signal. The control circuits are based on electrostatic devices consist of Op-Amp circuits. Fast dynamic, simplicity, low cost, and small size are the main features of Op-Amp circuits that are used in the proposed topology. The aim is removing the all grid harmonic orders in which the proposed APF injects an appropriate current into the grid in parallel way. The proposed control system is smart enough to compensate all range of current harmonics. A prototype is implemented in the power electronics laboratory and it is installed as parallel on a distorted grid by the non-linear load (15 APeak-Peak) to verify the compensating of harmonics. The harmonics are compensated from THD% = 24.48 to THD% = 2.86 and the non-sinusoidal waveform is renovated to sinusoidal waveform by the proposed APHF. The experimental results show a good accurate and high-quality performance.


Introduction
The growth of applying for semiconductor devices and nonlinear loads in industrial, residential, and commercial areas has led to the destruction of power grid voltage and current waveforms in which they cause harmonic distortion in the electrical system [1,2]. Harmonics in the electricity network make harmful damages, such as power losses, the overload in transmission lines, the reduction of the power quality, lower efficiency in equipment, and disturbance in the performance of devices [3][4][5][6].
Therefore, the detection of harmonics and finding a strategy are essential to eliminate and reduce them down to standard allowed. During many years, passive filters have been the conventional solution to minimize harmonics pollution [7][8][9][10][11]. There are many power factor correctors (PFC) converters with the ability to reduce harmonics as well. Family of single-phase and hybrid PFC buck-boost converters are introduced in [12,13]. In [14], three-level unidirectional single-phase PFC rectifier topologies are presented. Some other topologies discussed the range of output to develop PFC converters [15]. fundamental harmonic order (1st) after APFH operation, and simple structure. The perfect performance of each these properties lead to proper overall results in APHF. Figure 1 presents a simple and high quality schematic for a high-pass filter with the exact pitch adjustment to extract grid harmonics. The sampled signal (from the grid by the current sensor) has been sent to the proposed circuit through V in and the circuit acts as a high-pass filter that is based on the values of the capacitor and resistors. Consequently, it separates all of the harmonics that are higher than the cutoff frequency and the circuit reveals them in output (V out ). The output signal will be used as a reference signal for switching part.
Sustainability 2018, 10, x FOR PEER REVIEW 3 of 14 Figure 1 presents a simple and high quality schematic for a high-pass filter with the exact pitch adjustment to extract grid harmonics. The sampled signal (from the grid by the current sensor) has been sent to the proposed circuit through Vin and the circuit acts as a high-pass filter that is based on the values of the capacitor and resistors. Consequently, it separates all of the harmonics that are higher than the cutoff frequency and the circuit reveals them in output (Vout). The output signal will be used as a reference signal for switching part. This proposed circuit involves op-amp devices. Other electronic devices (resistors, capacitors, diode, etc.) with different arrangements can be joint to op-amp, in order to use in various operation and applications. This high pass filter is designed based on op-amp devices and cutoff frequency is set to separate frequencies higher than fundamental component. This circuit has a very accurate operation in the category of electrostatic filters in which it reveals all the harmonics higher than the cutoff frequency with high quality. Also, another prominent property is the adjustment of the phase between input and output signal by correct design. This feature is used to synchronize the reference signal with the network current.
Equations are extracted to drive the transfer function of the proposed filter for Figure 1, follows as: The KCL in node X can be written as: That , , and are the input current, the current passing through the resistance R1 and the current passing through the capacitor C1, respectively.
The currents in the op-amp legs are zero, thus: When considering the voltage of point X (Vx), the above equation can be rewritten: It is also possible to write the current of branches according to the voltage of point X: This proposed circuit involves op-amp devices. Other electronic devices (resistors, capacitors, diode, etc.) with different arrangements can be joint to op-amp, in order to use in various operation and applications. This high pass filter is designed based on op-amp devices and cutoff frequency is set to separate frequencies higher than fundamental component. This circuit has a very accurate operation in the category of electrostatic filters in which it reveals all the harmonics higher than the cutoff frequency with high quality. Also, another prominent property is the adjustment of the phase between input and output signal by correct design. This feature is used to synchronize the reference signal with the network current.
Equations are extracted to drive the transfer function of the proposed filter for Figure 1, follows as: The KCL in node X can be written as: That I in , I R1 , and I C1 are the input current, the current passing through the resistance R 1 and the current passing through the capacitor C 1 , respectively.
The currents in the op-amp legs are zero, thus: When considering the voltage of point X (V x ), the above equation can be rewritten: It is also possible to write the current of branches according to the voltage of point X: By putting above equations in (1) and solving of the equations in the Laplace domain, the transfer function of the circuit can be calculated, as follows: According to the (7), the transfer function of the circuit is second-order that increases the slop of cutoff frequency and the quality of the output signal as well.
In some harmonic orders, the magnitude of the detected harmonic is low (especially higher-order harmonics), so that it cannot trigger the switching system to remove harmonics by power part. Then, it is necessary to amplify the harmonic orders to increase the accuracy of reference signal. The circuit which is depict in Figure 2 is used as the amplifier circuit [51].
Sustainability 2018, 10, x FOR PEER REVIEW 4 of 14 By putting above equations in (1) and solving of the equations in the Laplace domain, the transfer function of the circuit can be calculated, as follows: According to the (7), the transfer function of the circuit is second-order that increases the slop of cutoff frequency and the quality of the output signal as well.
In some harmonic orders, the magnitude of the detected harmonic is low (especially higherorder harmonics), so that it cannot trigger the switching system to remove harmonics by power part. Then, it is necessary to amplify the harmonic orders to increase the accuracy of reference signal. The circuit which is depict in Figure 2 is used as the amplifier circuit [51].

Hysteresis Switching Technique (HYS)
The hysteresis switching technique is more interesting due to some futures such as fast response, less complexity and independence from an additional reference signal (for example triangular wave in PWM Technique) [52]. Grid connection with easy synchronization mood is an outstanding of this Technique. Figure 3 shows the block diagram operation of hysteresis pulse generation. As shown in Figure 3, the reference current which obtained by the detector algorithm ( c i * ) is compared with the output current of the active filter brunch ( c i ) and the error due to the difference between these is sent to the fixed hysteresis band. There are two pair group switches for switching, since the active power filter use H-bridge circuit. The group switches work as a cross-pair in the H-bridge. The hysteresis technique is used for both group switches for positive and negative currents. It also has a dead time between the switching.

Hysteresis Switching Technique (HYS)
The hysteresis switching technique is more interesting due to some futures such as fast response, less complexity and independence from an additional reference signal (for example triangular wave in PWM Technique) [52]. Grid connection with easy synchronization mood is an outstanding of this Technique. Figure 3 shows the block diagram operation of hysteresis pulse generation. As shown in Figure 3, the reference current which obtained by the detector algorithm (i * c ) is compared with the output current of the active filter brunch (i c ) and the error due to the difference between these is sent to the fixed hysteresis band. There are two pair group switches for switching, since the active power filter use H-bridge circuit. The group switches work as a cross-pair in the H-bridge. The hysteresis technique is used for both group switches for positive and negative currents. It also has a dead time between the switching.
A constant bandwidth is surrounding the reference signal. If the error value (∆i c ) is higher than the upper band the switch will be off, and if the error value is lower than the lower band, then the switch will be turned on. The operation of the switch between the upper and lower bands for the sinusoidal reference signal is shown in Figure 4.

Experimental Results
A prototype of active power filter is designed in the laboratory to verify the compensative operation of APHF in order to eliminate the grid harmonics. Figure 5 illustrates the configuration of the study system and the properties and the values of the elements are presented in Table 1.

Experimental Results
A prototype of active power filter is designed in the laboratory to verify the compensative operation of APHF in order to eliminate the grid harmonics. Figure 5 illustrates the configuration of the study system and the properties and the values of the elements are presented in Table 1.   As shown in Figure 5, a diode-bridge connected with induction and resistor are considered as a non-linear load and they are supplied through the grid. Inductance is used in this system to protect the short circuit between APF and grid as current damper since the APF works according to the current injection. The diode-bridge generates harmonics since it is used as a rectifier, and these harmonics should be supplied through the grid. The APHF is applied in load in parallel to compensate the harmonic and prevent the penetration of it in the grid. IGBT 12n60 and RHR 15120 are used as power electronics switches and diodes in the prototype setup.
The qualification of the extracted harmonics and synchronization switching are investigated. The two sample experimental signals (red colored) are depicted in Figure 6. In order to the accuracy of harmonics extraction of detector circuit (Figure 1). Figure 6a shows the input of semi-square signal and Figure 6b shows semi-triangle ones. Harmonics are exactly extracted from both input signals that reveal harmonic components (blue colored), except the fundamental frequency of 50 Hz. High operation quality of control circuit and accurate extraction of harmonics is obvious in figures.
The amplifier circuit ( Figure 2) works properly in which Figure 7 shows the amplified waveform of Figure 6. It is noticeable that the APF injects current to compensate higher harmonics currents too. Thus, controller holds the amplifier in saturated mood, as shown in Figure 7a.  As shown in Figure 5, a diode-bridge connected with induction and resistor are considered as a non-linear load and they are supplied through the grid. Inductance is used in this system to protect the short circuit between APF and grid as current damper since the APF works according to the current injection. The diode-bridge generates harmonics since it is used as a rectifier, and these harmonics should be supplied through the grid. The APHF is applied in load in parallel to compensate the harmonic and prevent the penetration of it in the grid. IGBT 12n60 and RHR 15120 are used as power electronics switches and diodes in the prototype setup.
The qualification of the extracted harmonics and synchronization switching are investigated. The two sample experimental signals (red colored) are depicted in Figure 6. In order to the accuracy of harmonics extraction of detector circuit (Figure 1). Figure 6a shows the input of semi-square signal and Figure 6b shows semi-triangle ones. Harmonics are exactly extracted from both input signals that reveal harmonic components (blue colored), except the fundamental frequency of 50 Hz. High operation quality of control circuit and accurate extraction of harmonics is obvious in figures.
The amplifier circuit ( Figure 2) works properly in which Figure 7 shows the amplified waveform of Figure 6. It is noticeable that the APF injects current to compensate higher harmonics currents too. Thus, controller holds the amplifier in saturated mood, as shown in Figure 7a.    According to the Figure 8, the amount of phase and magnitude of harmonics are higher than the fundamental component (3rd, 5th, 7th, · · · ) passes accurately and unchanged in phase in the proposed controller. This property is very efficient to synchronize the APHF with the grid.
In order to increase the harmonic extraction quality, two series circuits are used to achieve fourth order high pass filter. The extracted and amplified harmonics will be sent to the op-amp comparator circuit to drive and trig power electronic switches. The proposed controller circuit is applied in the prototype system ( Figure 9) and the results of evaluations are shown in Figures 10-14 with and without APHF in grid connection.
Sustainability 2018, 10, x FOR PEER REVIEW 8 of 14 Figure 8 shows the bode and phase diagrams of the proposed control circuit. The cutoff frequency is set in 70 Hz to disappear the fundamental component in the output of the detector circuit for switching.
According to the Figure 8, the amount of phase and magnitude of harmonics are higher than the fundamental component (3rd, 5th, 7th, ⋯) passes accurately and unchanged in phase in the proposed controller. This property is very efficient to synchronize the APHF with the grid.
In order to increase the harmonic extraction quality, two series circuits are used to achieve fourth order high pass filter. The extracted and amplified harmonics will be sent to the op-amp comparator circuit to drive and trig power electronic switches. The proposed controller circuit is applied in the prototype system ( Figure 9) and the results of evaluations are shown in Figures 10-14 with and without APHF in grid connection.   According to the Figure 8, the amount of phase and magnitude of harmonics are higher than the fundamental component (3rd, 5th, 7th, ⋯) passes accurately and unchanged in phase in the proposed controller. This property is very efficient to synchronize the APHF with the grid.
In order to increase the harmonic extraction quality, two series circuits are used to achieve fourth order high pass filter. The extracted and amplified harmonics will be sent to the op-amp comparator circuit to drive and trig power electronic switches. The proposed controller circuit is applied in the prototype system ( Figure 9) and the results of evaluations are shown in Figures 10-14 with and without APHF in grid connection.     Figure 10 illustrates the current waveform of the grid and Figure 11 shows its harmonic spectrum without APHF. Figures 12 and 13 show the current waveform of the grid and its harmonic spectrum with APHF, respectively. According to the figures, non-sinusoidal waveforms turned to sinusoidal after applying APHF and the harmonics are reduced magnificently from THD% = 24.48 to THD% = 2.86. It is obvious that all orders are decreased under 5%, which satisfy standard IEEE 519.
The injection current of APHF is shown in Figure 14. Figure 15 also illustrates the smooth voltage waveform of DC link (the capacitor of APHF). It is constant at 310 Volts.
Sustainability 2018, 10, x FOR PEER REVIEW 9 of 14 Figure 10 illustrates the current waveform of the grid and Figure 11 shows its harmonic spectrum without APHF. Figures 12 and 13 show the current waveform of the grid and its harmonic spectrum with APHF, respectively. According to the figures, non-sinusoidal waveforms turned to sinusoidal after applying APHF and the harmonics are reduced magnificently from THD% = 24.48 to THD% = 2.86. It is obvious that all orders are decreased under 5%, which satisfy standard IEEE 519.   Sustainability 2018, 10, x FOR PEER REVIEW 9 of 14 Figure 10 illustrates the current waveform of the grid and Figure 11 shows its harmonic spectrum without APHF. Figures 12 and 13 show the current waveform of the grid and its harmonic spectrum with APHF, respectively. According to the figures, non-sinusoidal waveforms turned to sinusoidal after applying APHF and the harmonics are reduced magnificently from THD% = 24.48 to THD% = 2.86. It is obvious that all orders are decreased under 5%, which satisfy standard IEEE 519.    The injection current of APHF is shown in Figure 14.   The injection current of APHF is shown in Figure 14.   The injection current of APHF is shown in Figure 14.

Conclusions
This paper presented a new controller circuit with op-amp electrostatic circuit for active power harmonic filter. Simplicity, synchronization, and accurate operation are investigated on it. The proposed control system monitors the current of the grid and creates the reference signal and then inject appropriate current to prevent spreading of the load harmonic into the grid. Using the hysteresis switching technique with a precise synchronization made this proposed control system exhibit a fast response with less complexity. A prototype that uses this control circuit is implemented in the laboratory. In study system, the APHF is applied to the non-linear load in parallel with THD% = 24.48 that is supplied from the grid and THD% is reduced to %2.86 in the experimental results. Also, the non-sinusoidal waveform is renovated to sinusoidal waveform by proposed APHF. High operation quality of control circuit and the accurate extraction of harmonics confirm the good performance of the proposed controller.

Conclusions
This paper presented a new controller circuit with op-amp electrostatic circuit for active power harmonic filter. Simplicity, synchronization, and accurate operation are investigated on it. The proposed control system monitors the current of the grid and creates the reference signal and then inject appropriate current to prevent spreading of the load harmonic into the grid. Using the hysteresis switching technique with a precise synchronization made this proposed control system exhibit a fast response with less complexity. A prototype that uses this control circuit is implemented in the laboratory. In study system, the APHF is applied to the non-linear load in parallel with THD% = 24.48 that is supplied from the grid and THD% is reduced to %2.86 in the experimental results. Also, the non-sinusoidal waveform is renovated to sinusoidal waveform by proposed APHF. High operation quality of control circuit and the accurate extraction of harmonics confirm the good performance of the proposed controller.