USER INTERFACE
ABSTRACT
This paper presents an adequate approach for teaching the sinusoidal pulse width modulation (SPWM) in AC voltage
control regulators. In this paper the Graphical User Interface (GUI) functions, which constitute one of the important
pillars of MIATLAB software, are developed to an easy-to-use educational software tool. Single-Phase AC voltage
controller is mathematically modeled and then simulated using basic MALAB commands. GUI is implemented to
construct an active link with these models. So that, instructors can demonstrate the change in SPWM system response
due to parameter variation. An example, using the GUI, is provided to demonstrate the usefulness of the developed
software.
Keywords computer simulations; PWM; AC voltage controller; teaching aids; graphical user interface
List of symbols
1101
2. AC VOLTAGE CONTROLLER symmetrical with respect to gT / 2. The output voltage
can be expressed using Fourier series as follows:
Ac voltage controllers are employed in many industrial n
applications such as heating, lighting, and they supply V0 = ao + E A cos(noft) + Bn sin(ncot)
variable voltage for induction motors. Triacs or anti- 1 (1)
parallel connected thyristors are commonly used to where n 1 2 3 4 5
obtain variable AC voltage from a fixed AC voltage
source. Medium-to-high frequency chopping with
PWM control is employed to vary the rms amplitude of Referring to the output voltage shown in Figure (b), it
the output voltage. Improved performance of AC is observed that even harmonics are absent due to the
voltage controllers could be achieved by using less symmetry of the wave. Furthermore, the coefficients
reliable, more complex and expensive forced An and a0 are zero, thus, the above equation is reduced
commutated regulators [1] [2]. In spite of the fact that to:
AC voltage controllers have large harmonic distortion n
and poor power factor they are widely used in small V0 = B sin(not) where n = 1, 3, 5 (2)
AC drive applications. Sinusoidal PWM, and uniform
PWM technique have been used commonly to improve
performance and efficiency of AC voltage controllers. The value of B1 is computed as:
In SPWM technique used, the width of each pulse is
varied proportionally to the amplitude of a sine wave. 2V Fsin(n - I)ct sin(n - ))cl
This type of technique is commonly used in industrial B=
application to reduce the total harmonic distortion (n+l) ] ka3
(THD) and low-order harmonics. The power circuit of
a PWM AC chopper driving a single-phase induction n
motor is shown in the Figure (I a).
Where Vm is the maximum value of the input sine
s+J f i~ ~ ingle phwe mw o r wave. The fundamental component is given by:
11
rl + Pl THD Lv21 =- (5)
a 3 2~~~~~~~~~~~~~~~V
m
-2,n
2,l1i.1 II
The input power factor of the AC voltage controller is
defined as
t PF= Slcos7 (6)
is
Figure (1) a. Ac voltage controller power circuit, b. Where Is, is the fundamental of the component of the
Typical output voltage of SPWM AC voltage input current Is and 4i is the angle between the
controller
fundamental component of the input current and
There are two switches labeled as SI and S2; SI is used supply voltage
for connecting the load to the source and S2 is
employed to free wheel the load current, when Si is 3. BUILDING MALAB GUI
switced of.
Siis tuned o at ariou swithingGUI is simply an interface that can call upon different
angles, a1l aX3 ,.* * ,k-i and turned off at Matlab operations and operate them without the
bx2,x4,,tz per quarter cycle. The output voltage necessity of using the M\/ATLAB commands. GUI
incorporates graphics objects such as windows, icons,
of the AC chopper with k pulses per half cycle iS buttons menu and text. Activating these objects by
shown in Figure (lb).The switching angles are'.. mouse or other pointing device causes an action or
1102
change to occur. Several windows are designed and voltage controller, which are the input PF, THD's
presented in this paper to show the crucial role of GUI versus different modulation index. Also, RMS, 3 rd, 5th
applied for this approach. The proposed GUI for 7th harmonics of the output voltage versus different
simulating a mathematical model of SPWM AC modulation index. These plots facilitate examine the
voltage controller supplying (R-L) load has been behavior of the system and select the best design
developed to suite the current work. Particularly, the condition.
GUI functions in callbacks string used to execute the
user selection as shown in Figure (2a). When a GUI 4. RESPONSES TO MATLAB GUI'S
command is typed, it calls up a window created by the
GUI programmer where a possible window element The simplicity of handling tool presented, help
such as menus, buttons, lists, fields, and clickable students accurately understand the analysis and the
buttons as the GUI window shown in Figure (2b). In design requirements of the SPWM AC voltage
order to simulate the mathematical model of the AC controller. One of the significant features ofthis simple
voltage controller, it is initially required to input the tool, can effectively illustrate the changing in the
values of parameters of the AC voltage controller in system behavior and focus on both fundamental and
the fields of the main GUI window before executing advanced concept of the system. On the other hand,
the run command and calling the MATLAB program. students can efficiently run this program many times
with different input values to see how the behavior of
The operation of this instructional software has been the system changes and select the best performance for
divided into two modes of operations. The first GUI design. This instructional tool makes teaching of
window is the parameters and waveform analysis SPWM very attractive task and encourages students to
window. It contains five input fields, which are for the learn while playing. Electrical engineering students can
possible variable parameters of the AC voltage learn several power electronics principles by mastering
controller, as shown in Figure (2b). These fields are the GUI such as:
frequency of the input power supply, the phase angle * The SPWM technique in switching signal generating
of the load, the modulation index, number of pulses per * Explore THD as the function of modulation index
half cycle and harmonic order. As soon as, the fields * Observing the different number of pulses per half
attains the required values within the specific range the cycle and how can affect the THD
computation is commenced after ordering the run * Monitoring the current and voltage waveforms at
command of GUI's function. The results are displayed different power factor loads
to represent different types of performance parameters * Students place their hands in the design problems
with their computed values. Furthermore, various plots * Enhance student's interest in design and understand
of waveforms of input and output currents and voltages the power electronics course easily and deeply
of the Ac voltage controller appear in time and
frequency domain as shown in Figures 3, 5 and 6. CONCLUSION
Also, results of GUI's output demonstrate how the
gates signals of the AC voltage controller have been An adequate and useful approach for teaching a
generated as shown in Figure (4). SPWM AC voltage controller has been presented in
this A mathematically
paper. for
simulated model wasusing
this type of controller builtbasic
and
The second GUI window is the performance desig
GUI window that iS used to simulate and showed the MATLAB instructions. The developed MATLAB GUI
performance behavior of system with variable tool has been simplified by providing an active link
modulation index M, and variable phase angle load ihtesmltdmdl.Ti ntutoa oli
(PF). This window gives the opportunity to insert chaterizd b its versaTility oan repeate
different input frequency and different number of .actions bygru o ers.tislly integrateda
pulses per half cycle before executing the running allows understanding waveform analysis and flexible
command as shown in Figure (2c). Then using the designaproac thog thethe varian flcirci
capabilities of the software prefos the computationthrough
and the results are displayed in the form similar to that
varaton of crcut
parameter values. An illustrative example is presented
shown in Figure (7). An example, for k =
,6
and load
to show the significance and usefulness of the
developed tool.
PF= 0.57 has been commence to examine the best
design order. The developed instructional software
results display the performance parameters of the AC
[2] GYU-HA CHOE, ALAN K. WALLACE, AND
REFERENCES MIN-HO PARK, "An Improved PWM Technique for
[1] 5. A. HAMED, "Steady-State Modeling, AC Chippers", IEEE TRANSACTION ON POWER
Analysis, and Performance of Transistor controlled ELECTRONICS, VOL. 4, NO. 4, OCTOBER 1989
AC Power Conditioning System" IEEE Transaction [3] Howard Abramowitz," Phase-Control Alternative
ON Power Electronics, VOL. 5, NO., 3 JULY 1990 for Single-Phase AC Motors Offer Smart Low-Cost
Solutions", Power systems world 2003
1103
[4] N. Francis and 0. Moullarney, A Methodology Information System and Education, Vol.4, pp.199-
and Tooset for Supporting the Development of 212, 1997
Graphical User Interface", computer Graphics [6] Tilbury, D.,luntz, J., and Messner,W.,1998,
Forum, Vol.10, NO.1 PP 37-47, 1991 Controls Education on the WWW: Tutorials for
[5] T. Tetsuyuki, M. Tomi and S. Setsuko, " A Matlab and Simulink," in: Proceeding of the
Method of Separating the Graphical User Interface American Control Conference, Philadelphia, PA, PP.
INCAI System", Transaction of Japanese Society for 1304-1308
AC'FI '': ;-
i"l~~Ze
Z
ZZe
t!
I
ff
Figure 2.a Main GUI window Figure 2.b Parameters and waveform analysis GUI
Leneratlan Ut ne UU1sut voltage -fulses
0.6- 1 2 3 4 5 6~~~~~~~~~~~~~~~~~~~~~~~
R4SM1U,6 btU dtd .673PNmaibOia"tiii HM6 .30
0.8
o 2 4 6
-K
8
J
10 12
-T~~~~~~~~~~~~~~~~~~~~~~~~-
14 16 18 0 o 9 1.1471
Harmoni Olrder RSadian
Figure 3. a,wb F2ure4.
an c
0j3~~~~~~~~~RdA -,
1.5 12
02 ~ M ~ ~~ 11~ ~~~~~~~~~20 I K
-1 0 2 4 6 a 10 12 14 1 Ia 2 00-2 - 2 6 8 12
1 41 16 13 2
0 1 2 3 4 5 - ------B
0 21 4 8 10 12 14 16 18 20 0 2
Figure 5. a, b Figure 6. a, b
Figure (2) a. The main GUI window, b. The waveform analysis window
Figure (3) a. The input currant waveform in (pu), b. The harmonic spectrums of the input current
1104
Figure (4) a. The sinusoidal reference waveform, b. The triangle waveform (carrier signal) and the sinusoidal
waveform (the reference signal), c. The generated gating signal
Figure (5) a. The output currant waveform in (p.u.), b. The harmonic spectrums of the output current waveform
Figure (6) a. The output voltage waveform in (p.u.), b. The harmonic spectrums of the output voltage
f LAMOlP
6f qtM6 iirLAt W 6Ige50 Th6 ph 6 6gI6 6f h iri d ig 'i
55
u 6
2.5
2-
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~IG
THD V6 0irnun Modulation indeo, M
02
THD In Virnun Modulation indexk, M
r
M-15 H-G
0 005
0.1 0.2 0.2 04 05 0.5 O .7 0.5 0.5 1 01 02 02 04 05 0G 7 05D 0N 1
Modulation index, M Modulation iodex,t M
a b
THD In Viroun Modulation index, M input PF nouo Mdodulation indeob M
45 05
4~ ~ ~~~~~~~~~~~~~~~0
35- 7 -0
O~~~~~~~~~~~~~~~~~~~~~~~4
a2a 025-
if
..~ ,.-b) THD lo versus M,
c) THD Is versus M,
S d) The input Pf versus M,
S~~~~~~~~~~~~~~~~~~~~~~~ /e) RMS, 3rd,
i04 11
M
5th, 7th harmonics of the output voltage versus
1106