You are on page 1of 6

Programmable Three-Phase Voltage Source

Controlled by Fuzzy Logic


Jose L. Paniagua Jesus A. Lopez
Universidad Autónoma de Occidente. Departamento Universidad Autónoma de Occidente. Departamento
de Automática y Electrónica. Cali, Colombia. de Automática y Electrónica. Cali, Colombia.
joselouke@gmail.com jalopez@uao.edu.co

Johnny Posada
Universidad Autónoma de Occidente. Departamento
de Automática y Electrónica. Cali, Colombia.
jposada@uao.edu.co

Abstract—In this work a three-phase power supply to emulate next, the description of the power supply to generate the
voltage disturbances that occur in an electrical network is disturbances is presented, the work continues showing the
presented. The type of disturbances that can be generated are description of the control algorithms and their comparison
voltage drop (voltage sags), over voltage (voltage swell). To using performance indexes, lastly outlines the conclusions.
maintain the value of the disturbance is necessary to implement a
close loop with a control technique on it. Three control schemes II. QUALITY OF ELECTRICAL ENERGY AND QUALITY OF SUPPLY
were probed in this work: PI, PID and fuzzy control. Simulations
show that the tracking properties of the PI, PID and fuzzy While the quality of supply, is related to the number of
control are similar. Using the smoothness of control signal shows interruptions in an electrical system and the duration of each
that the fuzzy control behaves better. interruption. The electromagnetic disturbances likely to affect
the proper functioning of the equipment and the industrial
Keywords—Fuzzy control; Sag; Swell; Power supply, processes are classified generally in conducted and radiated
Electromagnetic disturbances disturbances. According to the magnitude of fail frequency the
I. INTRODUCTION fails can be classified in low frequency (less than nine
kilohertz), high frequency (greater than or equal to nine
The quality of electrical energy is concerned with either kilohertz) and electrostatic discharge [1]. The quality of
power quality or quality of supply. However the quality of electrical energy is usually determined the electromagnetic
electrical energy is related, according to the IEEE, to the
disturbances conducted in low frequency. These disturbances
keeping of an electrical distribution system free of variations or
can be classified in:
electromagnetic disturbances to avoid malfunction or failure in
the equipment of the user. Compensation of electromagnetic • Sag’s of voltage (Voltage drop).
disturbances increases the power quality of an electrical • Swell of voltages (Over voltages).
network To probe different algorithms that can do this • Fluctuations of voltage or flicker’s.
compensation is necessary to have specific hardware to
A. Sag’s of Voltage
simulate the different types of disturbances. The main type of
disturbances are voltage drop (voltage sags), over voltage A voltage sag is a sudden drop in voltage at a point in a
(voltage swell) and voltage fluctuations (flickers). In this work network of electric power, up to a value between 90% and 1%
is presented a hardware (a power supply) to produce the (According to CEI 61000-2-1, CENELEC EN 50160), or
electromagnetic disturbances that occurs in an electrical between 90 and 10 per cent (IEEE1159) of a reference voltage
network. To keep the value of the disturbance is necessary to rating (the reference voltage rating is the nominal voltage
implement a close loop with a control technique on it. Three declared for networks of Low, Medium and High Voltage). For
control schemes: PI, PID and fuzzy control were implemented the Colombian norm NTE 2050, has been taken as a reference
in this work. To compare the control strategies four the standard IEC 61000-2-1. The voltage sags are characterized
performance indexes were used. Two to measure the behavior by its duration and the extent of the fall. See figure 1. The
of the error and two to measure the behavior of the control SAG's of voltage are generally caused by high currents,
signal. Simulations show that the tracking properties of the PI, generated by shorts, connection of loads of high power
PID and fuzzy control are similar. Using the smoothness of consumption, etc. Are irregular phenomena and random
control signal shows that the fuzzy control behaves better. behavior, which bring failures in the power supply of the
system of power or off the electrical system of its own, this can
This paper is organized as follows. First, it explains the also lead to voltage drops in user's neighbors of the same
electromagnetic disturbances found in an electrical network, electrical system, triggering of protections, operation output

