Professional Documents
Culture Documents
Fuzzy Logic - Manafeddin Namazov
Fuzzy Logic - Manafeddin Namazov
Fuzzy Logic - Manafeddin Namazov
Abstract—In this paper, it is aimed to achieve fuzzy logic model, nonlinear, time-varying systems. One of the most
control of a simple 2-link robot manipulator via Robotics and significant strengths of fuzzy control is the ability to be
Fuzzy Logic Toolboxes of MATLAB©. The blocks from these successfully applied to complex systems such as Mamdani‘s
toolboxes were blended in the Simulink© environment in order steam engine and boiler combination [9], Kickert‘s warm
to obtain the simulations. The robot block available in the water plant [10] and Ostergaard‘s heat exchanger system
Robotics Toolbox was used to create the model by modifying [11] using experience, or control engineering knowledge
the block parameters. Next, a PD-controller was designed and without a mathematical model of the plant [12,13].
optimized, which results, in turn, acted as a guide for
generating the fuzzy rule-base of the fuzzy controller. The Modeling the robot manipulator, design and analysis of
fuzzy controller was then designed and implemented into the the fuzzy control algorithm and acquisition of the simulation
system using the Fuzzy Logic Toolbox. Finally, the fuzzy results using the strong computational tools listed above are
control system that has a satisfactory reference tracking of primary interest to this research. The main advantage of
performance was simulated for various inputs. using such computational tools is the ability to address the
issue of synthesis and analysis of such complex systems in a
Keywords—Fuzzy control, Robotics Toolbox, 2-link robot very easy and compact manner. In this paper, we first
manipulator introduce the model of the robot manipulator. Then, a PD-
controller is implemented and optimized for the desired
I. INTRODUCTİON operation regime. Next, the design procedure of a fuzzy
These days, robot manipulators are widely used in controller based on optimized PD parameters, which
manufacturing, and tuning of the controllers is an actual performs fuzzy tuning is described. This paper focuses on the
problem in the control of these systems. Classical controller design of fuzzy logic control of a simple 2-link robot
schemes require tuning for each reference and disturbance manipulator via simultaneous application of Simulink,
signals. Using the advantageous features of fuzzy controller Robotics Toolbox and Fuzzy Logic Toolbox of MATLAB.
scheme, control of plants with a wider range of reference and
disturbance signals can be handled [12,17]. II. MODEL OF THE ROBOT MANİPULATOR
There are several approaches for robot manipulator The robot manipulator is modeled so as to obtain a
control that are well defined in literature [2,3,6,7]. However, solution to the inverse dynamics problem in which the
one of these approaches, namely, computed-torque control, torques applied by the actuators is computed in order to
provides a quite satisfactory performance particularly when follow a prescribed trajectory. In other words, the goal of this
the robot arm parameters are known fairly accurately [7]. model is to determine the torque regimes required to achieve
This method was first introduced in Paul‘s 1972 report [1], given position, velocity and acceleration objectives for each
and the name was first used in Markiewicz and Bejczy link of the robot manipulator. Manipulator dynamics deals
[2,3,15]. with the equations of motion in order to obtain such a
solution [4]. In a general sense, this problem is formulated as
A fundamental problem in robot control is to accomplish follows [5]:
the task of tracking a desired trajectory with adequate
precision. In classical robot manipulator control, tuning of τ (t ) = D(q (t ))q(t ) + h(q (t ), q (t )) + c(q (t )), (1)
the controllers are achieved by ranging the controlled
variables. However, in real applications, control systems are
subject to external effects such as noise and disturbance. In where τ(t) is the torque vector, q is the vector of generalized
order to suppress the undesired effects of these inputs, the coordinates, D is the inertial matrix, h is the Coriolis and
fuzzy control algorithm, which allows for control in a wider centrifugal terms, and c is the gravitational term. The 2-link
interval of the controlled variables, is implemented. robot manipulator of interest is illustrated in Fig. 1 [5].
In contrast with the conventional methods, fuzzy control
schemes based on the Fuzzy Set Theory, proposed by Zadeh
[8], provides a more effective method for the analysis and
control of relatively complex, mathematically difficult to
NB NB NB NB NS ZE
NS NB NB NS ZE PS
ZE NB NS ZE PS PB
PS NS ZE PS PB PB
PB ZE PS PB PB PB
NB Negative BIG
NS Negative SMALL
ZE ZERO
PS Positive SMALL
a)
PB Positive BIG
K p K popt + ∆K p
=
(3)
K d K dopt + ∆K d
=
c)
Fig. 3. Membership functions of the input and output signals: (a) error of
q1, (b) change of error of q1, (c) Fuzzy value of Kp1. Fig. 4. Simulation of the robot manipulator.
2018 Global Smart Industry Conference (GloSIC)
e_q1
Kpd1
e_q2
de_q1
de_q2
Kpd2
Fuzzy PD Controller
To Workspace
Fig. 5. Simulink model of the 2-link robot manipulator system with fuzzy control
Output signals are then subtracted from the reference considered in this paper was found to be relatively effective
inputs, and the calculated error signals are sent to two compared to the PD-controller scheme.
separate fuzzy controllers, in which the control signals are
generated for the two links of the manipulator. Control V. CONCLUSİON
signals are finally fed back to the RNE block as acceleration
inputs that will regulate the torques accordingly. Dynamic model of a 2-link robot manipulator is created
and a fuzzy logic controller is designed and implemented in
Some simulation results are provided below to order to adjust the PD-controller parameters for improved
understand the dynamic behavior of the system. In these reference-tracking performance. Design procedures for all
simulations, input values of angular position are pi/4 for both components of the overall system are explained in detail. The
links. system is then simulated in MATLAB/Simulink and the
output curves are presented to emphasize the results. The
As seen from the output curves on Fig 7, trajectory fuzzy logic controller is found to be efficient in terms of
tracking performance of the fuzzy control system is adjusting Kp and Kd parameters, which in turn decreased the
satisfactory in terms of time-domain characteristics such as tracking error, and improved the reference tracking
overshoot, rise time, settling time, and steady-state error, performance of the robot manipulator. Future work might be
even though they are not readily observed because of the the design of a model-based (Takagi-Sugeno) fuzzy
structure of the input signal. As a result, the fuzzy approach controller scheme which includes several uncertainties.
2018 Global Smart Industry Conference (GloSIC)
Fig. 7. (a) Angular position (q1) and velocity (qd1) of link-1 versus time, (b) Angular position (q2) and velocity (qd2) of link-2 versus time