Controller Paper
Controller Paper
net/publication/327389913
CITATIONS READS
0 14,643
1 author:
Dhiman Chowdhury
University of South Carolina
47 PUBLICATIONS 238 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Speech Features: Pitch and Formant Extraction of Vowel Sounds Using Autocorrelation and Frequency Domain Spectral Analysis View project
All content following this page was uploaded by Dhiman Chowdhury on 02 September 2018.
Abstract—This paper presents design approach and perfor- phase margin or cross-over frequency. Phase-lag, phase-lead,
mance analysis of different types of digital compensators for a PI and PID (lag-lead) controllers have been designed according
robot arm joint control system which involves a sensor feed- to the compensation theory and methodologies as described in
back. The design procedure incorporates discrete (z-plane) and
continuous time (warped s-plane or w-plane) domain parameters. [1].
The design techniques of frequency response characteristics have The mathematical and conceptual premises articulated in this
been investigated and four basic types of controllers-phase-lag, paper have been explained in [1]. The basic framework and il-
phase-lead, proportional-integral (PI) and proportional-integral- lustrations of digital control systems have been reported in [2].
derivative (PID) have been designed and simulated on MATLAB. For education purpose, theory, simulation and experimental
All the controllers have been implemented to achieve a phase
margin of 40 deg. and open loop bode plots and closed loop approaches of digital control systems have been documented
step responses have been evaluated. Comparison among the in [3]. A closed loop model for digital control systems and
controllers on the basis of step response characteristics has been applications of digital controllers to speed drives have been
presented in this paper. presented in [4] and [5]. Several novel design and practical
Index Terms—Bode plot, compensators, continuous time, dis- implementation of digital controllers have been proposed in
crete domain, lag, lead, phase margin, PI, PID, robot control
system, step response
[6]-[10].
The example robot control system illustrated in this paper
consists of a sampler, digital controller block, D/A block
I. I NTRODUCTION
which is a zero-order hold (ZOH), a power amplifier gain,
Controllers are essential to determine the changes of system a servomotor represented by a s-domain transfer function,
parameters and to attain desired characteristics with perfor- gears represented by a gain value and a feedback sensor
mance specifications which are related to steady-state accu- block. The uncompensated plant is presented by a s-domain
racy, transient response, stability and disturbance reduction. transfer function. The sampler initiates A/D conversion and
Analog control systems are robust and do not incur inherent zero-order hold implements D/A conversion. The controllers
bandwidth limits and system modifications. Analog controllers are required to compensate the plant phase margin and the
are hard to synthesize complicated logics, make dynamic inter- desired outcome is considered as 40 deg. For performance
faces among multiple subsystems and are prone to inaccurate evaluation, steady-state error, percent overshoot, rise time and
designs and limitations due to the tolerances of the practical settling time are measured for each controller. The literature
devices. In addition analog systems are highly susceptible review of digital compensation, example uncompensated robot
to corruption by extraneous noise sources. Digital control arm joint plant, discrete and continuous time equations with
systems are reliable since no signal loss occurs in analog- design procedure, MATLAB simulation results of lag, lead,
to-digital (A/D) and digital-to-analog (D/A) conversions and PI and PID controllers and comparative analysis among these
are more flexible and accurate in case of sophisticated logic four are documented in this paper section-by-section.
implementation. Digital filters are not subject to external II. L ITERATURE R EVIEW
noises and are compatible for adaptive filtering applications.
Memory interface and fast response are possible for digital The plant configuration, compensation theory, mathematical
systems. derivations [equations (1)-(47)] of the design approaches and
A physical system or plant is accurately controlled through open loop and closed loop parameters of the controllers de-
closed-loop or feedback operation where an output (system scribed in this paper completely follow the literature reported
response) is adjusted as required by an error signal [1]. The in [1]. For a first-order compensation, the controller transfer
error signal is generated from the difference between the function can be expressed as
response as measured by the sensor feedback and the desired Kd (z − z0 )
D(z) = (1)
response. A controller or compensator processes the error z − zp
quantity to meet certain performance criteria [1]. This paper Here z0 and zp are the respective zero and pole locations. The
documents design methodologies of four digital controllers for bilinear or trapezoidal transformation of the controller from the
a real time robot control system. The compensating parameter discrete z-plane to the continuous w-plane (warped s-plane)
in these design approaches is the phase margin, determined implies
from the bode diagram of the plant. The design procedure 1 + (T /2)w
employs frequency response techniques which account for the D(w) = D(z), z = (2)
1 − (T /2)w
Fig. 1. Block diagram of a robot arm joint control system [1]
TABLE I
A PPLICATIONS OF MATLAB C OMMANDS
Commands Applications
tf Constructs transfer function or converts to transfer func-
tion
c2d Converts continuous-time dynamic system to discrete
time
bode Plots bode frequency response of dynamic systems
margin Locates gain and phase margins and crossover frequen-
cies
zpk Creates continuous-time zero-pole-gain (zpk) model
[used for lead controller]
d2c Converts discrete time model to continuous time model
f eedback Evaluates the closed loop system
step Evaluates the step response
and
1 + (w/ωw0 ) III. P LANT
D(w) = a0 (3)
1 + (w/ωwp ) The robot arm control system has been presented in Fig. 1.
Here ωw0 and ωwp are the respective zero and pole locations In this example system, the sampling time, T = 0.1s, power
in the w-plane and a0 is the compensator dc gain. According amplifier gain, K = 2.4 and sensor feedback gain, Hk = 0.07.
to the bilinear approximation, The sensor input is θa in degrees and the output is in volts.
For the uncompensated plant, the controller, D(z) = 1. The
2 z−1 zero-order hold transfer function can be defined as
w= (4)
T z+1 1 − e−sT
GHO (s) = (9)
From the equations (1)-(4), in z-plane the controller can be s
realized as The continuous-time plant transfer function is
2/T −ωw0 9.6
ωwp (ωw0 + 2/T ) z − ( 2/T +ωw0 ) Gp (s) = 2 (10)
D(z) = a0 (5) s + 2s
ωw0 (ωwp + 2/T ) z − ( 2/T −ωwp )
2/T +ωwp The continuous-time plant with feedback sensor gain transfer
The equation (1) yields to function is
0.672
ωwp (ωw0 + 2/T ) Gc (s) = Gp (s) × Hk = 2 (11)
Kd = a0 (6) s + 2s
ωw0 (ωwp + 2/T ) The discrete-time plant with feedback sensor gain transfer
function is
2/T − ωw0 0.003147z + 0.002944
z0 = (7) Gd (z) = 2 (12)
2/T + ωw0 z − 1.819z + 0.8187
and Fig. 2 presents the bode diagram of the system with D(z) = 1.
2/T − ωwp For the uncompensated system, the phase margin, Pm = 79.6
zp = (8)
2/T + ωwp deg. with a gain margin, Gm = 35.8 dB.
The presented digital control system has been implemented IV. P HASE -L AG C ONTROLLER D ESIGN
and simulated on MATLAB and certain built-in commands The dc gain of the lag controller design, a0 = 10 and the
have been applied for evaluating the design specifications. high-frequency gain can be expressed as
Table-I consists of some specific MATLAB commands and a0 ωwp
their applications. Ghf (dB) = 20log (13)
ωw0
TABLE II
D ESIGN PARAMETERS S ATISFYING THE C ONSTRAINTS
Parameters Values
a1 7.6354
b1 0.4646
θr 372.4823 deg.
∠Gd (jωwc ) -152.4823 deg.
|Gd (jωwc )| 0.0695
|D(jωwc )| 14.4025
cos θr 0.9764
Fig. 6. Bode plot of the phase-lead controlled total open loop system Fig. 8. Bode plot of the PI controlled total open loop system
Fig. 14. Enlarged version of Fig. 13 to show the continuous and discrete step
responses Fig. 17. Step response of the closed loop system for the proportional-integral-
derivative (PID) controller
Fig. 15. Step response of the closed loop system for the proportional-integral
Fig. 18. Enlarged version of Fig. 17 to show the continuous and discrete step
(PI) controller
responses
digital controlled system response. the actual digital controlled system response.
The scaled step response of the closed loop system for the The scaled step response of the closed loop system for the
designed phase-lead controller is presented in Fig. 13 and Fig. designed PID controller is presented in Fig. 17 and Fig. 18
14 shows the enlarged view. From Fig. 13, the rise time is shows the enlarged view. From Fig. 17, the rise time is found to
found to be 8.72s and percent overshoot is found to be 0% be 5.68s and percent overshoot is found to be 27% for the PID
for the lead compensator. There are two plots concatenated in compensator. There are two plots concatenated in this figure.
this figure. One is the continuous-time (w-plane) response and One is the continuous-time (w-plane) response and other is
other is the actual digital controlled system response. the actual digital controlled system response.
The scaled step response of the closed loop system for the
designed PI controller is presented in Fig. 15 and Fig. 16 shows IX. C OMPARISON
the enlarged view. From Fig. 15, the rise time is found to be Fig. 19 and Fig. 20 present the step responses of the
5.96s and percent overshoot is found to be 28.5% for the PI designed phase-lag, phase-lead, PI and PID compensators in
compensator. There are two plots concatenated in this figure. discrete (actual digital) domain and continuous (warped s-
One is the continuous-time (w-plane) response and other is plane or w-plane) domain respectively. The step response
TABLE III
S TEP R ESPONSE C HARACTERISTICS OF THE C ONTROLLERS