978-1-5090-5105-2/16/$31.00 ©2016 IEEE


drivers, velocity change in induction machines, re
reduction of The flicker is of successive variations in voltage caused by
the output power in banks of capacitors, etc. certain industrial loads such as welding machines, large
engines with variable loads, electric arc furnaces, etc.

D. Design of the Generator


This platform
tform consists of part software and other hardware.
The software is comprised of Matlab, Simulink and control
desk, which operate together to achieve the interaction with
the hardware part and be able to perform control over this. The
interface is based on the platform DSPACE with the card
Fig. 1. Representatives at the time of voltage sags. [3]. DS1104 which is compatible with both software. The
Hardware is composed of different sub-modules
sub that meet a
B. Swell of voltage specific function within the complete system. The platform
The swell, are sudden increases in the effective value of consists of a three-phase
phase rectifier, a subsystem to start,
s a
voltage above 110 per cent of the nominal voltage. The swell SPWM generator, three single-phasephase inverters and an output
can be of three types; temporary, maneuver and atmospheric filter based on a settlement of transformers
transfor and capacitors. In
source and can occur between active conductors, phase/phase Figure 3 shows a block diagram of the whole system.
or phase/neutral (for voltage at differential mode), or between
the active conductors and the mass or the Earth (on common
common- E. Software
mode overvoltage).. The temporary overvoltages can last As you can see in Figure 3,, stage software is composed of
between half cycle of the signal voltage and one minute. It may a graphical
hical interface made in control desk, which allows you
be caused by defects in insulation, ferro-resonance,
resonance, fault or to interact with the hardware through a model implemented in
cutting of neutral, defects of the voltage regulator in Simulink. These subs stages interact to generate the references
alternators, mismatches in the burdenn of transformers and on
of the system and display the response of the same in real
compensation of reactive power. The overvoltage of maneuver
time.
is produced by quick modifications of the structure of the
network (e.g.: Opening and closing of protective equipment,
transfers, etc.). The swells are characterized by ththeir average
duration above a threshold defined by the mag
magnitude of the lift.
See figure 2.. The length of the lifting tension is the time
measured from the moment in which the effective value of the
voltage rises above the threshold until when it returns un under
this. For the purposes of classification, the magnitude of the
elevation is given by the maximum deviation of the effective
value of the voltage with respect to the nominal voltage and,
the duration of the overvoltage is given by the maximum
duration off the worst phase affected in each case.
Fig. 3. General diagram of the Platform generator of events.

• Control Desk. The software developed with this


application is composed of a graphical interface (layout) in
which you can set the phenomena (sacks, swell, etc.) Its
amplitude in percentage and the duration of the same.
Similarly allows you to display the levels of voltage and
current in the load connected to the system.
• In the interface there are three regions aimed at the
Fig. 2. Characterization of a swell of voltage. [4]. generation of the disturbances in each one of the phases.
C. Fluctuations of Voltage or Flicker’s Each region, then allows you to generate sag or a swell,
letting the user detail the duration as well as the percentage
The flicker's are variations of the effective value or the in the amplitude of the sags or swell.
value of crest of an amplitude less than 10% of the nominal
voltage. Fluctuations in voltage are a succession of supply F. Hardware
voltage variation or variations cyclical random or of the The hardware part of the generator consists of several
envelope of a tension,
on, whose characteristics are the frequency stages, among which are a starting system, a rectifier, a circuit
of the variation and its amplitude. SPWM signal generator, a group of sources regulated voltage
According to the standard UNE EN50160:1996, the flicker to 15V and 5V, three single phase inverter, a board of signal
is the impression of instability of the visual sensation due to a conditioning for current and voltage sensors, three current
stimulus luminous in which the luminosity of the spectral transducers and three voltage.
distribution fluctuates with the time.
Fig. 6. Diagram of SPWM Signal Generator

