Documentos de Académico
Documentos de Profesional
Documentos de Cultura
DOI: 10.59920/DTRS4197
Tema A3d Mecatrónica: Robótica y control
a) Universidad Nacional Autónoma de México, Facultad de Ingeniería, Av. Universidad 3000, Ciudad Universitaria, Coyoacán, CDMX, CP 04510
*Autor contacto. Dirección de correo electrónico: pologlez@unam.mx
RESUMEN
El presente trabajo describe el análisis, diseño e implementación de un controlador inteligente para control de
posición de un par cinemático para un robot manipulador en configuración SCARA mediante un control por lógica
difusa. El control propuesto no considera el modelo matemático para su funcionamiento ya que una de las
características principales de las estrategias de control inteligente es que han demostrado ser eficaces en controlar
sistemas no lineales complejos sin necesidad del conocimiento del modelo matemático. Se propone una estrategia de
control descentralizado donde cada articulación del robot es controlada independientemente utilizando el mismo
algoritmo para cada par cinemático, por lo que las pruebas son realizadas en una articulación. Resultados de
simulación e implementación son presentados. En ambos casos se muestra una convergencia más rápida y suave en
comparación con un controlador PID utilizado como referencia. El controlador desarrollado demostró ser una
estrategia robusta para este tipo de sistemas no lineales.
Palabras Clave: Mecatrónica, Control por lógica difusa, Robot SCARA, FPGA, Control inteligente.
ABSTRACT
This paper describes the analysis, design, and implementation of an intelligent controller for position control of a
kinematic pair for a manipulator robot in SCARA configuration through fuzzy logic control. The proposed control
does not consider the mathematical model for its operation, since one of the main characteristics of intelligent control
strategies is that they have proven to be effective in controlling complex non-linear systems without the need for
knowledge of the mathematical model. A decentralized control strategy is proposed where each joint of the robot is
controlled independently using the same algorithm for each kinematic pair, so the tests are performed on one joint.
Simulation and implementation results are presented. In both cases a faster and smoother convergence is shown
compared to a PID controller used as a reference. The developed controller proved to be a robust strategy for this
type of nonlinear systems.
Keywords: Mechatronics, Fuzzy Logic Control (FLC), SCARA robots, FPGA, Intelligent control.
model and controller design for a Cartesian SCARA position control of manipulator robots in general
robot with piezoelectric sensors and actuators. Omodei purpose SCARA configuration, since it results in a
et al. [12] have presented and compared three control algorithm that is easy to implement in an FPGA
algorithms for the geometry and parameter development platform, which is a digital programmable
identification of industrial robots. Experimental results card in VHDL language that can be implemented in
were obtained for a SCARA IBM 7535 robot. A CRS practically any FPGA card from any manufacturer with
A 251 robot was simulated with the TELEGRIP slight adjustments. The implementation of this type of
software. Er et al. [13] have studied the design, digital controllers represents an improvement
development, and implementation of a Hybrid compared to analog control techniques. The results
Adaptive Fuzzy Controller (HAFC) suitable for real- show that the designed control fulfills the objective of
time industrial applications. stabilizing a kinematic torque of a SCARA robot in
In addition, one of the most important decisions is to shorter operating times than those obtained with a
select the best control technique, according to the classic PID controller.
requirements of the specific design. Several studies This paper is structured as follows: Section 2
have been developed in control design and describes the overall operation of the SCARA robot in
implementation i.e., Oktarina et al. [24] Developed a section 3 the FLC controller design is presented, in
fuzzy logic controller employed to ensure the section 4 the steps for implementation are described,
effectiveness in detecting the target object. PID section 5 illustrates the evaluation between simulation
controller is designed to ensure the smoothness and and experimental results. Finally, in section 6
stability of robot motion, Kot et al. [23] presents a conclusions are presented.
SCARA robot with a control system based on a
Raspberry Pi microcontroller, Tay et al. [25] presents
a complete review of SCARA robots control system, 2. System description
the reviewed controllers include PID Control, fuzzy
logic control, neural networks control, sliding mode SCARA robot is built using incremental encoders as
control, impedance control, adaptive control and position sensors, giving joint position feedback to the
robust control, Zhen et al. [27] propose a novel practical system, this feedback, is compared to the desire
robust control algorithm for a SCARA robot. position reference, which is obtained according to the
An alternative control technique is the Fuzzy Logic inverse kinematics model. This mathematical model is
Control (FLC), because is used in complex systems obtained on base to the robot architecture. For the
(non-linear) in which there is no general solution to the SCARA configuration the mathematical model is
mathematical models that describe them, in [31-32] deduced from its geometric analysis [27-30]. The
investigations on FLC applied to SCARA robots are inverse kinematic mathematical model is shown in eqs.
presented. (1)-(3).
Even, sometimes it is impossible to model such The SCARA robot is generally suitable for small
systems mathematically. In this case, the experts part insertion tasks for assembly such as electronic
experience and knowledge are used to accomplish component insertion. [14-16].
certain tasks. Fuzzy controllers use rules to describe the
relationship between input variables and system
outputs [4]. One advantage of using modeling strategies
based on FLC is to reduce the design and modeling time y L
of the systems to be controlled. FLC has shown q1d = tan −1 d − sin −1 2 sin (1)
particularly good features in implementation on xd r
robotics, like smooth convergence and easiness of
configuration in FPGA (Field Programmable Gate
Array) platforms. xd2 + yd2 − L12 − L22 (2)
Currently, the control applied to industrial robots q2 d =
solves the problem of controlling the position and 2 L1 L2
movement speed of the manipulator, however, it is
important to develop new control techniques that have
improvements in response time, accuracy, and q3d = zd − L0
robustness to reduce in this way, work times in (3)
industrial production, as well as a possible reduction in Where:
accuracy errors that sometimes occur with current
q1d, is the joint 1 desired angular position, q2d, is the
control algorithms. In the present work, a control
strategy is proposed that is a viable alternative for the joint 2 desired angular position, q3d, is the joint 3
The output variable works in a range from 2000 to minimum and maximum membership are needed
4000, which is used to modify the duty cycle of the (when error is almost zero or maximum). Also, middle
motor drivers PWM as control action. The output membership functions are triangular with maximum
variable of the FLC, represented by membership overlap, because in this way, we have a monotonic
functions correspond to a percent amount of PWM system response.
signal labeled as: Trapezoidal membership functions of one
NT represents no torque, whose range value goes dimension are specified by four parameters {a, b, c, d}
from 2000 to 2600 and corresponding to a 50% PWM as shown in eq. (6). Triangular membership functions
duty cycle. ST represents small torque, whose range of one dimension are specified by three parameters {a,
value goes from 2300 to 3000 and corresponding to a b, c} as shown in eq. (7).
60% PWM duty cycle. MT represents medium torque,
whose range value goes from 2600 to 3300 and 0, 𝑥≤𝑎
𝑥−𝑎
corresponding to a 70% PWM duty cycle. MLT , 𝑎≤𝑥≤𝑏
𝑏−𝑎
represents medium large torque, whose range value 𝑡𝑟𝑎𝑝𝑒𝑧𝑜𝑖𝑑(𝑥; 𝑎, 𝑏, 𝑐, 𝑑) = 1, 𝑏 ≤ 𝑥 ≤ 𝑐 (6)
goes from 3000 to 3600 corresponding to an 80% PWM 𝑑−𝑥
, 𝑐≤𝑥≤𝑑
𝑑−𝑐
duty cycle. Finally, LT, which represents large torque,
{ 0, 𝑑≤𝑥
whose range value goes from 3300 to 4000 and
corresponding to a 95% PWM duty cycle.
0, 𝑥≤𝑎
𝑥−𝑎
NE SE ME MLE LE , 𝑎≤𝑥≤𝑏
𝑏−𝑎
𝑡𝑟𝑖𝑎𝑛𝑔𝑙𝑒(𝑥; 𝑎, 𝑏, 𝑐) = 𝑐−𝑥 (7)
, 𝑏≤𝑥≤𝑐
𝑐−𝑏
µA(x)
{ 0, 𝑐≤𝑥
DV = 2 (14)
control action to the DC motors, each motor performs
the movement to the desire joint position respectively.
N Figure 6 shows the main blocks of the FPGA control
system which consist in: a) quadrature decoder, b)
(19)
6. Results
7. Conclusions
To compare the classical PID and FLC, we present
simulation results. Simulink diagram is shown in
This paper presents the implementation of FLC
figure 9. The PID controller and the FLC controller
System on FPGA platform for a cinematic joint for
are designed in this model with transfer function of
a SCARA robot. Reducing the development, verify
the motor model represented in 14700/den block
and evaluation time for the implementation. Once
those values are obtained by substitution of
the robot architecture is defined the inference rules
numerical parameters in transfer function model of
of the FLC are designed, and with the FLC system
the motor. The output is expressed in time, and it is
defined, the programing in VHDL code is very
shown in figure 10. The settling time in FLC es 0.5s
straight forward based on FLC system components
and in PID is 1.3s, the overshoot in FLC is about
and specifications. The main goal of this work is to
design and implement a FLC that reduce the SCARA robot by using solid dynamics and verification
convergence time in this robot architecture by matlab/simulink,” European Journal of Scientific
compared to other works presented in the Research, ISSN, pp. 388-405.
references, also the implementation in a FPGA [9] C. Urrea, and J. Kern, (2012) “Modeling, simulation
and control of a redundant SCARA-type manipulator
platform is performed. The FLC is robust because robot,” International Journal of Advanced Robotic
it doesn’t need to have information about the Systems, vol. 9.
model, or even no information at all about the [10] P. Bhatia, J. Thiunarayanan, N. Dave, An expert
dynamical model. system-based design of SCARA robot, Expert Systems
Another advantage is that we don’t need the with Applications 15 (1998) 99–109.
dynamic robot model, which is a nonlinear model, [11] S.S. Ge, T.H. Lee, J.Q. Gong, A robust distributed
only inverse kinematics are necessary to stablish controller of a single-link SCARA/Cartezian smart
the control position for each joint. Making a few materials robot, Mechatronics 9 (1999) 65–93.
changes in parameters and code design is easy to [12] A. Omodei, G. Legnani, R. Adamini, Three
methodologies for the calibration of industrial
develop other robot architectures, so this control manipulators: experimental results on a SCARA robot,
logic is adaptable to other robot architectures. Journal of Robotic Systems 17 (6) (2000) 291– 307.
Simulation and experimental results show the [13] M.J. Er, M.T. Lim, H.S. Lim, Real time hybrid
effectiveness of the FLC system compared to PID adaptive fuzzy control of a SCARA robot,
controllers. For future work is considered the Microprocessors and Microsystems 25 (2001) 369–378.
development of the project towards future [14] R.C. Dorf, Concise International Encyclopedia of
applications and improvements to the system, such Robotics—Applications and Automation, John Wiley
as the use of a haptic interface for tele-robotic and Sons Inc., 1990.
operation and include a neural network controller [15] S.Y. Nof, Handbook of Industrial Robotics, John
Wiley and Sons, 1985.
to improve the system. [16] R.I. Eugene, Mechanical Design of Robots,
We want to express our gratitude to the project McGraw-Hill, 1988.
PAPIIT IT101321 for the funding granted. [17] Chaudhary, H., Panwar, V., Prasad, R. et al. J Intell
Manuf (2016) 27: 1299. https://doi.org/10.1007/s10845-
014-0952-1 “Adaptive neuro fuzzy based hybrid
7. References force/position control for an industrial robot
manipulator”.
[1] Jian-Fu Weng, Bo-Yi Li, Kuo-Lan Su, (2017) [18] Philip T. Vuong, Asad M. Madni, Jim B. Vuong
“Design and Implementation of the SCARA Robot Arm” (2014) “VHDL Implementation for a Fuzzy Logic
International Conference on Artificial Life and Robotics. Controller”. ResearchGate, University of California, Los
[2] Francisco G. Rossomando, Carlos M. Soria (2016) Angeles.
“Adaptive Neural Sliding Mode Control in Discrete [19] Yen, V.T., Nan, W.Y. & Van Cuong, P. Neural
Time for a SCARA robot arm” IEEE Latin America Comput & Applic (2018).
Transactions ( Volume: 14 , Issue: 6 , June 2016. https://doi.org/10.1007/s00521-018-3520-3. “Recurrent
[3] Yayun LI, Guohui ZENG, Weijun WANG, (2015) fuzzy wavelet neural networks based on robust adaptive
“The research on end-effector position and orientation sliding mode control for industrial robot manipulators”.
error distribution of SCARA industrial robot”. [20] Mario Pena, J. A. Gomez, Roman Osorio-
International Journal of research in Engineering and Comparan, Ismael Lopez-Juarez, Victor Lomas,
Science (IJRES). Humberto Gomez, Gaston Lefranc (2015) “Fuzzy Logic
[4]Yousra A. Mohammed, Leena K. Hashim. (2007) for Omni directional Mobile Platform Control
“Implementing Fuzzy Logic Controller Using VHDL”. Displacement using FPGA and Bluetooth” IEEE Latin
Eng. & Technology, Vol. 25, No. 9. America Transactions Volume: 13, Issue: 6 June 2015.
[5] Oleksandr Stepanenko, Lilian A. Bonev (2018) [21] Clarence W. de Silva (2018) “Intelligent Control
“Novel 4-DOF SCARA Parallel Robot With Cylindrical Fuzzy Logic Applications” CRC Press.
Workspace” ASME The american society of mechanical [22] Yan-Jun Liu, Shaocheng Tong (2015) “Adaptive
engineers. fuzzy control for a class of unkown nonlinear dynamical
[6] Jian-Fu Weng, Bo-yi Li, Kuo-lan Su, (2017) “Desing systems” Science Direct, Fuzzy sets and systems,
and implementation of the SCARA robot” International Volume 263, 15 march 2015, pages 49-70.
Conference on Artificial life and robotics, january 19-22 [23] Kot, A., Nawrocka, A., IEEE Industry Applications
Miyazaki, Japan. Society, Institute of Electrical and Electronics Engineers,
& Akademia Górniczo-Hutnicza im. S. Staszica w
[7] Morteza Shariatee, Alireza Akbarzadeh, Ali Krakowie. Wydział Inżynierii Mechanicznej i Robotyki.
Mouzavi, Salman Alimardani (2014) “Design of an Department of Process Control. (n.d.). Proceedings of
economical SCARA robot for industrial applications” the 2019 20th International Carpathian Control
Ferdowsi university of Mashhad, Iran. IEEE. Conference (ICCC) : Kraków - Wieliczka, Hotel
[8] M. S. Alshamasin, F. Ionescu, and R. T. Al-Kasasbeh, Turówka, Poland, May 26-29, 2019.
(2009) “Kinematic modeling and simulation of a