You are on page 1of 8

IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 5, NO.

3, MAY 1997 371

Brief Papers
Fuzzy PID Control of a Flexible-Joint Robot Arm with
Uncertainties from Time-Varying Loads
Heidar A. Malki, Dave Misir, Denny Feigenspan, and Guanrong Chen

Abstract— This paper presents the design and experiment of intelligence, particularly neural networks and fuzzy logic, have
a fuzzy proportional integral derivative (PID) controller for a also been proposed for this purpose, which generally does not
flexible-joint robot arm with uncertainties from time-varying require a precise system model in the design of the controller.
loads. Experimental results have shown remarkable tracking
performance of this fuzzy PID controller, and have convincingly References in this area are actually too many to cite [3]. To
demonstrated that fuzzy logic control can be used for flexible- name a few, we only mention that Cela and Hamam used
joint robot arms with uncertainties and it is quite robust. In fuzzy robust control for robotic trajectory tracking [1], Liu
this paper, the fuzzy PID controller is first described briefly, and Lewis applied fuzzy logic in the control of flexible and
using a simple and practical PD+I controller configuration. This mobile robots [7], [8], Neyer and Gorez adopted a fuzzy
configuration preserves the linear structure of the conventional
PD+I controller, but has nonconstant gains: the proportional, model-based control strategy [11], Jamshidi and his colleagues
integral, and derivative gains are nonlinear functions of their took a hierarchical approach in the fuzzy control [4], [17],
input signals, which have self-tuning (adaptive) capabilities in set- Segino and Nuhida [15] employed fuzzy logic to the control
point tracking performance. Moreover, these variable gains make of a car along a crank-shaped course, Zhang [20] applied
the fuzzy PID controller robust with faster response time and less
fuzzy control to autonomous robot systems, and Pham et
overshoot than its conventional counterpart. The proposed design
was tested using a flexible-joint robot arm driven by a dc motor in al. [13] applied a dynamical fuzzy modeling technique [3]
a laboratory, where the arm was experienced with time-varying to docking a boat, and later to multilink robot arms [12].
loads. Control performance by the conventional and fuzzy PID In this pursuit, Tang and Chen applied a robust fuzzy PI
controllers for such a laboratory robotic system are both included controller to a trajectory tracking problem of a robot arm with
in this paper for comparison.
higher uncertainties of several parameters [16], Upadhyaya
Index Terms—Flexible-joint robot, fuzzy control, PID control, and Chen designed a fuzzy controller that optimizes the
uncertainty. linear quadratic (LQ) criterion for an uncertain robot arm
[18], and the present authors designed and built a fuzzy PD-
I. INTRODUCTION based controller for a dc motor with a static load [9]. To
further improve the performance, in this paper we design

R OBOT control is one of the practical, yet difficult,


field that is of interest to both academia and industry.
Conventional control systems theory have proven to be very
and test a fuzzy PD I controller and apply it to the control
of a flexible-joint robot arm with time-varying loads, which
contains significant uncertainties.
effective for systems that can be modeled relatively precisely
The significance of the proposed design that may differ
by mathematical equations. However, they have been found
from other fuzzy or nonfuzzy proportional integral derivative
to be inefficient in handling systems that are either too com-
(PID)-type controllers include the following [10], [19].
plex or too vague to be described by accurate mathematical
models. Some difficult issues related to these systems are 1) It preserves the linear structure of the conventional PID
inertia, momentum, friction, damping, time-lags, oscillations, controller, but has nonconstant gains: the proportional,
nonlinearities, and complex structure, etc. Robot control is one integral, and derivative gains are nonlinear functions
of the industrial applications that has many such problems, of their input signals, which have self-tuned (adaptive)
which calls for more flexible strategies. capability in set-point tracking performance. Moreover,
There have been numerous conventional approaches in these variable gains make the fuzzy PID controller
the literature to the control of various robotic manipulators, robust, with faster response time and less overshoot.
including robust control methods [14]. These approach gen- 2) The controller is designed based on the precise mathe-
erally require a mathematical model, at least an approximate matical model of a digital PD I controller, from which
one, for the design of a controller. In recent years, artificial the fuzzy control law is derived, and hence is mathe-
matically rigorous.
Manuscript received March 5, 1996. Recommended by Associate Editor, B. 3) Membership functions are simple triangular ones with
Espiau. This work was supported by the Energy Laboratory, the Institute for only four fuzzy logic if–then rules for each of the PD
Space Systems Operations, and the LGIA Grants program at the University and the I (integral) control components.
of Houston.
The authors are with the University of Houston, Houston, TX 77204 USA. 4) The fuzzification, control-rule base, and defuzzification
Publisher Item Identifier S 1063-6536(97)03276-4. configurations are all embedded in the final result of
1063–6536/97$10.00  1997 IEEE
372 IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 5, NO. 3, MAY 1997

