A Comparative Study Between IP and PI Controllers
A Comparative Study Between IP and PI Controllers
College of Engineering
School of Electrical and Nuclear Engineering
Prepared By:
1. Moddathir Bushra Abd Algader Ali
2. Mogdad Elheber Mustafa Abbas
3. Mohammed Omer Mohammed Elfaki
4. Musaab Salah Elkheder Edrees
Supervised By:
Dr. Aamir Hashim Obeid Ahmed
October 2015
اﻵﯾـــــــــــــــــــــــــﺔ
ـ ِ
ـﻮم ﻻَ َﺗﺄْ ُﺧـ ُـﺬﻩُ َ ٌ
ـﻨﺔ ﺳ ـ ﻴ اﻟﻘ ـﻲـ ﱠ ِ ِ
ُ ﱡ َ ْ ﱡ ﻗــﺎل ﺗﻌــﺎﱄ﴿:اﻟﻠّــﻪُ ﻻَ إ َ ُ َ َ
ﳊ
ْ ا ـﻮ
ـ ﻫ إﻻ ـﻪ
ـَﻟ
ﺳﻮرة اﻟﺒﻘﺮة
i
DEDICATION
ii
A CKNOWLEDGEMENT
First of all, we would like to express our thanks to God for his great help in
completing this project. After that there are numerous of people we need to
thank for their advice, help, assistance and encouragement throughout the
completion of this project.
Last but not least, we would like to thank our families for their patience and
endless financial, and more importantly, moral support throughout our life.
iii
ABSTRACT
At the present time, Direct Current (DC) motors have been widely used in
many industrial applications. The main reason for their popularity is the
ability to control their torque and flux easily and independently. Therefore,
the control of the speed of a DC motor is an important issue and has been
studied since the early decades in the last century. The most commonly used
controller for the speed control of DC motors is conventional Proportional–
Integral (PI) controller. In spite of the major features of the conventional PI
controller, it has some disadvantages such as the high starting overshoot in
speed, the sensitivity to controller gains and sluggish response due to sudden
disturbance. To overcome these disadvantages, replacement of PI controller
by Integral plus Proportional (IP) controller is proposed in this project.
Performance of two controllers has been verified through simulation results
using MATLAB/SIMULINK software. According to the simulation results,
IP controller creates better performance in terms of overshoot, settling time,
and steady state error compared to conventional PI controller. This shows the
superiority of IP controller over conventional PI controller.
iv
ﻣﺳﺗﺧﻠص
ﻓﻰ اﻟوﻗت اﻟﺣﺎﻟﻰ ،ﻓﺈن ﻣﺣرﻛﺎت اﻟﺗﯾﺎر اﻟﻣﺑﺎﺷر ﺗﺳﺗﺧدم ﻓﻰ اﻟﻌدﯾد ﻣن اﻟﺗطﺑﯾﻘﺎت اﻟﺻﻧﺎﻋﯾﺔ .اﻟﺳﺑب
اﻟرﺋﯾﺳﻰ ﻟﺷﻌﺑﯾﺗﻬﺎ ﻫﻰ اﻟﻣﻘدرة ﻋﻠﻰ اﻟﺗﺣﻛم ﻓﻰ اﻟﻌزم واﻟﻔﯾض ﺑﺳﻬوﻟﺔ وﺑﺷﻛل ﻣﺳﺗﻘل .وﻟذﻟك ﻓﺈن اﻟﺗﺣﻛم
ﻓﻰ ﺳرﻋﺔ ﻣﺣرك اﻟﺗﯾﺎر اﻟﻣﺳﺗﻣر ﻣﺳﺄﻟﺔ ﻣﻬﻣﺔ ﺣﯾث ﺗﻣت دراﺳﺗﻬﺎ ﻣﻧذ اﻟﻌﻘود اﻷوﻟﻰ ﻓﻰ اﻟﻘرن اﻟﻣﺎﺿﻲ.
ﯾﺗم اﻟﺗﺣﻛم ﻓﻰ ﺳرﻋﺔ ﻣﺣرك اﻟﺗﯾﺎر اﻟﻣﺳﺗﻣر ﺑﺻورة واﺳﻌﺔ ﺑﺈﺳﺗﺧدام اﻟﺣﺎﻛﻣﺔ اﻟﺗﻧﺎﺳﺑﯾﺔ-اﻟﺗﻛﺎﻣﻠﯾﺔ .ﻋﻠﻰ
اﻟرﻏم ﻣن اﻟﺳﻣﺎت اﻟرﺋﯾﺳﯾﺔ اﻟﺗﻰ ﺗﻣﺗﺎز ﺑﻬﺎ اﻟﺣﺎﻛﻣﺔ اﻟﺗﻧﺎﺳﺑﯾﺔ-اﻟﺗﻛﺎﻣﻠﯾﺔ اﻟﺗﻘﻠﯾدﯾﺔ ،إﻻ أﻧﻬﺎ ﻟدﯾﻬﺎ ﺑﻌض
اﻟﻌﯾوب ﻣﺛل ﺑداﯾﺔ ﻋﺎﻟﯾﺔ ﻟﻠﺳرﻋﺔ ﻟﺗﺟﺎوز اﻟﻬدف ،وﺣﺳﺎﺳﯾﺗﻬﺎ ﻟﻠﺗﻐﯾر ﻓﻰ ﺛواﺑت اﻟﺣﺎﻛﻣﺔ ،و اﻹﺳﺗﺟﺎﺑﺔ
اﻟﺑطﺋﯾﺔ ﻟﻠﺗﻐﯾرات اﻟﻣﻔﺎﺟﺋﺔ .ﻟﻠﺗﻐﻠب ﻋﻠﻰ ﻫذﻩ اﻟﻣﺷﺎﻛل ،اﺳﺗﺑدﻟت اﻟﺣﺎﻛﻣﺔ اﻟﺗﻧﺎﺳﺑﯾﺔ-اﻟﺗﻛﺎﻣﻠﯾﺔ اﻟﺗﻘﻠﯾدﯾﺔ
ﺑﺎﻟﺣﺎﻛﻣﺔ اﻟﺗﻛﺎﻣﻠﯾﺔ-اﻟﺗﻧﺎﺳﺑﯾﺔ ﻓﻰ ﻫذﻩ اﻟﻣﺷروع .ﺗم اﻟﺗﺣﻘق ﻣن أداء اﻟﺣﺎﻛﻣﺗﯾن ﻣن ﺧﻼل ﻧﺗﺎﺋﺞ اﻟﻣﺣﺎﻛﺎة
أﻋطت أداء أﻓﺿل ﻓﻣﺎ ﯾﺗﻌﻠق ﺑﺗﺟﺎوز اﻟﻬدف ،زﻣن اﻟﺗرﺳﯾﺦ ،و اﻟﺧطﺄ ﻋﻧد ﺣﺎﻟﺔ اﻹﺳﺗﻘ اررﯾﺔ ﻣﻘﺎرﻧﺔ ﻣﻊ
اﻟﺣﺎﻛﻣﺔ اﻟﺗﻧﺎﺳﺑﯾﺔ-اﻟﺗﻛﺎﻣﻠﯾﺔ اﻟﺗﻘﻠﯾدﯾﺔ .وﻫذا ﯾدل ﻋﻠﻰ ﺗﻔوق اﻟﺣﺎﻛﻣﺔ اﻟﺗﻛﺎﻣﻠﯾﺔ-اﻟﺗﻧﺎﺳﺑﯾﺔ ﻋﻠﻰ اﻟﺣﺎﻛﻣﺔ
اﻟﺗﻧﺎﺳﺑﯾﺔ-اﻟﺗﻛﺎﻣﻠﯾﺔ اﻟﺗﻘﻠﯾدﯾﺔ.
v
TABLE OF CONTENTS
اﻻﯾﺔ i
DEDICATION ii
ACKNOWLEDGEMENT iii
ABSTRACT iv
ﻣﺴﺘﺨﻠﺺ v
TABLE OF CONTENTS vi
LIST OF FIGURES ix
LIST OF TABLES x
LIST OF ABBREVIATIONS xi
CHAPTER ONE
INTRODUCTION
1.1 General Concepts 1
1.2 Problem Statement 2
1.3 Objectives 2
1.4 Methodology 2
1.5 Project Layout 3
CHAPTER TWO
BACKGROUND AND LITERATURE REVIEW
2.1 Introduction 4
2.2 Types of DC Motors 4
2.2.1 A separately excited DC motor 5
2.2.2 Permanent magnets DC motor 5
2.2.3 Series DC motors 6
2.2.4 Shunts DC motors 7
2.2.5 Compound DC motors 7
vi
2.3 Main Components of DC Motors 8
2.3.1 Stator 9
2.3.2 Rotor 10
2.4 Operation Principle of DC Motors 11
2.5 Speed Control of DC Motor 11
2.3.1 Armature resistance control method 12
2.3.2 Flux control method 13
2.3.3 Armature voltage control method 13
CHAPTER THREE
MATHEMATICAL MODEL OF THE SEPARATELY
EXCITED DC MOTOR
3.1 Introduction 15
3.2 Model of the separated excitation DC Motor 16
3.2.1 System equations 16
3.2.2 State space equations 17
3.3 PI Controller Background 18
3.4 IP Controller Background 20
3.5 PI and IP Controllers Tuning 20
CHAPTER FOUR
SIMULATION RESULTS AND DISCUSSION
4.1 Introduction 22
4.2 MATLAB/ SIMULINK Model for DC Motor 22
4.2.1 S-Function block 22
4.2.2 S-Function m-file 24
4.2.3 Complete SIMULINK model of DC motor 26
4.3 Simulation Results 27
vii
4.3.1 Constant speed command 27
4.3.2 Variable speed command 28
CHAPTER FIVE
CONCLUSION AND RECOMMENDATIONS
6.1 Conclusion 30
6.2 Recommendations 30
References 32
viii
LIST OF FIGURES
Figure Title Page
2.1 A separately excited DC motor model 5
2.2 The permanent magnets DC motor model 6
2.3 The series DC motor model 6
2.4 The shunt DC motor model 7
2.5 The compound DC motor model 8
2.6 The main components of a typical DC motor 8
2.7 Lamination of field pole 9
2.8 Cutaway view of commutator 11
3.1 Block diagram of the conventional PI controller 18
3.2 A simplified block diagram of the speed control
of the separately excited DC motor using the PI 20
controller
3.3 A simplified block diagram of the speed control of the
20
separately excited DC motor using the IP controller
4.1 Simulink library browser 23
4.2 Drag-drop the S-Function block to new page 23
4.3 Change S-Function name to dc_motor 24
4.4 S-Function m-file 24
4.5 Complete SIMULINK model of the DC motor 26
4.6 MATLAB/SIMULINK overall model of speed
control of the separately excited DC motor 27
using two controllers
4.7 Simulation result at constant speed 28
4.8 Simulation result at variable speed 29
ix
LIST OF TABLES
Table Title Page
3.1 Parameters of the separately excited DC motor 18
3.2 PI controller characteristic parameters 19
4.1 Three types of flags 25
4.2 Types of Sys 26
x
LIST OF ABBREVIATIONS
DC Direct Current
AC Alternating Current
IP Integral- Proportional
PI Proportional-Integral
xi
CHAPTER ONE
INTRODUCTION
1
offset trough integral action and it can anticipate the changes through
derivative action. In addition to this, traditional PI controllers have very
simple control structure and inexpensive cost. However, the PI controller has
some disadvantages such as the high starting overshoot in speed, the
sensitivity to controller gains and sluggish response due to sudden change in
load torque disturbance. So, the relatively IP controller is proposed to
overcome the disadvantages of the PI controller [3].
1.3 Objectives
The main objectives of this project are listed as follows:
(1) To formulate the complete mathematical model and state space
representation of the separately excited DC motor.
(2) To study and understand PI and IP controllers to control the speed of the
separately excited DC motor.
(3) To evaluate the performance of the speed control of the separately excited
DC motor using two controllers.
(4) To compare the performance of the PI and IP controllers via simulation
results using MATLAB/SIMULINK software.
1.4 Methodology
The project methodology is undertaken according to these stages:
(1) The development of linear mathematical model for the separately excited
DC motor.
2
(2) Construct the model of the separately excited DC motor using
MATLAB/SIMULINK software.
(3) Design of PI and IP controllers.
(4) Perform simulation using MATLAB/SIMULINK software for PI and IP
controllers.
(5) Evaluate performance of speed control of the separately excited DC motor
based on simulation results.
3
CHAPTER TWO
BACKGROUND AND LITERATURE REVIEW
2.1 Introduction
Electrical derives involving various types of DC motors turn the wheel of
industry. The main advantages of DC motors are easy speed or position
control and wide adjustable range. Therefore, DC motors are often used in a
variety of industrial applications such as electrical equipment, computer
peripherals, robotic manipulators, actuators, steel rolling mills, electrical
vehicles, paper machine. Its applications spread from low horse power to the
multi-mega watt due to its wide power, torque, speed ranges, high efficiency,
fast response, and simple and continuous control characteristics. Therefore,
the control of the speed of a DC motor is an important issue and has been
studied since the early decades in the last century. Some of these methods
were based on classical and also intelligent approaches. At present, PI
controller, due to its simplicity, stability, and robustness, is a type of
controller that is most widely applied. However, it is difficult to design when
the accurate model of plant is complicated or the environment of the load on
the plant is variable [1, 2]. This chapter will examine the different types of
DC motors that can be made and explain the advantages and disadvantages of
each. It will include a discussion of several methods of DC motor speed
control.
5
over an extended range. The schematic circuit diagram of a permanent
magnets DC motor is illustrated in following Figure 2.2 [1, 2].
7
Figure 2.5: The compound DC motor model
The stator is the stationary frame assembly of the DC motor. The stator
assembly is made up of the frame, inter-pole windings, main field windings,
brush-holder and brushes, and the end bells. The rotor is the rotating portion
8
of a DC motor. The rotor assembly is made up of the armature, commutator,
and the blower. The rotor and the stator are mechanically connected through
use of the front and rear bearings that allow the rotor to rotate while providing
mechanical support [1, 2].
2.3.1 Stator
As discussed, the stator is the stationary portion of a DC motor. The stator
consists of the following [1]:
(1) Frame: The frame of a DC motor provides the mechanical support for the
stator components. The frame also provides for a method of mounting and
moving the DC motor.
(2) Field Winding: The field winding is wound around a field pole that
usually is made from laminated steel. The use of laminated steel reduces eddy
current and hysteresis losses. Figure 2.7 shows a typical laminated field pole
piece that would be bolted to the motor frame. The laminated field pole then
is wrapped with coil wire to complete the main field winding assembly. When
DC current is passed through these main field coils, a stationary magnetic
field is produced.Several types of DC motors have an auxiliary winding that
is mounted on the motor frame between the main field poles. This winding is
called an inter-pole. The purpose of an inter-pole is to assist commutation and
prevent sparking at the brushes.
2.3.2 Rotor
The rotor is the rotating portion of a DC motor. The rotor consists of the
following components [1]:
(1) Armature: The armature consists of a group of coils that are imbedded in a
laminated iron core. When a DC current is applied to the armature, a magnetic
field will be produced.
(2) Commutator: The commutator is shown in Figure 2.6, is the mechanical
means by which the direction of current is switched to the armature coils. The
armature coils are connected to a commutator by copper bars that are called
risers. A commutator is a copper cylinder that is divided into many sections or
segments that are called bars. The segments are insulated from each other
with mica.
(3) Blower: The blower is a fan that is mounted on the rotor shaft. The blower
rotates with the rotor and forces air to pass through the DC motor. The blower
is used to cool a DC motor. The Figure 2.8 shows a cutaway view of
commutator which consists from segments (bars), rear string band, risers.
10
Figure 2.8: Cutaway view of commutator
F = B.I.L (2.1)
Where:
F = Force in Newton’s.
B = Flux density in Web/ .
I = Current in amperes flowing through the conductor.
L = Length of the conductor in meters.
11
with which their speed can be varied. Based on the operating parameters, the
speed of DC motors governed by the equation:
V a R a ia
(2.2)
Kb
On the right hand side of the Equation (2.2) there are three operating
parameter, namely, the voltage applied to the armature circuit (Va), the
voltage drop in the armature circuit (Ia Ra) and the useful flux per pole (Ф).
From this equation, it is evident that the speed can be varied by using any of
the following methods [1, 2].
(i) By varying the resistance (Ra) in the armature circuit. This is known as
armature control method.
(ii) By varying the flux per pole (Ф). This is known as flux control method.
(iii) By varying the applied voltage (Va). This is known as voltage control
method.
12
2.5.2 Flux control method
Another approach to control the speed of a DC motor involves the control of
the field current, which in turn controls the flux in the motor. The field current
in a shunt DC motor can be controlled by inserting an external resistor in
series with the field winding. Because the field current is a very small fraction
of the total current intake of a shunt DC motor, the power dissipated by the
external resistor is relatively small. Therefore, the flux control method is
economically better than the armature resistance control method. To control
the flux in a series DC motor, a field diverter resistor can be connected in
parallel with the series field winding. If all the coils in a series field winding
are connected in series, we can also change the flux in a series motor by
connecting the coils in parallel. The addition of a resistance in series with the
shunt field winding or in parallel with the series field winding causes the field
current and thereby the flux in the motor to decrease. Since the speed of a
motor is inversely proportional to its flux, a decrease in its flux results in an
increase in its speed. Thus, the flux control method makes a motor operate at
a speed higher than its rated speed. As the torque developed by a shunt DC
motor is proportional to the product of the armature current and the flux per
pole, a decrease in the flux must be accompanied by a corresponding increase
in the armature current for the motor to deliver the same torque. This method
of speed control is, therefore, not satisfactory for compound DC motors,
because any decrease in the flux produced by the shunt field winding is offset
by an increase in the flux produced by the series field winding owing to an
increase in the armature current [1, 2].
13
control. The advantage of this method is that it has a wide range of speed
control from zero up to the rated speed. However, it is quite expensive.
Therefore, this method of speed control is employed for large size motors
where efficiency is of great importance [1, 2].
14
CHAPTER THREE
MATHEMATICAL MODEL OF THE
SEPARATELY EXCITED DC MOTOR
3.1 Introduction
The general system description, loosely speaking, refers to a mathematical
expression that appropriately relates the physical system quantities to the
system components. This mathematical relation constitutes the mathematical
model of the system. A system in operation involves the following three
elements: the system’s input (or excitation), the system itself, and the
system’s output (or response). The mathematical model of a system is a
mathematical relation which relates the input, the system, and the output. This
relation must be such as to guarantee that one can determine the system’s
output for any given input. From the above definition it follows that the
mathematical model is not just any relation, but a very special relation, which
offers the capability of system analysis, i.e., the capability to determine the
system’s response under any excitation. Furthermore, the foregoing definition
reveals the basic motivation for determining mathematical models. This
motivation is to have available appropriate tools that will facilitate the system
analysis. It is well known that in order to analyze a system, it must have
available its mathematical model. It should be also noted that the
mathematical model is useful for other purposes, as for example to study the
system’s stability and other properties, to improve the system’s performance
by applying control techniques [2]. There are several types of mathematical
models have been proposed for the description of system. The most popular
ones are the following:
(1) The differential equations.
(2) The transfer function.
(3) The state equations.
15
In this project the state space equations are used. The state space equation is
description in time domain which may be applied to very wide category of
systems, such as linear and nonlinear system. The term state of a system
refers to the past, present, and future of the system. Usually, a system is
described by a finite number of state variables [2].
d ia
V a R a ia L a E
dt b
(3.1)
d ia
V a R a ia L a K
dt b
16
d
T K T ia = J B (3.2)
dt
K
d ia R
a ia b Va (3.3)
dt La La La
d KT B
ia (3.4)
dt J J
In the state space model of a separately excited DC motor, the Equation (3.3)
and Equation (3.4) can be expressed by choosing the angular speed () and
armature current (ia) as state variables and the armature voltage (Va) as an
input. The output is chosen to be the angular speed [2].
Ra K
dia b 0
dt ia La La ia
1 V
a
d KT B La
dt J
J
(3.5)
ia
y 0 1
Ra Armature Resistance 1Ω
La Armature Inductance 0.05H
J Moment of Inertia 0.01kgm2/s2
B Viscous Friction Coefficient 0.00003Nms
KT Toque Constant 0.023Nm/A
Kb Back EMF Constant 0.023Vs/rad
+
e(t) u(t)
+
18
Where it can be seen that in a PI controller the error e(t) is used to generate
the proportional and integral action with the resulted signals weighted and
summed to form the control signal u(t) applied to the plant model. The
differential equation of a conventional PI controller is given by [3]:
u (t ) K e (t ) K e (t )dt (3.6)
P I
Where KP is the proportional gain and KI is the integral gain. The transfer
function of a classical PI controller is expressed as follows:
U (s )
G (s ) K KsI (3.7)
PI E (s ) P
Note that these correlations may not be exactly accurate, because KP and KI
are dependent of each other. In fact, changing one of these variables can
change the effect of the other two. For this reason, the table should only used
as a reference when we are determining the values of KP and KI. To improve
the dynamic performance for transient state and avoid overshoot, the speed
control is confided to an integral plus proportional controller [3]. The IP
controller is considered the major contribution in this study. A simplified
block diagram of the speed control of the separately excited DC motor using
the PI controller is shown in Figure 3.2 [4].
19
ref e PI Separately Excited r
+ Controller DC Motor
-
Figure 3.2: A simplified block diagram of the speed control of the separately
excited DC motor using the PI controller
Where ref is the reference rotor angular speed, r is the rotor angular speed
and e=ref-r is the tracking speed error.
KP
Figure 3.3: A simplified block diagram of the speed control of the separately
excited DC motor using the IP controller
21
CHAPTER FOUR
SIMULATION RESULTS AND DISCUSSION
4.1 Introduction
A comparative study of PI and IP control scheme for the separately
excited DC motor has been done here. Two simulation tests for the
separately excited DC motor were carried out using both IP controller and
conventional PI controller. Simulation tests are based on the facts that
whether the IP controller is better than the conventional PI controller or not.
22
Figure 4.1: Simulink library browser
10
Reference
PI controller
8 IP controller
Rotor Speed (rad/sec)
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time (sec)
28
35
30
Reference
PI controller
Rotor Speed (rad/sec)
25 IP controller
20
15
10
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time (sec)
29
CHAPTER FIVE
CONCLUSION AND RECOMMENDATIONS
5.1 Conclusion
High performance electric motor drives are considered an essential
requirement for modern industrial applications. In the past, DC motors have
been used extensively in the industry mainly because of the simple control
strategies required to achieve good performance in speed control applications.
Therefore, the control of the speed of a DC motor is an important issue and
has been studied since the early decades in the last century. DC motors are
generally controlled by conventional PI controller. In spite of the major
features of the classical PI controller, it has some disadvantages such as the
high starting overshoot in speed, the sensitivity to controller gains and the
sluggish response due to sudden change in load torque disturbance. Thus, the
relatively IP controller is proposed to solve the some disadvantages of the
conventional PI controller and achieve accurate control performance of speed
control of a DC motor. A series of simulation results have been conducted in
order to evaluate the performances of the two controllers using
MATLAB/SIMULINK software package. From the comparative simulation
results, one can conclude that the two controllers demonstrate nearly the same
performances. However, it is observed that IP controller provide important
advantages over the traditional PI controller like limiting the overshoot in
speed, thus the starting current overshoot can be reduced. In addition, the
settling time for IP controller is shorter than for conventional PI controller.
5.2 Recommendations
The results of this project open some interesting and challenging problems of
great importance. In what follows, we point out some of the possible future
research directions:
30
1. It would be useful to further compare between IP controller and fuzzy logic
control.
2. It would be useful to further compare between IP controller and neural
network schemes for speed control of DC motor.
3. It would be useful to further compare between IP controller and sliding
mode control.
31
References
[1] Dubey, “Fundamental of Electrical Drives”, Narosa Publication, Second
Edition, 2011.
[2] Chomat, “Electric Machines and Drives”, Rijeka, Croatia, 2011.
[3] O. Aidan, “Handbook of PI and PID Controller Tuning Rules”, Imperial
College Press, London, 2006.
[4] Aamir Hashim Obeid Ahmed, "Speed Control of Vector Controlled
Induction Motors Using Integral-Proportional Controller", SUST Journal of
Engineering and Computer Science (JECS), Vol. 15, No. 2, pp. 72-79, 2014.
[5] David Houcque, ”Introduction to MATLAB for Engineering Student”,
North University, 2005.
32