Real Time Implementation of Shunt Active Power Filter ( SAPF ) for Harmonic suppression
and Power Quality Improvement
B. Babes1 L. Rahmani2 A. Bouafassa3 and N. Hamouda4
1, 3 Department of Electrical Engineering, Setif University, Algeria
2 Automatic Laboratory of Setif, Setif University, Algeria
4 Centre National de Recherche Scientifique en Soudage et Contrôle CSC Route Dely Brahim Chéraga, Algerie
E-Mail: [email protected], [email protected], [email protected], [email protected]
Keywords
«Harmonics», «Power quality», «Active power filter», «Hysteresis comparator», «Real-time control»
Abstract
In this paper, A Shunt Active Power Filter (SAPF) is implemented using a dSPACE DS1104 processor to compensate harmonics and reactive power produced by nonlinear load. The reference source current is computed based on the measurement of harmonics in the supply voltage and load current.
A hysteresis based current controller has been implemented in a DSP processor for injecting the compensating current into the power system, so that SAPF allows suppression of the harmonics and reactive power component of load current, resulting in a supply current that is purely sinusoidal.
Simulation and experimental results of the proposed SAPF to meet the IEEE-519 standards are presented.
I. Introduction
Harmonics contamination is a serious and a harmful problem in Electric Power System. Active Power filtering constitutes one of the most effective proposed solutions. A shunt active power filter that achieves low current total harmonic distortion (THD), reactive power compensation and power factor correction is presented. Hence, it is necessary to reduce the dominant harmonics below 5% as specified in IEEE-519-1992 harmonic standard [1].
Harmonic Amplification is one the most serious problem. It is caused by harmonic resonance between line inductance and power factor correction (PFC) capacitors installed by consumers. Active filters for damping out harmonic resonance in industrial and utility power distribution systems have been researched [1]-[2].
Traditionally based, passive L-C filters were used to eliminate line harmonics in [3]-[4]. However, the passive filters have the demerits of fixed compensation, bulkiness and occurrence of resonance with other elements. The recent advances in power semiconductor devices have resulted in the development of Active Power Filters (APF) for harmonic suppression. Various topologies of active filters have been proposed for harmonic mitigation. The shunt APF based on Voltage Source Inverter (VSI) structure is an attractive solution to harmonic current problems. The SAF is a pulse width modulated (PWM) VSI that is connected in parallel with the load. It has the capability to inject harmonic current into the AC system with the same amplitude but opposite phase than that of the load [1]-[3]. The principal
components of the SAPF are the VSI, a DC energy storage device that in this case is capacitor, a coupling transformer and the associated control circuits.
The performance of an active filter depends mainly on the technique used to compute the reference current and the control method used to inject the desired compensation current into the line.
There are two major approaches that have emerged for the harmonic detection [
domain and the frequency domain methods. The frequency domain methods include, Discrete Fourier Transform (DFT), Fast Fourier Transform (FFT), and Recursive Discrete F
based methods. The frequency domain methods require large memory, computation power and the results provided during the transient condition may be imprecise [4]. On the other hand, the time domain methods require less calculation an
There are several current control strategies proposed in the literature [ control, average current mode control (ACMC), predictive current
(SMC) and hysteresis control. Among the various current control techniques, hysteresis control is the most popular one for active power filter applications. Hysteresis current control [
controlling a voltage source inverter so that the current waveform.
In this paper, a simple and straight
shunt filter to compensate the harmonics and reactive power of a typical non DS1104 controller board with five ADC channels and
(PWM) channels is used to implement the proposed control algorithm.
Bridge with common DC bus capacitor rectifier with R-L loading is taken as a non
simulation and thereafter, experimental verification is also carried out
II.
Active power filters (APFs) are basically power electronic devices that are used to compensate the current or voltage harmonics and the reactive power flowing in the power grid. The APFs may be used as a controlled current source and it has to supply a current wave as close as
reference. [10], [11]
As it is shown in the Fig.1, the active filter is composed of a three phase voltage source inverter with an ac inductor (Lf) and a dc bus capacitor (C
necessary to cover the losses of the system. A three line impedance (Rs and Ls).[12],[
Fig. 1:
are two major approaches that have emerged for the harmonic detection [
domain and the frequency domain methods. The frequency domain methods include, Discrete Fourier Transform (DFT), Fast Fourier Transform (FFT), and Recursive Discrete Fourier Transform (RDFT) based methods. The frequency domain methods require large memory, computation power and the results provided during the transient condition may be imprecise [4]. On the other hand, the time domain methods require less calculation and are widely followed for computing the reference current.
There are several current control strategies proposed in the literature [2]-[5], [6 control, average current mode control (ACMC), predictive current control, sliding
(SMC) and hysteresis control. Among the various current control techniques, hysteresis control is the most popular one for active power filter applications. Hysteresis current control [
controlling a voltage source inverter so that the output current is generated which follows a reference In this paper, a simple and straight hysteresis band current controller is implemented for an active shunt filter to compensate the harmonics and reactive power of a typical non-linea
five ADC channels and high resolution Pulse Width Modulated channels is used to implement the proposed control algorithm. An IGBT based VSI Bridge with common DC bus capacitor is employed to realize the SAPF. A three
L loading is taken as a non-linear load. The control algorithm is tested through simulation and thereafter, experimental verification is also carried out.
Active power filter principle
(APFs) are basically power electronic devices that are used to compensate the current or voltage harmonics and the reactive power flowing in the power grid. The APFs may be used as a controlled current source and it has to supply a current wave as close as
As it is shown in the Fig.1, the active filter is composed of a three phase voltage source inverter with ) and a dc bus capacitor (Cdc) to provide a constant dc voltage and the real power ry to cover the losses of the system. A three-phase AC supply system (V
],[13]
Fig. 1: Shunt active power filter configuration
are two major approaches that have emerged for the harmonic detection [3], namely, time domain and the frequency domain methods. The frequency domain methods include, Discrete Fourier ourier Transform (RDFT) based methods. The frequency domain methods require large memory, computation power and the results provided during the transient condition may be imprecise [4]. On the other hand, the time d are widely followed for computing the reference current.
6]-[7],[8], namely, PI control, sliding mode control (SMC) and hysteresis control. Among the various current control techniques, hysteresis control is the most popular one for active power filter applications. Hysteresis current control [9] is a method of output current is generated which follows a reference is implemented for an active linear load. A dSPACE high resolution Pulse Width Modulated An IGBT based VSI three phase diode bridge linear load. The control algorithm is tested through
(APFs) are basically power electronic devices that are used to compensate the current or voltage harmonics and the reactive power flowing in the power grid. The APFs may be used as a controlled current source and it has to supply a current wave as close as possible to current As it is shown in the Fig.1, the active filter is composed of a three phase voltage source inverter with ) to provide a constant dc voltage and the real power supply system (Vsa,Vsb and Vsc) with
III. Control scheme
The control scheme consists of PI controller, limiter, and three phase sine wave generator for reference current generation and generation of switching signals. The peak value of reference currents is estimated by regulating the DC link voltage. The actual capacitor voltage is compared with a set reference value. The error signal is then processed through a PI controller, which contributes to zero steady error in tracking the reference current signal. The output of the PI controller is considered as peak value of the supply current (Imax), which is composed of two components: (a) fundamental active power component of load current, and (b) loss component of APF; to maintain the average capacitor voltage to a constant value. Peak value of the current (Imax) so obtained, is multiplied by the unit sine vectors in phase with the respective source voltages to obtain the reference compensating currents.
These estimated reference currents (Isa*, Isb*, Isc*) and sensed actual currents (Isa, Isb, Isc) are compared at a hysteresis band, which gives the error signal for the modulation technique. This error signal decides the operation of the converter switches. In this current control circuit configuration the source/supply currents Isabc are made to follow the sinusoidal reference current Iabc, within a fixed hysteretic band. The width of hysteresis window determines the source current pattern, its harmonic spectrum and the switching frequency of the devices. The DC link capacitor voltage is kept constant throughout the operating range of the converter. In this scheme, each phase of the converter is controlled independently. To increase the current of a particular phase, the lower switch of the converter associated with that particular phase is turned on while to decrease the current the upper switch of the respective converter phase is turned on. With this one can realize, potential and feasibility of PI controller.
The conventional hysteresis band current control scheme used for the control of active power filter line current is shown in Fig.2
Fig. 2: Control scheme for APF III.1 Hysteresis current controller
The schematic diagram of hysteresis controller is shown in Fig.3. The error between reference current If* and real compensating current If is the input to hysteresis comparator. And then the PWM signals are generated by the hysteresis comparator. The semiconductors of SAPF are controller by those PWM signals and then the control of compensating current If is realized.
Fig. 2: Block diagram of periodical sampling constant Hysteresis band
Defining HB as the width of hysteresis comparator, when |∆If|< HB the output of hysteresis comparator will remain invariable, and when |∆If |≥ HB the output of hysteresis comparator will reverse. Then the direction of If will change. Based on the analysis mentioned above, the ∆If will change between – HB and HB, and If will change between If* - HB and If* + HB with sawtooth-shape.
Fig.4 shows the tracking process of compensating current.
Fig. 4: The upper and lower bands of the reference compensation current From Fig. 4, the below relations can be obtained:
Vt Vt (1)
Vt Vt (2) Where and are the rising current and the falling current, respectively. Furthermore, the following relations can be form:
t t 2 (3)
t t 2 (4) f
! (5) Where t1 and t2 are switching intervals and f is the switching frequency.
By substituting (1), (2) and (5) in (3) and (4), the hysteresis band (HB) can be achieved as follow:
"#$
%%"#$&"' () (6)
III.2 DC Voltage controller
When the SAPF is compensating the harmonic and reactive power components, the dc capacitor voltage Vdc varies. Hence Vdc is also sensed and regulated at a reference value in order to establish a self-sufficient energy at the dc bus.
The regulation loop consists of the comparison of the measured voltage with the reference voltage, admitting that the function of the system to be controlled is given by [14]-[15]:
*+ , ,-!
./012./3 (7)
The closed loop transfer function using a PI regulator is given by:
,./
,./01
56 57/3,-!/,./012./3
56 57/3,-!/,./012./3 (8) The development of this equation gives:
,./
,./01
96:-!
:./01;./3 :./01;./97
3!:./01;./96:-! 3:./01;./97:-! (9) The development of this equation gives:
,./
,./01
96:-!
:./01;./3 :./01;./97
3!:./01;./96:-! 3:./01;./97:-! (10)
A second order characteristic equation of the closed loop system is deduced:
+( 2<=>+ ( => 0@,./01A 527 ./ (11) Where:
=> @,./01A 572./ , < C5 56,-
7,./012./ ( 1) (12)
From (12) the proportional and integrator coefficient Kp, Ki of the controller can be deduced:
DE A 5FG7 , D FG! ,./01, 2./
-! (1) (13) The expression of the current Isc to compensate the inverter losses and maintain the constant dc-link voltage is given by:
H3I DE ΔKI( DL ΔKI M @,./01A 527 ./ (14) To obtain optimal dynamic performance for the system, the value of the damping ration ξ must be equal a 0.707.
IV. System modeling and simulation
To simulate the proposed control strategy of the SAPF, a model is developed in Matlab/Simulink®
environment using SimPower Systems Blockset.
Fig.5 depicts the test bench to estimate the performance of the SAPF with proposed control scheme.
The complete SAPF system is composed mainly of a three-phase source, a nonlinear load which is a three phase rectifier feeding an inductive load, a PWM voltage source inverter, and a control bloc.
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 -10
-5 0 5 10
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
-100 0 100
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
-5 0 5
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
0 500 1000 If(A)Vdc (V)IS (A)VS (A) Ps (A)
Fig.5: Main block of proposed control scheme with SAPF under MATLAB
First simulation is carried out with a fixed load and the SAPF is switched on at t=0.05s. Fig.6 shows the source voltage Vsa(V), source current isa(A), DC side capacitor voltage Vdc(V) and filter current ifa(A) . The instant the filter is switched on the source current becomes sinusoidal from the stepped wave shape, the DC capacitor voltage achieve quickly the reference value V*dc (142V) after practically only one cycle (about 10ms). In Fig.7 one can see that the active power Ps(W) joined its nominal value and that reactive energyQs(VAR) becomes null when the active filter is activated at this moment.
Fig. 6: Source voltage, Source current, DC side capacitor voltage and filter current waveforms. Filter switched on at 0.05s
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
110 120 130 140 150
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 -100
0 100
0.1 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18
-4 -2 0 2 4
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 -4
-2 0 2 4
0 5 10 15 20 25
0 20 40 60 80 100
Harm onic order Fundam e ntal (50Hz) = 3.113 , THD= 23.07%
Mag (% of Fundamental)
0 5 10 15 20 25
0 20 40 60 80 100
Harmonic order Fundamental (50Hz) = 3.111 , T HD= 3.59%
Mag (% of Fundamental)
(a) (b)
Qs (A)Is (A) Is (A)
Fig. 7: Active and reactive powers source. Filter switched on at 0.05s
Fig.8 shows the source current spectrum analysis before and after filtering. Before filtering; one can see the current harmonics distortion value was 23. 07%= THDi and after filtering it will be 3.59%
=THDi, which proves that the proposed SAPF control strategy has the capability of compensating for current harmonics successfully
Fig. 8: Source current and its spectrum: (a) before filtering (b) after filtering
V. Experimental validation
The experimentation of this work is done using the test bench which was developed in LAS Laboratory, University of Setif.1 (Fig.9).
Fig. 9: Photography of the APF system prototype
(a)
(b)
If(A)Vdc (V)ISa (A)Ica(A)
The input step-down transformer (
parallel active filter is achieved with a voltage source inverter of 20 KVA. This
phase IGBT 1200 V, 50 A (SKM 50 GB 123D). To ensure the insulation and the dead time of control signals a developed card based on the IXDP630 component and a special driver circuit (SEMIKRON, SKHI 22) are used. The control strategy is
under Matlab/SimulinkTM RTW environment.
proposed systems is 45 µs.
In this control type, switching frequency is variable, although in our design this frequ 20 kHz to not reach the IGBTs maximum switching frequency.
The same experimental test bench parameters are used Vs = 50V (RMS), Rs = 0.1Ω,
Rf= 0.1Ω, Lf= 10mH,
V*dc= 142V, C = 1100µF, HB = (hysteresis band) = 0.01, K
Fig. 10: Steady state respons
Fig. 11: Source current spectrum and vector
down transformer (12KVA, 380/220 V) is connected to the mains. The three phase parallel active filter is achieved with a voltage source inverter of 20 KVA. This
phase IGBT 1200 V, 50 A (SKM 50 GB 123D). To ensure the insulation and the dead time of control signals a developed card based on the IXDP630 component and a special driver circuit (SEMIKRON, SKHI 22) are used. The control strategy is implemented using a dSPACE card DS1104 developed under Matlab/SimulinkTM RTW environment. The sampling time using in practical tests for the In this control type, switching frequency is variable, although in our design this frequ
20 kHz to not reach the IGBTs maximum switching frequency.
The same experimental test bench parameters are used for simulation:
Ω, Ls = 0.1mH, Rc = 0.8Ω, Lc = 2mH,
= 10mH, RL = 30 Ω, LL = 50mH, C = 1100µF, HB = (hysteresis band) = 0.01, Ki= 18
: Steady state response of the SAPF with a current-source type of nonlinear load
: Source current spectrum and vector diagram: (a) before filtering (b) after filtering KVA, 380/220 V) is connected to the mains. The three phase parallel active filter is achieved with a voltage source inverter of 20 KVA. This VSI contains a three phase IGBT 1200 V, 50 A (SKM 50 GB 123D). To ensure the insulation and the dead time of control signals a developed card based on the IXDP630 component and a special driver circuit (SEMIKRON, implemented using a dSPACE card DS1104 developed The sampling time using in practical tests for the In this control type, switching frequency is variable, although in our design this frequency is limited to
= 2mH,
= 50mH,
18.86 and Kp = 0.15
source type of nonlinear load
(a) before filtering (b) after filtering
Fig. 10 shows steady state response of the SAPF for harmonic elimination with a current source type of nonlinear load. In this figure, all the quantities are shown for phase “a” and top to bottom waveforms are the load current (ica), supply current (isa) , active filter current (ifa) and DC side capacitor voltage (Vdc). These waveforms show the capability of the proposed SAPF to compensate harmonic currents of the load, the DC-bus voltage of the SAPF is regulated at its reference value (142v).
The frequency analysis of supply current before and after compensation in phase “a” are shown in Fig.
11 a–b. The SAPF is able to reduce harmonics in the supply currents from 26.4% before compensation to 4.6% after compensation.The THD of the supply voltage is 3%.
VI. Conclusion
A shunt active power filter based on a hysteresis current control algorithm has been studied in this paper to determine the reference current for the SAPF in order to improve the power quality and compensate reactive power required by nonlinear load. With the advanced control system designed in this paper the proposed SAPF can attenuate harmonics well and has a good dynamic performance, various simulation and experimental results of the proposed control algorithm are presented to confirm his validity and effectiveness. The THDi of the supply current after compensation is 4.60% which is less than 5%; the harmonic limit.
Acknowledgements
This work was supported by the 2013 Research Fund of University of Setif-1. The authors would like to express their sincere gratitude.
References
[1] C.Dugan R. McGranaghan Mark F. Santoso S. and Wayne Beaty H.: Electrical Power System Quality, McGraw –Hill
[2] Kazmierkowsi M. Malesani L.: Current control techniques for three phase voltage source PWM converters, IEEE Trans on Industrial Electronics Vol.45 no5, pp.691- 703
[3] Singh B. Al Haddad K. and Chandra A.: A Review of active filters for power quality improvement, IEEE Trans on Industrial Electronics Vol.46 no 5 pp 960-970
[4] Sato Y. Kawase T. Akiyama M. and Kataoka T.: A control strategy for general – purpose active filters based on voltage detection, IEEE Trans. Ind. Appl. Vol. 36 no 5, pp.1405–1412
[5] EL-Khoy E.E. EL-Sabbe A. El-Hefnawy A. and M.Mharous H.: Three phase active power filter based on current controlled voltage source inverter, Electrical Power and Energy Systems Vol.28, pp. 537-547
[6] Agelidis V. Calais M.: Application specific harmonic performance evaluation of multicarrier PWM techniques, IEEEPESC’ 98 Conference Record, pp. 172-178
[7] Carrara G. Gardelta S. Marchesoni M.: A new multilevel PWM method: theoretical analysis, IEEE Trans.
On power electronics Vol. 7 no 3, pp.497-505
[8] Jeong S.-Gi and Woo M.-Ho: DSP-based active power filter with predictive current control, IEEE Trans. on Industrial Electronics Vo1.44 no 3, pp.329-336
[9] Buso S. Malesani L. Mattavelli P.: Comparison of current control techniques for active power filter applications, IEEE Transactions on Industrial Electronics Vol.45 no5, pp.722-729
[10] Chaoui A. Gaubert J. P. Krim F.: Power quality improvement using DPC controlled three-phase shunt active filter, Electric Power Systems Research Vol.80, pp. 657–666
[11] Rahmani S. Al-Haddad K. Youssef Kanaan H.: A comparative study of shunt hybrid and shunt active power filters for single-phase applications: Simulation and experimental validation, Mathematics and Computers in Simulation Vol.71, pp.345–359
[12] Labben-Ben Braiek M. Fnaiech F. Al-Haddad K. and Yacoubi L.: Study of two current control techniques applied to a shunt active power filter: Power quality and active filtering III, ELECTRIMACS 2002, pp 1-6
[13] Hu J. Zhu Z. Q.: Investigation on switching patterns of direct power control strategies for grid-connected DC–AC converters based on power variation rates, IEEE Transactions on Power Electronics Vol. 26 no1, pp.3582-3598
[14] Chaoui A. Krim F. Gaubert J.P. Rambault L.: DPC controlled three-phase active filter for power quality improvement, Elsevier, Electrical Power and Energy System Vol30, pp.476-485
[15] Chennai S. Benchouia M-T. Goléa A. Zouzou S.E. :Fuzzy logic current controller for shunt active filter to compensate harmonic currents based on ANN dc voltage regulator, International conference on electrical engineering , electronics and automatics’2010,Bejaia, Algeria,2-3 November 2010