Letting and , and then taking the


inverse -transform, we have

(1)
Further dividing (1) by , and using to mean from now
+
Fig. 1. The conventional continuous-time PD I control system. on, we obtain
(2)
the fuzzy control law, which is a small set of explicit
conventional control formulas, so that the fuzzification- where
rules-defuzzification routine is not needed throughout
(3)
the entire control process. Thus, the fuzzy PID controller
avoids using the look-up tables and is suitable for real-
(4)
time applications.
5) The fuzzy if–then rules in this design are “generic type”
(5)
and so can be applied to various systems, generally
without requesting the knowledge from domain experts. We can then rewrite (3) as
6) The I (integral) controller can be independently adjusted
to reduce integral windup (if it exists). (6)
In the next section, the mathematical framework for the
Replacing the term by a fuzzy control action gain,
design and implementation of the fuzzy PID controller is
we finally arrive at
presented. In Section III, the experimental setup of the fuzzy
PID control robotic system is described and discussed. Finally, (7)
Section IV shows the laboratory experimental results and
compares the conventional and fuzzy PID control systems where is a fuzzy control gain.
under the same conditions. Our experimental results have
shown remarkable tracking performance of this fuzzy PID B. Derivation of the Fuzzy I Controller
controller, which convincingly demonstrates that fuzzy logic The I controller in the PD I control system, as shown in
PID control can be used for flexible-joint robot arms with Fig. 1, has as its input and as its output. It is clear that
uncertainties and it is quite robust. in the frequency -domain we have

(8)
II. OVERVIEW OF THE FUZZY PID CONTROLLER
In this section, we briefly describe the mathematical prin- where is the conventional integral control gain and is
ciple for the fuzzy PID controller design, including the fuzzi- the error signal. Under the bilinear transformation, (8) becomes
fication, rule-base and defuzzification. In this design, we use
a standard PD I controller configuration to be practical [2]. (9)
The design of the fuzzy PID controller hence consists of two
parts: one fuzzy PD and one fuzzy I controllers. Details in the so that
design of the fuzzy PD part can be found in Malki et al. [10].
(10)
A. Derivation of the Fuzzy PD Controller
Consequently, we have
The output of the conventional analog PD controller in the
frequency -domain, as can be verified easily from Fig. 1, is
given by
(11)
Then dividing (11) by yields
where and are the conventional proportional and (12)
derivative gains, respectively, and is the tracking error
signal. where and , with
This equation can be transformed into the discrete version
by applying the bilinear transformation (13)
, where is the sampling period, which results in
and

(14)
IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 5, NO. 3, MAY 1997 373

+
Fig. 2. The fuzzy PD I control system.

Letting be a fuzzy control gain, as was similarly done for


the fuzzy PD controller case discussed above, we arrive at

(15)

C. Combination of the Fuzzy PD I Controller


Finally, the overall fuzzy PD I control law can be obtained Fig. 3. The input membership functions for the PD component.
by algebraically summing the fuzzy PD control law (7) and
fuzzy I control law (15) together. The result is

(16)

Equation (16) will be referred to as the fuzzy PD I control


Fig. 4. The output membership functions for the PD component.
law throughout the paper.
The overall fuzzy PD I controller is shown in Fig. 2,
where the fuzzy PD and I controllers will be inserted into
the configuration later.

D. Fuzzification, Control Rule Base, and Defuzzification


