Performance Enhancement in Active Power Filter (APF) by FPGA Implementation
Performance Enhancement in Active Power Filter (APF) by FPGA Implementation
Corresponding Author:
Shamala N,
Electrical and Electronics Engineering,
Vidya Vikas Institute of Engineering and Technology,
Mysore, India.
Email: [email protected]
1. INTRODUCTION
The role of power electronics in power system has been widespread in almost all the sectors like
industries, commercials, etc. But, when the end users load of the power system is non-linear these power
electronics devices generates harmonic currents (HC) and reactive power (RP) and which impacts on the
power quality [1]. Hence, to resolve the HC and RP issues and achieve the significant power quality passive
filters (PF) were designed. But, PFs lags with the some of the issues concerning size, fixed compensation and
resonance problems. These limitations of the PF has lent towards the design of active filters (AF) [2], [3].
The AF has got more significant features over the PF to tackle the power quality issue. The power quality
indicates the interaction between source power and hardware component.
The undamaged operation of the power system at normal operating condition is known as good
power quality.
In case the hardware is malfunctioned /damaged in power system at normal operation then it is a
power of poor quality.
To improve power quality and harmonic elimination, various researches were presented. Latha et al.
[4] discussed the control strategy for 3-phase shunt APF with low current measurements. This strategy was
compared with the outcomes of dynamic and study state responses and found the effectiveness of source
current than load current measurements. The combinational work of Balasubramanian and Palani [5]
expressed the simulation-based analysis for shunt hybrid APF by siusng PQ theory. This improves the
performance (i.e., power quality) in the passive filter within hybrid APF. The work of Hasan et al. [6]
proposed the linear quadratic regulator (LQR) controller-particle swarm Optimization (PSO) based harmonic
suppression mechanism for shunt hybrid APF. This outcome with smother current and voltage signals with
less processing time.
The power quality represents the wellness of electrical power towards end-user devices. The main
reason for the power quality issues is harmonic waveforms. The power harmonics exhibit different
undesirable consequences in the distribution system [7]. The harmonic waveforms cause various issues like
voltage distortion, higher voltage stresses, resistive losses, lower motor proficiency, etc., in the power
system. Various harmonics generating devices have made power management requirements. A harmonic is
generated due to the abnormal behavior of load and also demands the control over these harmonics. The
significant way to maintain these aspects is by using the combination of APF for harmonic suppression and
harmonic compensation. The APF is a more prominent solution because it reduces both RP and HC and is
smaller in size and doesn't need any prerequisites as in PF [7]. The SRF based approaches were used to
divide HC and RP, by which good power quality, can be achieved. But, it needs proper synchronization
between the utility voltage and input current. Hence, DSP and other software-based mechanisms were used
that causes computational complexity, low/limited sampling rate and less accuracy. As these mechanisms
consume higher CPU time that causes computational latency [8], [9]. Thus, recently AFs proposed by
implementing the multi-dimensional DSP. The control algorithms were used with single-DSP in low pass
filter (LPF) for low sampling rate and time delay compensation. These implemented methods can bring more
hardware complication and software design patterns and also in many of the cases causes the accuracy and
performance issue.
In this paper, a FPGA based mechanisms for APF performance enhancement is presented. The paper
is composed of various sections like Section 2 gives APF system configuration. Section 3 gives the problem
description. Section 4 gives the research methodology of FPGA implantation in APF. Section 5 algorithms
implementation and the Section 6 gives results analysis, and conclusion of the paper is explained with the
significance of the proposed method in section 7.
Int J Elec & Comp Eng, Vol. 8, No. 2, April 2018 : 689 – 698
Int J Elec & Comp Eng ISSN: 2088-8708 691
ir Distortion
Inverter Control
Detection
GDS 6
SinƟ CosƟ
VSI PLL
iLa, iLb,
Va, Vb,
iLc
ic Vc
is iL
In the Figure 2, current reference (C-R) generator is discussed which is having 3φ load current and is
transformed as dqz vector forms.
From parks transformation principles,
i pqz [i p iq i z ]T
(1)
i pqz P [iLa iLb iLc ]T
Later, the abc frame components can become dc current terms i.e., i pd , i zd and iqd of dqz the frame.
Also, harmonics are transformed into the ac components using frequency shift. The negative component i qd
is set as zero to compensate the RP currents. The instantaneous active power (AP) currents can be obtained
by using inverse Parks transformation, where i fa , i fb and i fc are the AP currents and are obtained from dc
terms,
Subtracting i fabc from i Labc and distorted components are obtained. The obtained, current is
considered as instantaneous reference currents, i.e i Ra ., i Rb and i Rc of the VSI module.
Considering Equation (1) and Equation (2):
cos wt sin wt 1
P 1 cos( wt 2 ) sin( wt 2 ) 1 (4)
3 3
cos( wt 2 ) sin( wt )
2 1
3 3
In case the value of ic becomes similar to i r reaches then compensation of RP and HC is done
through APF, which leads to sinusoidal source current in phase with voltages. The system in the figure.3,
with load parameters in APF, will lead to unity power factor and low total harmonic distortion (THD). The dc
voltage regulator can be taken into consideration and output current i dc can be generated, which depends on
the difference between the reference voltage v ref and dc-bus voltage vbc . In case of fluctuation in dc voltage
occurs, then regulator starts controlling RP transfer and receives between dc capacitor and ac grid to attain
constant dc voltage. The zero sequence i z components compensate the zero sequence current in 3φ, 4-wire
systems, and are zero in this application [14].
3. PROBLEM IDENTIFICATION
In the power distribution system, the RP and the HC may offer some of the serious issues causing
transformer heating, line losses, malfunctioning of power equipment and machine vibration. Various control
mechanisms were examined from which Synchronous Reference Frame (SRF) for control algorithm makes
significant results with simple implementation and efficient response. This algorithm offers the capability of
decomposition or separation of the RP and HC. Also, these algorithms demand utility voltage phase
information by which necessity of synchronizer for better synchronization of S-C with the utility voltages.
Various algorithms such as protection module, dc voltage regulator, analog to digital (A-D) converter drivers
and directed-current (d-c) controller, etc., need to be used for synchronization. The above process leads
digital controller realization in a system having high sampling rate. The DSP based and other software-based
mechanisms provide allowable flexibility and computational ability. The implementation of these systems
with control algorithm consumes higher CPU time causing computation latency. Also, APF with multi-DSP
or single-DSP were used but which leads low sampling rate and time delay compensation among the low
power filter (LPF).
The above method causes the complication during designing software and hardware that may inject
the reduction of compensation accuracy and APF performance. Thus, the implementation of FPGA based
control algorithms will execute all the above-stated procedures/steps simultaneously with hardware
implementation.
4. RESEARCH METHODOLOGY
In this, a system is presented based on FPGA (Figure 3). However, the more difficult issue is how to
reduce the number of functional units (such as adders, dividers, and multipliers that are the big issues for the
finite hardware resource of FPGA). In this, the basic signal-processing blocks of an APF: three-phase PLL,
and current directed controller are discussed.
Sine wave
Switching table
(Sine table)
Int J Elec & Comp Eng, Vol. 8, No. 2, April 2018 : 689 – 698
Int J Elec & Comp Eng ISSN: 2088-8708 693
Va sin
'
Vabc Vb sin( ' 2 ) (5)
3
Vc
sin( )
' 2
3
Apply Park’s transformation (3) to (5), the 3φ voltages in dqz frame as:
Vabc Vd Vq Vz
T
P Vabc (6)
Consider reference component (Vdr) = 0, then Vd can be obtained from (6) under PLL-locked (steady state)
condition.
From above sin( ' ) is equal to ' when ' approaches . i.e., Vd and will approach
zero under phase-locked condition. The loop error () gives angular frequency (ω) via a proportional-
integral (PI) controller. Finally, an integrator is used to produce the phase output. From (7), we can know that
Δ is derived from Vd only. The computation of Vq and Vz should be neglected to reduce computing-resource
consumption. Thus, the equation of the phase-error detection can be simplified as
2 2
Vd Va cos( ) Vb cos( ) Vc cos( ) (8)
3 3
Using above model (Figure 4), a compact 3φ PLL system is realized and is shown in Figure 5. From above,
equation VII, Vd and which includes loop error calculation. Thus, the result forwarded to PI controller
uses “+” sign in the feedback loop, as shown in Figure 4. Later, the need to multiplied by two constants
(Kp, Ki). However, if Ki is adjusted to be a power of two, the multiplication can be substituted by a shifting
operation, which is much simpler and area-efficient in FPGA applications. Also, the proportional calculation
is produced by an Np bits shifter. It is noted that a Ni bits shifter is added in the integral procedure to truncate
the output to the same width of the proportional action result.
Va
SinƟ, CosƟ………...
Vb P T(Ɵ)
Vc
Vd Vq Vz
+ w Ɵ
Kp (Tz)/(Z-1)
Vdr=0 ( )
+
(Ki x Tz)/(Z-1)
The sinusoidal function T(θ) is implemented by look-up table method using the internal RAM of FPGA.
Considering saving the RAM resource, only a one-quarter size sinusoidal table (0 ∼ π/2) is required because
of the symmetric relation of the sinusoidal function. The entire process is shown in Algorithm 1:
As a result, an address generator must be inserted to generate the six different lookup addresses from
a single-input θ. Also, a postprocessor has to be designed to produce the correct outputs from the compact
table. The address generator and postprocessor are both controlled by a finite-state machine as shown in
Figure 6.
L
Vref V n I (9)
T
A detailed prediction criterion of the reference voltage vector is discussed, and there is also the
criterion of the optimal switching output Vn, which is determined by the previous PWM output vector V n−1
and the region of ΔI. Furthermore, when Vn−1 = V6, then the optimal voltage space vector should be V2. The
V2 can force ΔI to the opposite direction, and the voltage stress (Vref − V2) applied to the ac inductor is the
lowest one of the seven possible values. The lower the voltage stress applied to the ac inductor, the longer
time the error-current vector remains in the hysteresis. Therefore, a lower switching frequency can be
achieved using this strategy.
The algorithm for hardware implementation gives the detailed block of hardware implementation. In
the first step, we consider 3φ reference input, i.e., Ri. In step 2 the Ri is converted to 2φ by using the shifter
(Sh) and adders (ad) shown in Figure 7. Later magnitude module (Magm) and sector identification (Si) is
generated using 2φ and decoder respectively. Then the generated outputs are applied to generate pulse width
modulation (PWM) outputs by using the switching generators (Sg) and switching table (St).
Figure 8 is shows the decomposition of Vref.
Int J Elec & Comp Eng, Vol. 8, No. 2, April 2018 : 689 – 698
Int J Elec & Comp Eng ISSN: 2088-8708 695
Vd Trans PI Controller
Np Bit
Va 0 >> D
Vb 1 16 16 16
D D
Vc (1) Ni Bit
2
>>
D
Cos
2
Cos( )
32 Sine 8bit
Cos( ) Post
3 Table Adder
Sin Processing
2 (0 ∼ π/2) Generator
Sin( )
32
Sin( )
3
T ( ) trans
5. RESULTS
The outcome of the proposed study is simulated using soft-computational approach using ModelSim 6.3f
and Xlinix ise14.7 and Spartan 3 FPGA board.
Int J Elec & Comp Eng, Vol. 8, No. 2, April 2018 : 689 – 698
Int J Elec & Comp Eng ISSN: 2088-8708 697
Figure 11. RTL of Direct current Figure 12. Simulation Results of Direct current controller
controller
The resource utilization of the FPGA for designing of 3φs PLL System is shown in Table 3. The
resource utilization of the FPGA for designing of Direct Current Controller System is shown in Table 4.
6. CONCLUSION
This paper discusses an APF system based on FPGA to bring the dynamic performance in APF. The
system is implemented with 3φ phase locked loop (PLL) and directed current controller. The performance of
the proposed model is compared with Charles and Vivekananda [15] and analyzed by Xilinx 14.7. And
simulated using Model sim 6.3f Simulator The results obtained tabled in Table 5.
Flipflop 9% 2%
slices
LUT 41% 6%
Slices 49% 7%
occupied
REFERENCES
[1] L. Asiminoaei, F. Blaabjerg, and S. Hansen, “Evaluation of harmonic detection methods for active power filter
applications,” in Proc. Appl. Power Electron. Conf. Expo., 2005, vol. 1, pp. 635–641.
[2] T. C. Green and J. H.Marks, “Control techniques for active power filters,” Proc. Inst. Electr. Eng.-Electric Power
Applications, vol. 152, no. 2, pp. 369–381, Mar. 2005.
[3] S. K. Jain, P. Agarwal, and H. O. Gupta, “A control algorithm for compensation of customer-generated harmonics
and reactive power,” IEEE Trans. Power Del., vol. 19, no. 1, pp. 357–366, Jan. 2004.
[4] Y.Kusuma Latha, Ch.Saibabu, Y.P.Obulesh, "Control Strategy for Three-Phase Shunt Active Power Filter with
Minimum Current Measurements," International Journal of Electrical and Computer Engineering (IJECE), Vol.1,
No.1, pp. 31~ 42, September 2011.
[5] R. Balasubramanian, S. Palani, "Simulation and Performance Evaluation of Shunt Hybrid Power Filter for Power
Quality Improvement Using PQ Theory," International Journal of Electrical and Computer Engineering (IJECE)
Vol. 6, No. 6, pp. 2603~2609, December 2016.
[6] Nor Shahida Hasan, Norzanah Rosmin, Saifulnizam Abd Khalid, Dygku. Asmanissa Awg. Osman, Baharuddin
Ishak, Aede Hatib Mustaamal, "Harmonic Suppression of Shunt Hybrid Filter using LQR-PSO based,"
International Journal of Electrical and Computer Engineering (IJECE) Vol. 7, No. 2, pp. 869~876, April 2017.
[7] R. Hao, Z. Cheng, and X. You, “A novel harmonic currents detection method based on rotating d–q reference
frame for active power filter,” in Proc. Power Electron. Spec. Conf., 2004, pp. 3034–3038.
[8] W. Lei, F. Zhuo, H. Li, and Z. Wang, “Study on the key-problems for digital controlled multiple parallel active
power filter,” in Proc. Power Electron. Motion Control Conf., 2004, vol. 1, pp. 254–259.
[9] Z. Chen and D. Xu, “Delayless harmonic detection based on DSP with high-accuracy for active power filter,” in
Proc. Appl. Power Electron. Conf. Expo., 2005, pp. 1817–1823.
[10] J. J. Rodriguez-Andina, M. J. Moure, and M. D. Valdes, “Features, design tools, and application domains of
FPGAs,” IEEE Trans. Ind. Electron., vol. 54, no. 4, pp. 1810–1823, Aug. 2007.
[11] G. G. Parma and V. Dinavahi, “Real-time digital hardware simulation of power electronics and drives,” IEEE
Trans. Power Del., vol. 22, no. 2, pp. 1235–1246, Apr. 2007.
[12] Y. F. Chan, M. Moallem, and W. Wang, “Design and implementation of modular FPGA-based PID controllers,”
IEEE Trans. Ind. Electron., vol. 54, no. 4, pp. 1898–1906, Aug. 2007.
[13] R. Dubey, P. Agarwal, and M. K. Vasantha, “Programmable logic devices for motion control-A review,” IEEE
Trans. Ind. Electron., vol. 54, no. 1, pp. 559–566, Feb. 2007.
[14] H. Du, H. Qi, and X. Wang, “Comparative study of VLSI solutions to independent component analysis,” IEEE
Trans. Ind. Electron., vol. 54, no. 1, pp. 548–558, Feb. 2007.
[15] Charles S and Vivekanandan C, "An Efficient FPGA based Real-Time Implementation Shunt Active Power Filter
for Current Harmonic Elimination and Reactive Power Compensation", J Electr Eng Technol, April 6, 2015.
BIOGRAPHIES OF AUTORS
Shamala N., Associate professor, Electrical and Electronics Engineering, Vidya Vikas Institute of
engineering and Technology, Mysore, India. She has completed B.E from SJCE in 1997, Mysore
University. She has done M.Tech from SJCE, VTU in 2003. She is Pursing Ph.D. in Electrical and
Electronics. Her area of interests is in Microcontrollers, Digital image processing, High voltage
engineering, HVDC, Digital power system protection, Control systems, Basic electronics, Linear
algebra, embedded system design, Management and Entrepreneurship, Electrical and electronics
instrumentation, DSP, DSP architecture.
Int J Elec & Comp Eng, Vol. 8, No. 2, April 2018 : 689 – 698