Electrical Power Quality Improvement Using A DSP Controlled Active Power Filter
Electrical Power Quality Improvement Using A DSP Controlled Active Power Filter
Abstract— The quality of the electrical current becomes a major system, in order to implement and test it on the active power
concern. The power electronic equipments induce harmonic filter. The simulation results are presented and discussed showing
disturbances in the power distribution systems. They typically the effectiveness of the control algorithm.
draw non-sinusoidal currents from the utility, causing
interference with adjacent sensitive loads and limit the utilization
of the available electrical supply. The quality of the electrical Keywords-component; power quality improvement; active power
current thus becomes a significant concern for the distributors of filters; fixed point DSP control
energy and their customers.
In this paper a parallel active filter prototype capable of I. INTRODUCTION
reducing the total harmonic distortion in the supply for most
current source or adjustable speed drive type loads is presented. In a modern power system, increasing of loads and non-
A 45 kVA active power filter was developed for harmonic and linear equipment's have been demanding the compensation of
reactive power compensation based on the instantaneous power the disturbances caused for them. These nonlinear loads may
theory. The active power filter, is controlled by a Texas cause poor power factor and high degree of harmonics. The
Instruments TMS320F2812 32 bits fixed point DSP, the newest simplest method of eliminating line current harmonics and
member of the TMS320C2000 DSP platform. It is source code improving the system power factor is to use passive LC filters.
compatible to the 24x/240x DSP devices and, additionally, the However, bulk passive components, series and parallel
C28x is a very efficient C/C++ engine, enabling users to develop resonance and a fixed compensation characteristic are the main
not only their system control software in a high-level language, drawbacks of passive LC filters.
but also enables math algorithms to be developed using C/C++.
It is presented a simplified block diagram of the proposed Active power filters are an up-to-date solution to power
active power filter and of the control circuit, designed around the quality problems [3]. They can be divided in two classes: series
DSP. The control algorithm is based on the instantaneous and parallel (shunt) active filters. Shunt active power filters
reactive power theory. Due to the computing power of the DSP (Fig. 1) allow the compensation of current harmonics and
the algorithm can be developed and tested in Matlab/Simulink, unbalance, together with power factor correction, and can be a
and then generate the C/C++ code for the control blocks of the
much better solution than conventional approach (capacitors transformation is commonly called the reverse Park
and passive filters). transformation and can be digitally calculated by equations:
An active power filter can solve problems of harmonic and 2πn 2πn
reactive power simultaneously. Active power filter’s consisting p + = iLα sin N − iLβ cos N
of voltage-source inverters and a DC capacitor have been (3)
researched and developed for improving the power factor and
stability of distribution systems. Active power filters have the q + = iLα cos 2πn + iLβ sin 2πn
ability to adjust the amplitude of the synthesized ac voltage of N N
the inverters by means of pulse width modulation or by control
of the dc-link voltage, thus drawing either leading or lagging and the digital sinusoidal reference signal is given by formula:
reactive power from the supply.
2πn = sin 2πfSnTS
sin (4)
N N
IS IL l
3~ where: n – index of the current sample.
E2 ZS2 IS2 IL2 Z2 quadrature-encoder pulse (QEP) circuits. EVA and EVB
~
ZS3
timers, compare units, and capture units function identically.
E3 IS3 IL3 Z3
The enhanced pulse width modulator (ePWM) peripheral is a
~
C1 IC1… IC3
Q1 Q2 Q3 able to generate complex pulse width waveforms with minimal
UC1 IL1… IL3
UC1, UC2
CPU overhead or intervention. It is highly programmable and
C2 very flexible and also easy to understand and use. The ePWM
Q4 Q5 Q6 U1
UC2 is built up from smaller single channel modules with separate
resources and that can operate together as required to form a
system. This modular approach results in an orthogonal
architecture and provides a more transparent view of the
Figure 2. Block diagram of the proposed active power filter
peripheral structure, helping users to understand its operation
Fig. 3 presents the internal block diagram of the quickly.
TMS320F28x DSP family [4]. All the analog signals necessary
in the control algorithm are connected to the ADC module of IV. HARDWARE AND SOFTWARE TOOLS
the DSP. The ADC module in the F281x has been enhanced, The prototype of the active power filter is designed with a
compare to the F24xx family, to provide flexible interface to control circuit based on the “MSK2812 Kit C Pro VS” (from
event managers. The ADC interface is built around a fast, 12- Technosoft S.A.). Operating at a 150-MHz frequency, with
bit ADC module with a fast conversion rate of 80 ns at 25- double event-manager signals, increased internal memory, etc.,
MHz ADC clock. this new kit offers all features needed for an advanced digital
control implementation.
16 kW – 64 kW 6 – 18 kW Boot Enhanced Q1… Q6
Flash RAM ROM Event Mgr. All communication between the PC and the DSP board is
IC1… IC3
done through the RS-232 interface using a real-time serial
IL1… IL3
Memory Bus ADC communication monitor with download/upload functions,
UC1,UC2,U1 debug and inspect facilities [5].
Peripheral Bus
Interrupt Management
GPIO PROCEV28x, a graphical evaluation/analysis software for
the specific peripherals embedded in the TMS320F2812 DSP,
C28xTM 32 – Bit DSP Up to 4 x SPI is provided to rapidly familiarize the designer with these
32 x 32 – Bit R-M-W
functions.
Up to 2 x SPI
Multiplier Atomic
ALU
DMCD28x-Lite, the Digital Motion Control Development
32 – Bit
Timers (3)
I2 C platform offered by Technosoft S.A. integrates a debugger,
32 – Bit
Real – Time Register File Up to basic assembler, linker, C compiler and many other facilities,
JTAG Dual CAN allowing to create, modify and test applications within a highly
organized project management system.
Figure 3. Internal block diagram of the DSP, and it’s connections to the
power circuits
It is offered also a collection of Simulink control blocks that
can be used to program Technosoft Control Kits based on the
The ADC module has 16 channels, configurable as two TMS320F2812 DSP. So, the control system can easily be
independent 8-channel or which can be cascaded to form a 16- simulated in Simulink, and once the system was simulated and
the developer is satisfied with the expected behavior, he can
proceed to the next level: generate C/C++ code for the control VI. CONCLUSIONS
blocks of the system, in order to implement and test it on the In this paper, a control unit for the active power filters
2812 DSP controller. based on the new TMS320F28x DSP family from Texas
Instruments has been proposed. The computer simulation has
V. EXPERIMENTAL INVESTIGATIONS verified the effectiveness of the control scheme. Experimental
A prototype of an 45 kVA active power filter is building. results on a 45 kVA prototype will be done and reported in a
The parameters of the used components are: Li=0.6mH and future paper.
Ci=5.1 mF. A multi-bus architecture and rich instruction set makes
The control method is tested on a simulation model. As a DSPs well suited to executing demanding real-time control
non-linear load, a diode bridge rectifier feeding a DC motor, is algorithms. Recent developments in simulation software enable
used. designers to model fixed-point digital processors, and to
automatically generate optimized source code which may be
Fig. 4 shows the simulation results of the active power compiled and run on the target processor directly from the
filter. We can see that even if the Total Harmonic Distortion simulation environment. This “hardware-in-the-loop” approach
(THD) of the load currents are of about 50%, the THD of the enables the control algorithms generated by the model to be
source current is decreasing under 10%. executed on a real target processor such as the C28x during
simulation, and increases the level of design confidence. The
30 easiness with which control algorithms can be created and
modified in this manner can save months of development time
20
and leads to earlier error detection compared with traditional
IL[A]
10
0
- 10
- 20
- 30 0 0,02 0,04 0,06
t[s]
Figure 4. Simulation results of the active power filter for a non-linear load,
a diode bridge rectifier feeding a DC motor