Referring to Figure 6,, the triangle wave generator is based


on an integrated circuit XR2206, which can generate
different types of signals among whichwhi is triangular. In
addition to manually adjust both the amplitude and
frequency of the signal generated, facilitating tests and
Fig. 4. Graphical interface
nterface of Control Desk to generate shocks.
experiments of the entire system.
system Furthermore, the phase
signal is generated from DSPACE with amplitude not
• The starting system has as a main component a greater than 8V, thishis in order to ensure good results
microcontroller atmega16-P, P, which is responsible for comparing this signal with the triangles. To ensure proper
checking the voltage levels in each of the phases and the protection of the platform DSPACE insulation
phase sequence of the three phase electrical grid. Th The implemented by insulating operational amplifier reference
purpose of this is to ensure optimum operation in the AD202 of Analog Devices connected to each of the
rectifier, which makes part of another fundamental stage of sinusoidall signals and configured as voltage followers in
the system. Once the boot system has verified the order to prevent damage to the DAC channels (digital to
parameters already mentioned, turns on a pilot in the panel analog channel) of the DSPACE. The comparator is
indicating that the system can be started by the user. The composed entirely by a reference operational amplifier
reason why it was necessary the implementation of this LM393, which is a pure comparator, allowing this thi
starting system was to ensure the optimal functioning of operation to achieve SPWM signal. The triangular signal
the rectifier and therefore provide a suitable DC level for generated has a much higher frequency (5 KHz) that the
each single phase inverter. sine signal, and is slightly greater (above 1 Volt)
amplitude. These two conditions are necessary to achieve
optimal modulation bipolar SPWM. For F proper operation
of a voltage inverter DC/AC/AC is necessary that the control
signals or activation of the inverter are complementary and
there is a time delay between them. This in order to avoid
short circuit in the DC voltage source that provides the
inverter.
verter. Because of this, a circuit composed of a NOT
Fig. 5. Block diagram of the starting system.
gate array and a network of the capacitor and an resistor in
order to introduce said delay time is implemented.
• The rectifier has as function to generate the level DC to Furthermore an enable circuit implemented by each pair of
single phase inverter from the three phase electrical grid. signal SPWM and its complement,
complem which is based on an
[6]. In this case it is using the conventional three
three-phase array of AND gates and an activation signal from the
network of the laboratory of the university which provides interface ControlDesk.
a voltage line by line of 208Vrms with which it gets a DC
voltage to the rectifier output of 280Vdc. • The three-phase
phase inverter consists of three single-phase
single
• The SPWM modulation or width modulation ssinusoidal inverters connected to the same DC bus, whose outputs are
pulse is a modulation type wherein the pulse width is not connected to a transformer coupling as showns in Figure 7.
fixed is maintained and varies according to the comparison [7]. A single-phase
phase inverter is a circuit in which an array of
power semiconductors, switched following a certain
in amplitude of a triangular reference signal with a carrier
sequence to generate an alternating voltage signal. Full
sine, reducing factor significantly the distortion factor and bridge Inverter topology is used in this work. Electronic
lower order harmonics. In the diagram of Figure 6 shows a switches must switch simultaneously crosshair to prevent a
general scheme SPWM signal generator whose function is short circuit in the DC voltage source. The output of this
to provide such signals to each of the three single
single-phase inverter iss an alternating square wave. [5].
[5 Therefore, it is
inverters for proper activation. It is important to note that necessary to include a filter or filter output based on
this scheme is replicated three
ee times, because as it tries to Inductor or transformer and capacitor
apacitor in order to obtain an
emulate a three-phase system. AC voltage signal.
Fig. 8. Hardware. 1) Starter. 2) Three-Phase Rectifier. 3) LC Filter. 4) Indicator
Fig. 7. Three-Phase Invrter. [7] Panel. 5) PWM Generator. 6) Three-Phase Invrter. 7) Current Transducers. 8)
Sallen-Key Filter. 9) Voltage Transdcers.
• The event generating source was equipped with current
sensors and voltage to know the status of these variables III. CONTROL DESIGN AND SIMULATION
and to perform a type of closed-loop control of the entire
system. It was also necessary to design and implement an A. PID Control
interface between these sensors and DSpace. This circuit is The PID is short for Proportional, Integral and Derivate.
composed by an active filter based on an LF353 operational PID control is the most used control technique in industrial
amplifier in Sallen-key configuration to eliminate high processes mainly because is easy to implement [8]
frequency noise and an arrangement of Zener diodes to One problem that PID control has is the wind up. This
protect the DSPACE ADC channels and not exceed +/- means that the integral term may become very large. It is then
10V levels supported. required that the error has opposite sign for a long period
Six circuits like this were implemented because the system before things return to normal. The consequence is that any
was equipped with six sensors, three current and three voltages controller with integral action may give large transients when
per phase respectively. Current transducers of reference LA- the actuator saturates. To avoid this problem anti-windup
55P were used. These devices have galvanic isolation between scheme is used [8].
the primary circuit (high power) and secondary (electronic The design of a PID controller with ant-windup consists on
circuit), managing a conversion scale of 1000: 1. Its main find four gains. Thus, is necessary to define the proportional
feature is that it uses the Hall Effect for measurement and has gain (K), the integral time (Ti), the derivative time (Td) and
advantages such as linearity, high immunity to external the anti-windup time (Tt). These parameters were found using
interference and a wide bandwidth. To measure the voltage in simulation of the process.
each phase, voltage transducers of reference LV-20P were
used. These devices have galvanic isolation between the B. Fuzzy Control
primary circuit (high voltage) and the secondary (electronic Fuzzy control allows design a controller for a process
circuit), managing a conversion scale 2500: 1000. The having a qualitative understanding of its operation [9]. The
operating principle of this device is that for voltage control strategy is defined using linguistic rules. For the
measurements, proportional to the measured voltage, current definition of the rules two inputs and one output were defined
must pass through an external resistor, which must be selected for the fuzzy controller. The inputs are the error (E) and the
by the user and installed in series with the circuit primary
rate of change of error (dE) and the output is the variation of
transducer. The value of this resistance should be chosen
the control signal apply to the process (dU). We used the next
depending on the voltage that is expected to measure and
according to the manufacturer specifications provided in the linguistic variables to characterize the inputs and output of the
data sheet. controller: Very Negative (VN), Negative (N), Zero (Z),
Positive (P) and Very Positive (VP) Table I shows the rules of
the fuzzy control