We have followed the standard procedure of fuzzy con-
trollers design, which consists of fuzzification, control rule
Fig. 5. The input membership functions for the I component.
base establishment, and defuzzification.
1) Fuzzification: We fuzzify the PD and I components of
the PD I control system individually and then combine the The I controller has two inputs: the delayed error signal
desired fuzzy control rules for each of them, taking into and the rate of changes of the error signal .
consideration the overall PD I fuzzy control law given in The input and output membership functions for the fuzzy I
(16). Similar to the fuzzy PD controller [10], the input and controller are shown in Figs. 5 and 6, respectively.
output membership functions of the PD component are shown 2) Fuzzy Control Rules: Using the aforementioned mem-
in Figs. 3 and 4, respectively. bership functions, the following control rules are established
The fuzzy PD controller employs two inputs: the average for the fuzzy PD controller.
error signal and the rate of change of the error signal (R1) IF AND Then PD-output .
. The fuzzy PD controller has a single output denoted by (R2) IF AND Then PD-output .
, as shown in Fig. 2. (R3) IF AND Then PD-output .
374 IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 5, NO. 3, MAY 1997

Fig. 6. The output membership functions for the I component.

(R4) IF AND Then PD-output .


In these rules, is the error, where is the
set-point, is the rate of the change of the error,
“PD-output” is the fuzzy PD control output ,“ ”
means “error positive” and “ ” means “output positive,” Fig. 7. Regions of the fuzzy PD and I controllers’ input-combination values.
etc. Finally, “AND” is the Zadeh’s logical “AND” defined by
.
Similarly, from the membership functions of the fuzzy
I controller, the following control rules are used for the I
component, where is the delayed error signal.
(R5) IF AND THEN I-output
.
(R6) IF AND THEN I-output
.
(R7) IF AND THEN I-output
.
(R8) IF AND THEN I-output Fig. 8. Block diagram and physical setup for the robot arm experiment.
.
In the above rules, “I-output” is the fuzzy I control output
geometry of Fig. 7:
, and the other terms are defined similarly to the PD
component.
These eight rules altogether yield the control actions for the
fuzzy PD I control law.
3) Defuzzification: In the defuzzification step, for both
fuzzy PD and I controllers, the commonly used “center of
mass” formula is employed to defuzzify the incremental
control of the fuzzy control law, (15) as shown in (17)

we obtain the following nine formulas for the ten IC regions:

in IC A (18)

input membership value membership value of output


in IC B (19)
membership value of output
(17)
in IC C (20)
in IC D (21)
in IC E (22)
For the fuzzy PD controller, the value-ranges of the two in IC F (23)
inputs, the error and the rate of change of the error, are
in IC G, J (24)
actually decomposed into ten adjacent input-combination (IC)
regions, as shown in Fig. 7. The control rules for the fuzzy in IC H (25)
PD controller (R1)–(R4), with membership functions and IC
in IC I (26)
regions together, are used to evaluate appropriate fuzzy control
law’s for each region. Similarly, defuzzification of the fuzzy I controller follows
Now, by applying the values , , , the same procedure as described above for the PD component,
and the following straight line formulas obtained from the except that the input signals in this case are different. The
IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 5, NO. 3, MAY 1997 375

Fig. 9. Tracking performance of the conventional PID-controlled system (I).

IC combinations of these two inputs are decomposed into ten our experiments to simplify the design by reducing one control
similar regions, as shown also in Fig. 7. parameter. Also, the constant is chosen by the designer
By applying the values , , , and is fixed after being determined. In our simulation,
and the following straight line formulas obtained from the turns out to be the best choice for the experiment.
geometry of Fig. 7:
III. DESCRIPTION OF THE EXPERIMENT
A flexible-link robot arm driven by a dc motor is used for the
experiment in our control systems laboratory. A block diagram
and the physical structure illustrating the setup is shown in
Fig. 8.
A dc motor (Micro-Switch, 24 V) with a tach-generator was
used to rotate a 12-in aluminum bar (arm). The arm produced
a nonlinear loading effect on the motor. The shaft connecting
we obtain the following nine formulas for the ten IC regions: the arm to the motor has a flexible link which adds additional
nonlinearities to the system. A tracking power supply (Kepo)
in IC A (27) was used to amplify the control signal driving the motor. In
addition, a PC, along with a National Instruments input–output
board, was used to close the loop.
in IC B (28) In this robot arm model, damping will be ignored for
simplicity. The joint is assumed to be rotational with flexibility
in IC C (29) modeled as a linear spring of stiffness . The link is assumed
in IC D (30) to be rigid with rotational inertia about the axis of rotation.
Let be the link-angular variable with the vertical axis as
in IC E (31) its reference and be the motor-shaft angle (its reference
in IC F (32) is not important). Assume also that the rotor inertia of the
motor is . Let be the torque, considered as the
in IC H, I (33) control input to the arm system, generated by the motor. Then,
it follows from the Euler–Lagrange equations that
in IC G (34)
in IC J (35)

