Beruflich Dokumente
Kultur Dokumente
Seminar Report
on
Swapnil Behera
(Regn. No. 15010295)
Date:
Place: Veer Surendra Sai University of Technology, Burla
Dept. of Electrical & Electronics Engineering.
DECLARATION
SWAPNIL BEHERA
(Regn. No. 15010295)
Date:
ABSTRACT
Keywords:
PID controller
DC motor
Speed control
MATLAB
CONTENTS
1. INTRODUCTION 1
2. PID CONTROLLER 3
a. Types of Controllers 4
i. Proportional Controller
ii. Derivative Controller
iii. Integral Controller
iv. Proportional Derivative (PD) Controller
v. Proportional Integral (PI) Controller
vi. Proportional Integral Derivative (PID) Controller
b. The Characteristics of P, I, and D controllers 8
c. Effect of increasing the individual gain 8
3. DC MOTOR SPEED CONTROL: PID CONTROLLER DESIGN 9
a. Physical setup and system equation 9
b. Transfer function 10
c. Design Requirements 10
d. MATLAB Representation and System Response 11
i. Open loop Response
ii. Closed Loop Response
iii. Tuning of the controller
4. CONCLUSION 16
5. REFERENCES 17
INTRODUCTION
Important Terms:
Control System: A control system manages, commands, directs, or regulates
the behavior of other devices or systems using control loops. It can range
from a single home heating controller using a thermostat controlling a
domestic boiler to large Industrial control systems which are used for
controlling processes or machines. For continuously modulated control, a
feedback controller is used to automatically control a process or operation.
The control system compares the value or status of the process variable (PV)
being controlled with the desired value or setpoint (SP), and applies the
difference as a control signal to bring the process variable output of the plant
to the same value as the setpoint. Types:- Open-loop and Closed-loop Control
System
Open Loop Control System: Output is not fed-back to the input. The control
action is independent of the desired output.
Closed Loop Control System: Output is fed-back to the input. The control
action is dependent on the desired output.
1|P a ge
Open Loop Control Systems Closed Loop Control Systems
Control action is independent of the desired Control action is dependent of the desired
output. output.
These are also called as non-feedback control These are also called as feedback control
systems. systems.
Inaccurate. Accurate.
Table 1
2|P a ge
PID CONTROLLER
A Proportional–Integral–Derivative controller (PID controller or three-
term controller) is a control loop feedback mechanism widely used in
industrial control systems and a variety of other applications requiring
continuously modulated control. A PID controller continuously calculates an
error value e(t) as the difference between a desired setpoint(SP) and a
measured process variable(PV) and applies a correction based on
proportional, integral, and derivative terms (denoted P, I, and D
respectively), hence the name.
In practical terms it automatically applies accurate and responsive
correction to a control function. An everyday example is the cruise control
on a car, where ascending a hill would lower speed if only constant engine
power is applied. The controller's PID algorithm restores the measured
speed to the desired speed with minimal delay and overshoot, by increasing
the power output of the engine.
Fig. 1 A block diagram of a PID controller in a feedback loop. r(t) is the desired process value or
setpoint (SP), and y(t) is the measured process value (PV).
The distinguishing feature of the PID controller is the ability to use the
three control terms of proportional, integral and derivative influence on
the controller output to apply accurate and optimal control. The block
diagram in Fig. 1 above shows the principles of how these terms are
generated and applied. It shows a PID controller, which continuously
calculates an error value e(t) as the difference between a desired setpoint
SP=r(t) and a measured process variable PV=y(t), and applies a correction
based on proportional, integral, and derivative terms. The controller
attempts to minimize the error over time by adjustment of a control variable
u(t), such as the opening of a control valve, to a new value determined by a
weighted sum of the control terms.
3|P a ge
Types of Controllers
1. Proportional Controller
The proportional controller produces an output, which is proportional
to error signal.
u(t)∝e(t)
⇒u(t) = KP e(t)
Apply Laplace transform on both the sides -
U(s) = KP E(s)
U(s)/E(s) = KP
Therefore, the transfer function of the proportional controller is KP.
Where,
U(s) is the Laplace transform of the actuating signal u(t)
E(s) is the Laplace transform of the error signal e(t)
Kp is the proportionality constant
The block diagram of the unity negative feedback closed loop control system
along with the proportional controller is shown in the following figure.
2. Derivative Controller
The derivative controller produces an output, which is derivative of
the error signal.
u(t) = KD de(t)/dt
Apply Laplace transform on both sides.
U(s) = KD s E(s)
U(s)/E(s) = KD s
Therefore, the transfer function of the derivative controller is KD s.
Where, KD is the derivative constant.
4|P a ge
The block diagram of the unity negative feedback closed loop control
system along with the derivative controller is shown in the following figure.
The derivative controller is used to make the unstable control system into a
stable one.
3. Integral Controller
The integral controller produces an output, which is integral of the
error signal.
u(t) = KI ∫e(t)dt
Apply Laplace transform on both the sides -
U(s) = KI E(s)/s
U(s)/E(s) = KI /s
Therefore, the transfer function of the integral controller is KI /s.
Where, KI is the integral constant.
The block diagram of the unity negative feedback closed loop control system
along with the integral controller is shown in the following figure.
5|P a ge
4. Proportional Derivative (PD) Controller
The proportional derivative controller produces an output, which is
the combination of the outputs of proportional and derivative controllers.
u(t)= KP e(t)+ KD de(t)/dt
Apply Laplace transform on both sides -
U(s) = (KP + KD s) E(s)
U(s)/E(s) = KP + KD s
Therefore, the transfer function of the proportional derivative controller is
KP + KD s.
The block diagram of the unity negative feedback closed loop control system
along with the proportional derivative controller is shown in the following
figure.
6|P a ge
Fig. 6 Proportional Integral Controller
The block diagram of the unity negative feedback closed loop control system
along with the proportional integral derivative controller is shown in the
following figure.
7|P a ge
The Characteristics of P, I, and D controllers
A proportional controller (KP) will have the effect of reducing the rise
time and will reduce, but never eliminate, the steady-state error.
An integral control (KI) will have the effect of eliminating the steady-
state error, but it may make the transient response worse.
A derivative control (KD) will have the effect of increasing the stability
of the system, reducing the overshoot, and improving the transient
response.
All design specifications can be reached with the PID controller and 100%
desired conditions can be achieved.
Table 2
8|P a ge
DC MOTOR SPEED CONTROL: PID CONTROLLER
DESIGN
1. Physical setup and system equation:
DC motors have speed-control capability, which means that speed, torque
and even direction of rotation can be changed at any time to meet new
conditions. The electric circuit of the armature and the free body diagram of
the rotor are shown in the following figure:
For this example, we will assume the following values for the physical
parameters.
Moment of inertia of the rotor (J) = 0.01 kg.m^2/s^2.
Damping ratio of the mechanical system (b) = 0.1 nms.
Electromotive force constant (k=ke=kt) = 0.01 nm/amp.
Electric resistance (R) =1 ohm.
Electric inductance (L) = 0.5 H.
Input (v): source voltage.
Output (theta): position of shaft.
The rotor and shaft are assumed to be rigid.
The motor torque T, is related to the armature current i, by a constant factor
kt. The back emf, is related to the rotational velocity by the following
equations:
3. Design Requirements:
First, our uncompensated motor can only rotate at 0.1 rad/sec with an
input voltage of 1 volt (this will be demonstrated later when the open-loop
response is simulated. since the most basic requirement of a motor is that it
should rotate.
At the desired speed, the steady-state error of the motor speed should be
less than 1% .the other performance requirement is that the motor must
accelerate to its steady-state speed as soon as it turn on. In this case, we want
it to have a settling time of less than 2 seconds. Since a speed faster than the
reference may damage the equipment, we want to have an overshoot of less
than 5%.
If we simulate the reference input(R) by a unit step input, then the motor
speed output should have:
Settling time less than 2seconds.
Overshoot less than 5%.
Steady-state error less than 1%.
10 | P a g e
4. MATLAB Representation and System Response
Open loop Response
Transfer function: we can represent the above transfer function into Matlab
by the numerator and denominator matrices as follows
From the plot we see that when 1 volt applied to the system, the motor can
only achieve a maximum speed of 0.1 rad/sec, ten times smaller than our
desired speed. Also, it takes the motor 3 seconds to reach its steady-state
speed; this does not satisfy our 2 seconds settling time criterion.
11 | P a g e
Closed Loop Response
For Closed Loop Response the Program looks like as follows:
Table 3
12 | P a g e
We see that the proportional controller kp have the effect of reducing the
rise time; from (0.48sec) for kp=10 to (0.051sec) for kp=300; and will reduce
and never eliminate the steady state error from (0.5) for kp=10 to (0.032)
for kp=300. So, the response becomes more and more faster by increasing
the gain kp. But will increase the maximum overshoot; from (4% to 41%).
Table 4
13 | P a g e
Fig. 11 closed loop response with different values of ki.
Now we see that the response is much faster than before; the settling time
becomes (0.774 sec) for ki=200, and the steady-state error becomes very
small and eliminated for ki=200.
c. Proportional-Integral-Derivative control
Now, we increase the gain kd, with kp=100; ki=200. All results are
illustrated in the Table 5 and the corresponding plots are shown in Fig. 12.
Table 5
From the results we see that the settling time reduced from (0.58 sec to
0.257sec) for (kd=1 to kd=10) and the overshoot from (23% to 1.03%) and
there is small change in the rise time.
14 | P a g e
Fig. 12 closed loop response with different values of kd.
So now we know that if we use a pid controller with: kp=100, ki=200 and
kd=10; all our design requirements will be satisfied and the response looks
like:
15 | P a g e
CONCLUSION
16 | P a g e
REFERENCES
17 | P a g e