Fig. 9. Fuzzy logic Controller


Figure 9 shows the scheme with the fuzzy controller, wich C. Simulation of PI and PID controllers
will also implement a sheme of Anti-windup. Figures 12 shows the behavior of the output signal when a
PI and PID controllers are used, and figures 13 shows the
TABLE I behavior of the control signal when a PI and PID controllers
LINGUISTIC RULES FOR THE FUZZY CONTROLLER are used.
Variation of Error derivative
Control Signal VN N Z P VP D. Simulation of Fuzzy controller
VN VN VN VN VN VN Figures 14 shows the behavior of the output signal and the
N VN N N Z Z control signal when a fuzzy controller is used.
Error C N N Z P P
IV. CONTROLLERS COMPARISON
P C C P P VP
VP VP VP VP VP VP To compare the behavior of the controller are used four
performance indexes.
Fuzzy controller inputs are the error signal and its A. Performance indexes for error
derivative, these go through an inference mechanism
Evaluates the difference between the desired value and the
generating the control action. Both the error signal as the
value obtained at the output To measure the quality of the
derivative can be positive, zero or negative (linguistic labels).
error, we used two performance indexes: The first one is the
The error gives us information about how far or is the current
mean square error Eq. 1, the second one is the mean absolute
reference to the desired reference and error derivative provides
error, Eq. 2.
information about how fast or slow you change the reference.
If the error is negative means that the current reference is 400 400