Note that the constant that multiplies the signal


is used as a parameter for generality here, as well as in the where is the total mass of the arm including the time-
derivation of above. Although it could be used as a varying dynamic loads caused by an external spring connected
control gain, its value is permanently set to one throughout all to the end-effector of the arm, the distance to the joint from
376 IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 5, NO. 3, MAY 1997

Fig. 10. Tracking performance of the fuzzy PID-controlled system (I).

Fig. 11. Tracking performance of the conventional PID-controlled system (II).

the mass-center of the axis of rotation, and the gravity system output with the tuned PID gains that achieved the best
constant. results by trial-and-error are shown in Fig. 9, where and below
The actual data that we used in the experiment were: s. The fuzzy PID controller, in contrast, controlled
(kgm ), (kgm ), (Nm), the robot arm system with reasonably good results, obtained
(Nm/rad). also by trial-and-error, as shown in Fig. 10. In this and the
other fuzzily controlled simulation figures, , ,
, and and are fuzzy gains defined in
IV. EXPERIMENT AND RESULTS Section II-B (see Fig. 2). In Figs. 9 and 10, the robot arm was
In the experiment, the robot arm system was run using two not connected to the spring, where the units used are oltage
control methods: using the conventional digital PID controller (1 V 400 r/min) versus second.
and the fuzzy PID controller, respectively, both based on Another comparison, at a different speed and with the spring
the same configuration and under the same conditions. The added to the arm, is shown in Figs. 11 and 12, where the units
conventional digital PID controller was unable to satisfactorily used are voltage (1 V 400 r/min) versus s in Fig. 11 while
run the robot arm system (with a nonlinear load) no matter versus second in Fig. 12. In these experiments, parameters
what combinations of control gains were used. Plots of the for the fuzzy PID control gains were found such that there
IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 5, NO. 3, MAY 1997 377

Fig. 12. Tracking performance of the fuzzy PID-controlled system (II).

Fig. 13. Tracking performance of the fuzzy PID-controlled system under different conditions.

were only a very little overshoot, no oscillations, and a good model-free and is based on rigorous mathematical derivations,
tracking performance with respect to the given set-point. For where its stability is also guaranteed (see [10] for detailed
example, at the speed of 700 r/min the fuzzy PID controller stability analysis for the fuzzy PD controller, which can be
kept the speed of the motor within a 1.6% band of the easily converted to this new controller). Experimental results
set-point. As the speed decreases, there was an increasing non- have shown remarkable tracking performance and robustness
linear loading effect and the performance of the controller went of the fuzzy PID controller: it produces overall better results
down. Fig. 13 show three outputs of the fuzzy PID controller than the conventional PID controller in all our experiments.
tracking three different speeds, without connecting the spring Here, we must point out that the comparison between the
to the arm, for the purpose of self-comparison. One should note
fuzzy and conventional PID controllers was shown for the
that all the outputs are seemingly periodic, due to the inherent
purpose of visualizing how well the fuzzy controller works;
inertia of the physical structure, as is well experienced.
these two controllers are by nature not exactly comparable.
On the other hand, the fuzzy PID controller introduced in this
V. CONCLUSIONS paper is still not very simple. For instance, it has nine formulas
We have discussed the design and experiment of a fuzzy PID in ten regions for each of the PD and I controllers, which
controller for a flexible-joint robot arm with uncertainties from have to switch (although automatically and continuously) from
time-varying loads. The design of the fuzzy PID controller is time to time in executing the control actions during a process.
378 IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 5, NO. 3, MAY 1997

