Performance Analysis of Pid, PD and Fuzzy Controllers For Position Control of 3-Dof Robot Manipulator
Performance Analysis of Pid, PD and Fuzzy Controllers For Position Control of 3-Dof Robot Manipulator
Performance Analysis of Pid, PD and Fuzzy Controllers For Position Control of 3-Dof Robot Manipulator
Keywords: – ABSTRACT
3-DOF robot Robot manipulators are extensively used in industrial applications because of their immense
manipulator, dynamic model, importance such as in constructions automation. Therefore, designing controllers to suit the
PID, PD, and FLC; intensive purpose of the application is one of the major challenges for control researchers.
This paper presents comparative analysis of three controllers on a 3-DOF robot
Article History: – manipulator. The proportional integral derivative (PID), proportional derivative (PD) and
Received: January, 2019. fuzzy logic (FL) controllers were designed and applied to each of the link of the robot by
Reviewed: April, 2019 simulation. The performance of each control method was assessed using the transient and
Accepted: May, 2019 steady state response characteristics. Comparisons of the results obtained, PID and PD
Published: June, 2019 performed better in terms of Rise Time and Settling Time while the FLC exhibited reduced
overshoot
.
.
19
Zaria Journal of Electrical Engineering Technology, Department of Electrical Engineering, Ahmadu Bello
University, Zaria – Nigeria. Vol. 8 No. 1, January-June 2019. ISSN: 0261 – 1570.
𝑏3 = −𝑚3 𝐿1 𝐿3 (𝜃̇1 𝜃̇2 + 𝜃̇1 𝜃̇3 )𝑠𝑖𝑛(𝜃2 + 𝜃3 ) − 𝑔2 = 𝑚2 𝑔(𝐿2 cos(𝜃1 + 𝜃2 )) + 𝑚3 𝑔(𝐿2 cos(𝜃1 +
2
2𝑚3 𝐿2 𝐿3 (𝜃̇1 𝜃̇3 + 𝜃̇2 𝜃̇3 )sin𝜃3 + 𝑚3 𝐿1 𝐿3 (𝜃̇1 + 𝜃2 ) + 𝐿3 cos(𝜃1 + 𝜃2 + 𝜃3 )) ... (16)
2
𝑔3 = 𝑚3 𝐿3 𝑔 cos(𝜃1 + 𝜃2 + 𝜃3 ) ... (17)
𝜃̇1 𝜃̇2 + 𝜃̇1 𝜃̇3 ) 𝑠𝑖𝑛(𝜃2 + 𝜃3 ) + 2𝑚3 𝐿2 𝐿3 (𝜃̇1 +
2 The block diagram was designed and simulated using
2𝜃̇1 𝜃̇2 + 𝜃̇1 𝜃̇3 + 𝜃̇2 + 𝜃̇2 𝜃̇3 ) 𝑠𝑖𝑛𝜃3 ... (14)
𝑔1 = 𝑚1 𝐿1 𝑔𝑐𝑜𝑠𝜃1 + 𝑚2 𝑔(𝐿1 𝑐𝑜𝑠𝜃1 + 𝐿2 cos(𝜃1 + Matlab simulink environment and it is presented in
𝜃2 )) + 𝑚3 𝑔(𝐿1 𝑐𝑜𝑠𝜃1 + 𝐿2 cos(𝜃1 + 𝜃2 ) + Figure 2. Also Open loop response for all the three links
𝐿3 cos(𝜃1 + 𝜃2 + 𝜃3 )) ... (15) are presented in figure 3.
20
Zaria Journal of Electrical Engineering Technology, Department of Electrical Engineering, Ahmadu Bello
University, Zaria – Nigeria. Vol. 8 No. 1, January-June 2019. ISSN: 0261 – 1570.
comprise rule base and data base and defuzzification is
the inverse of fuzzification [5], [11], [14], [15].
T1FLS
Rules
Fuzzy Fuzzy
Crisp Input sets output sets Crisp
Fuzzifier Inference Defuzzifier
inputs outputs
𝑢𝑖 = 𝑘𝑝𝑖 𝑒𝑖 + 𝑘𝐼𝑖 𝑒𝑖̈ + 𝑘𝑑𝑖 𝑒̇𝑖 ... (19) where, P is positive, N is negative, Z is zero, PB is
Where, 𝑘𝑝 is proportional gain, 𝑘𝐼 is integral gain, 𝑘𝑑 positive big, and NB is negative big
is derivative gain,
ei is angle error obtained from θri − θi , 4.1 Controller Rules Base
ė d i is derivative error obtained from θri − θd i ,
ë I i is integral error obtained fromθri IF THEN Rule base are generated base of the
observations of the system behaviour. Table 1
− θI i and eri is reference input
described the choices of the linguistics variables eg P,
In case of PD and PID 𝑘𝑝𝑖 , 𝑘𝐼𝑖 , 𝑘𝑑𝑖 are adjusted to have
Z, and N which lead to the generation of 9 rules base
a satisfactory result as shown below. From table 1 it can be seen that “IF
the position error and derivative of position error are
4. FUZZY LOGIC CONTROLLER positive THEN a Big Positive (PB) force is required.
DESIGN Three membership set for the two inputs and five for
the output are used to describe all the linguistic
The operational techniques for designing fuzzy logic variables as shown in Figure 5 (a), (b) and (c)
controller (FLC) constitute four main units as shown respectively
in Figure 4 such units are Fuzzification, inference
engine, knowledge base and deffuzification. The 1) If 𝑒 is P and 𝑒̇ is P then 𝑢 is PB
fuzzification makes the physical/crisp input data 2) If 𝑒 is P and 𝑒̇ is Z then 𝑢 is P
compatible with fuzzy control rule base in core of the 3) If 𝑒 is P and 𝑒̇ is N then 𝑢 is Z
controller, inference engine perform the control 4) If 𝑒 is Z and 𝑒̇ is P then 𝑢 is P
actions in fuzzy terms according to the information 5) If 𝑒 is Z and 𝑒̇ is Z then 𝑢 is Z
provided by the fuzzification, knowledge base 6) If 𝑒 is Z and 𝑒̇ is N then 𝑢 is N
7) If 𝑒 is N and 𝑒̇ is P then 𝑢 is Z
21
Zaria Journal of Electrical Engineering Technology, Department of Electrical Engineering, Ahmadu Bello
University, Zaria – Nigeria. Vol. 8 No. 1, January-June 2019. ISSN: 0261 – 1570.
8) If 𝑒 is N and 𝑒̇ is Z then 𝑢 is N 4.2 Positions Error Set-Point Tracking
9) If 𝑒 is N and 𝑒̇ is N then 𝑢 is NB
Figure 5 (a), (b) and (c) shows the membership The position error is defined as 𝑒𝑖 = 𝜃𝑟 − 𝜃𝑐 where, 𝜃𝑟
function for the inputs and the output from the Matlab is reference input (set-point), k is gain and 𝜃𝑐 is
Simulink controller system output as illustrate in Figure (6)
Variables Values
m1 1kg
m2 1kg
(b) m3 1kg
L1 0.5m
(c)
L2 0.5m
L3 0.5m
J1 0.5kgm2
J2 0.5kgm2
J3 0.5kgm2
g 9.81m/s 2
Table 2 presented the system parameters used, where
m1, m2 and m3 represent mass of Link1, Link2 and
Link3 of the system respectively, L1, L2, L3 represent
the length of Link1, Link2 and Link3 of the system
respectively, J1, J2, J3 represent the inertia of Link1,
Link2 and Link3 of the system respectively and g
represent gravitational force.
22
Zaria Journal of Electrical Engineering Technology, Department of Electrical Engineering, Ahmadu Bello
University, Zaria – Nigeria. Vol. 8 No. 1, January-June 2019. ISSN: 0261 – 1570.
Table 3: PID, PD and FLC Tuning Parameters
Controllers
Variables PID PD FLC
Kp 90 76.599 20
1
Kp 100 205 67
2
Kp 75 60.795 65
3
Kd 1 90 21.999 9.275
Kd 2 15 13.799 13.275
Kd 3 15 8.549 11.975
Ki 1 1 - -
Ki 2 1 - -
Ki 3 1 - -
5. OUTPUT RESPONSES
PID, PD and FLC controllers were designed and
implemented in Matlab Simulink Environment. In this
work the performance of each link were compared
with the three controllers.
Figure (8) indicate the responses of the first link of
FLC, PD & PID, Figure (9) indicate the responses of
the second link of FLC, PD & PID and Figure (10)
indicate the responses of the third link of FLC, PD &
PID Figure 10: Link 3 Controllers Output Response
23
Zaria Journal of Electrical Engineering Technology, Department of Electrical Engineering, Ahmadu Bello
University, Zaria – Nigeria. Vol. 8 No. 1, January-June 2019. ISSN: 0261 – 1570.
6. RESULTS COMPARISON
In link 2, it was discovered that, the PID (RT=0.3011)
Step input signals with zero step time were used as set- (ST=0.5264), and PD (RT=0.1215) (ST=0.3642)
point. The simulation results in figure (8), (9) and (10) outperform FLC (RT=1.1373) (ST=2.4064), the PID
show that the output response performance of link1 (OS=0.1790) and FLC (OS=7.2402e-04) outperform
PID, PD and FLC, link 2PID, PD and FLC and link 3 PD (OS=6.5930) while the Steady State Error are
PID, PD and FLC respectively. The response indicated approximately the same (SS≈-0.002).
that all the controllers converged to the set-point
The response parameters, including Rise Time (RT), Table (6) Link 3 Comparison Between PID, PD and
Settling Time (ST), Overshoot (OS) and Steady State FLC
Error (SS) are obtained. Table (4) indicates the
comparison of first link of FLC, PD & PID, Table (5) System Output Controllers
indicates the comparison of second link of the FLC, Characteristics Link 3 Link 3 PD Link 3 FLC
PD & PID and Table (6) indicates the comparison of PID
third link of the FLC, PD & PID Rise Time (s) 0.3583 0.1612 0.6444
Settling Time (s) 0.6832 0.4484 1.4413
Table 4: Link 1 Comparison Between PID, PD and Overshoot (%) 0.1847 4.7933 1.2071e-04
FLC Undershoot (%) 0 0 0
System Output Controllers Steady State Error -0.002 -0.002 -0.003
Characteristics Link 1 Link 1 PD Link 1 FLC
PID
In link 3, it was also discovered that, the PID
Rise Time (s) 0.3149 0.4513 1.8507
(RT=0.3583) (ST=0.6832) and PD (RT=0.1612)
Settling Time (s) 0.6361 1.0213 3.3064 (ST=0.4484) outperform FLC (RT=0.6444)
Overshoot (%) 0.1395 0 2.2594e-04 (ST=1.4413), the PID (OS=0.1847) and FLC
Undershoot (%) 1.3941 16.1508 0 (OS=1.2071e-04) has less overshoot as compared to
Steady State Error -0.002 -0.001 PD (4.7933) and also the Steady State Error are
0
approximately the same.
24
Zaria Journal of Electrical Engineering Technology, Department of Electrical Engineering, Ahmadu Bello
University, Zaria – Nigeria. Vol. 8 No. 1, January-June 2019. ISSN: 0261 – 1570.
REFERENCES
25