below the desired reference and a negative derivative means


350 350

300 300

that it is increasingly distant from the reference, whereas if a 250 250

derivative of the positive error had this would mean that the Voltage

Voltage
200 200

current reference is approaching the desired reference. If the


150 150

100 100

error and the derivative are zero this is interpreted that the 50 50

reference is still. 0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8

Figures 10 to 12 show the fuzzy sets of the inputs and


Time Time

output variables. The type of fuzzy inference chosen for this Fig 12. Behavior of the output signal for PI (left) and PID (right)
controllers
project was Mandani [9].
1 1

0.8

0.6

0.4
0.5
0.2
Control Signal

Control Signal
0

-0.2
0
-0.4

-0.6

-0.8

-0.5 -1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
Time Time

Fig. 10. Fuzzy set for the input error.


Fig. 13. Behavior of the control signal for PI (left) and PID (right) control
lers

Accion de Control con Controlador Difuso


350 1.2

300 1

250 0.8
Control Signal

200 0.6
Voltage

150 0.4

100 0.2

50 0

Fig. 11. Fuzzy set for the input error derivative. 0


0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
-0.2
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
Time Time

Fig. 14. Behaviour of the output signal (left) and the control signal (right)

1
1= ( ( − ( (1)

Fig. 12. Fuzzy set for the output control signal variation.
1 Fuzzy control showed a better behavior than other control
2= | ( − ( | (2) strategies. To get this conclusion was very useful to use
performance indexes to compare the different controllers. This
allows to have a quantitative criteria to do the comparison.
Where r (k) and y (k) are the reference signal and the Next stage is to probe the controllers in the actual power
output signal at the k sample time supply.
B. Performance indexes for control signal An advantage of fuzzy control is the possibility of applying
To measure the quality of the control signal two the knowledge that the user has of the process in this case the
performance indexes were used: The first one is mean of the power supply to emulate electromagnetic disturbances.
control signal Eq. 3. This evaluates the average of the absolute REFERENCES
value of the control action. The second one is called
[1] P. Ferracci. “Quality of Electricity”,“La Calidad de la Energia
smoothness index of the control signal Eq. 4, where u (k) is Electrica”, Cuaderno Tecnico N° 199. Schneider Electric, 2004
the control signal at the k sample time. This Compares the [2] D. Fulchiron, “overvoltage and coordination isolation”,“Sobretensiones
difference between a previous sample of the control signal and y coordinación del aislamiento”, Cuaderno Técnico N°. 151, Schneider
the current, allows to know how abrupt are the changes of Electric, 1994
control signal [3] C. Séraudie, “overvoltage and limiters BT surge -Coordination of
isolation BT-”,“Sobretensiones y limitadores de sobretensiones en BT–
C. Controllers Comparison coordinación del aislamiento en BT–”, Cuaderno Técnico N°. 179,
Schneider Electric, 2000
Table II shows the values of the performance indexes for
[4] Icontec, “Colombian Electrical Code”,“Código Eléctrico Colombiano”
the different control strategies. Proyecto Nota Técnica Colombiana NTC2050, 1998
[5] D. W. Hart, Power Electronis. McGraw-Hill, 2011.
1 [6] Anuja Namboodiri and Harshal S. Wani Unipolar and Bipolar PWM
3= | ( | (3) Inverter . Available Online
http://www.ijirst.org/articles/IJIRSTV1I7111.pdf.
[7] M. H. Rashid, Power Electronics. Pearson, 4ed, 2015, Chap 6.
1 [8] K. J. Åström, T. Hägglun, ”Advanced PID Control”, “Control PID
4= ( ( − ( −1 (4)
−1 Avanzado”, Pearson Prentice Hall, Edición 2, 2009, Chap 2 Chap3.
[9] K. Passino, S. and Yurkovich, S. Fuzzy Control. Addison-Wesley
TABLE II Longman, Inc.,1998,. Chap 1 Chap 2.
PERFORMANCE INDEXES [10] S. Solat, M. Moallem, M. Amin Latify, “A supervisory hierarchical
Index PI PID Fuzzy fuzzy controller for dynamic voltage restorer (DVR)”, Electrical
Engineering (ICEE), 2015 23rd Iranian Conference on
I1 0.0164 0.0215 0.0191
[11] A. Gupta, S. Chanana, T. Thakur, “Grid connected photovoltaic system
I2 0.0640 0.0757 0.0672 with data-based MPPT and fuzzy controlled DVR”, Power Electronics
I3 0.6901 0.7334 0.6962 (IICPE), 2014 IEEE 6th India International Conference on
I4 1.6227e-06 1.6641e-04 9.4950e-10 [12] R. Rajeswari, N. Karpagam, S. Dhanalakshmi,” Analysis of dq0 based
fuzzy logic controller in DVR for voltage sag and harmonic mitigation”,
Green Computing Communication and Electrical Engineering
In the table II is observed that the PI controller presents a (ICGCCEE), 2014 International Conference on
better index of performance of the error (indexes I1 and I2) in [13] S. F. Taghizadeh, Nadia Mei Lin Tan, B. Nikouei, “Dynamic voltage
comparison with PID and Fuzzy controllers. a better index of restorer using the combination of fuzzy logic and EPLL control
performance means that the error is more small and the output strategies: An optimized implementation”, Innovative Smart Grid
Technologies - Asia (ISGT Asia), 2014 IEEE
of the controller will be close to the reference.
[14] D. Rajasekaran, Subhransu Sekhar Dash, D. Rufus Arun Teja,
For the index of performance of the control signal (index “Dynamic voltage restorer based on fuzzy logic control for voltage sag
I3), PI controller is still the best performance, but if you notice restoration”, Sustainable Energy and Intelligent Systems (SEISCON
the index of smoothness, Fuzzy Controller present a 2011), International Conference on
smoothness very below. A index of smoothness low means [15] K. Bayindir, A. Teke, M. Tumay, “A robust control of dynamic voltage
restorer using fuzzy logic”, Electrical Machines and Power Electronics,
that the driver expended less energy to generate the control 2007. ACEMP '07. International Aegean Conference on
signal. [16] Mani, P.K., Siddappa Naidu, K., “Fuzzy logic control based dynamic
Due to the above, the next stage is to implement the fuzzy voltage restorer”, International Journal of Applied Engineering Research
logic controller simulated over the power supply. [17] Volume 10, Issue 45, 2015, Pages 31901-31904
[18] Mani, P.K., Siddappa Naidu, K., “Fuzzy logic control based dynamic
V. CONCLUSIONS voltage restorer for power quality improvement in distribution system”,
This platform can be used as a test plant to validate the ARPN Journal of Engineering and Applied Sciences Volume 10, Issue
16, November 18, 2015, Pages 7009-7014
design and implementation of DVR's (Dynamic Voltage
G. E. Polanco, O. E. Soto, J. A. López,”Comparative Analysis Between
Restorer) or any kind of compensation system of the Conventional Control and Intelligent Control Proved on Flexible Joint,
phenomena that occur in electrical networks. Also, allow test and Ball and Beam Systems”Análisis comparativo de técnicas de control
different control algorithms and emulation of systems convencional e inteligente con los sistemas de articulación flexible y
unbalanced three-phase. bola viga, II Congreso Internacional de Ingeniería Mecatrónica y
Automatización, Bogota, October 2013.

You might also like