Nevertheless, based on the satisfactory performance of the new [10] H. A. Malki, H. Li, and G. Chen, “New design and stability analysis
fuzzy PID controller, we believe that this controller has great of fuzzy proportional-derivative control systems,” IEEE Trans. Fuzzy
Syst., vol. 2, pp. 245–254, 1994.
potential in various industrial applications. [11] M. De Neyer and R. Gorez, “Fuzzy and quantitative model-based control
systems for robotic manipulators,” Int. J. Syst. Sci., vol. 24, no. 10, pp.
REFERENCES 1863–1883, 1993.
[12] T. T. Pham and G. Chen, “Optimal fuzzy control systems with applica-
[1] A. Cela and Y. Hamam, “A fuzzy robust controller for trajectory tions to multilink manipulators,” in Proc. EXPERSYS’94, Houston, TX,
tracking of robotic systems,” in Proc. IEEE/RSJ Int. Conf. Intell. Robots Dec. 1–2, 1994, pp. 531–536.
Syst., 1992, pp. 767–774. [13] T. T. Pham, J. J. Weiss, and G. Chen, “Optimal fuzzy logic control for
[2] C. T. Chen, Analog and Digital Control Systems Design. New York: docking a boat,” in Proc. 2nd Int. Wkshp. Fuzzy Logic Applicat., College
Sanders, 1993. Station, TX, Dec. 2–4, 1992, pp. 66–73.
[3] G. Chen, “Conventional and fuzzy PID controllers: An overview,” Int. [14] Z. Qu and M. Dawson, Robust Tracking Control of Robot Manipulators.
J. Intell. Contr. Syst., vol. 1, no. 2. pp. 235–246, 1996. New York: IEEE Press, 1996.
[4] K. K. Humbla and M. Jamshidi, “Control of robotic manipulator using [15] M. Segino and M. Nishida, “Fuzzy control of model car,” Fuzzy Sets
fuzzy logic,” in Proc. 3rd Int. Conf. Fuzzy Syst., 1994, pp. 518–523. Syst., vol. 16, pp. 110–113, 1985.
[5] G. Kaplan, “Industrial electronics,” IEEE Spectrum Mag., pp. 74–76, [16] W. Tang and G. Chen, “A robust fuzzy PI controller for a flexible-joint
Jan. 1994.
robot arm with uncertainties,” in Proc. FUZZ-IEEE’94, Orlando, FL,
[6] R. N. Lea, Y. Yani, and J. Hoblit, “Fuzzy logic-based robotic arm
control,” in Proc. 2nd IEEE Int. Conf. Fuzzy Syst., San Francisco, CA, June 26–July 2, 1994, pp. 1554–1559.
Mar. 28–Apr. 1, 1993, pp. 128–133. [17] M. R. A. Totonchi, M. Jamshidi, and N. Vadiee, “A hierarchical fuzzy
[7] K. Liu and F. L. Lewis, “Hybrid feedback linearization/fuzzy logic controller using line-curvature feature extraction for a single link flexible
control of a flexible link manipulator,” J. Intell. Fuzzy Syst., vol. 2, arm,” in Proc. 3rd Int. Conf. Fuzzy Syst., 1994, pp. 524–529.
no. 4, pp. 325–336, 1994. [18] M. Upadhyaya and G. Chen, “Fuzzy LQ controller design for a
[8] , “Fuzzy logic-based navigation controller for an autonomous robot arm with jopint-flexibility uncertainties,” in Proc. EXPERSYS’94,
mobile robot,” in Proc. IEEE Int. Conf. Syst. Man., Cybern., San Houston, TX, Dec. 1–2, 1994, pp. 511–518.
Antonio, TX, 1994, pp. 1782–1789. [19] H. Ying, W. Siler, and J. J. Buckley, “Fuzzy control theory: A nonlinear
[9] H. A. Malki and D. Feigenspan, “DC motor control using fuzzy case,” Automatica, vol. 26, no. 3, pp. 513–520, 1990.
proportional derivative technique,” in Proc. NAFIPS/IFIS/NASA’94, San [20] J. Zhang, “Applications of fuzzy logic control in autonomous robot
Antonio, TX, Dec. 1–2, 1994. systems” Int. J. Syst. Sci., vol. 24, no. 10, pp. 1885–1904, 1993.

You might also like