- Open Access
- Total Downloads : 32
- Authors : Sareena A , Rikesh P. Mathew
- Paper ID : IJERTV8IS050358
- Volume & Issue : Volume 08, Issue 05 (May 2019)
- Published (First Online): 21-05-2019
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License: This work is licensed under a Creative Commons Attribution 4.0 International License
Application of PID Controller and Nonlinear Sliding Mode Control on Two Link Robotic Manipulator
Sareena A
Electrical and Electronics Engineering Lourdes Matha College of Science and Technology
Trivandrum,India
Rikesh P. Mathew
Electrical and Electronics Engineering Lourdes Matha College of Science and Technology
Trivandrum,India
Abstract:- Robotic manipulators plays an important role in industrial autonomous manufacturing. Non linearity as well as parameter variations or uncertainties caused by inaccurate system modeling, insufficient parameter identification, external disturbances and environmental conditions are the most challenging issues in robot engineering. The dynamic model of the two link robotic manipulator is done using the Euler- Lagrange equation. A conventional PID controller and a robust nonlinear sliding mode control is introduced to control the motion of the end effector at specific position for pick and place tasks. Comparative study is done and the results shows that Sliding mode control surpass PID control with minimum tracking error. Simulation results validate that the chattering of control input can be mitigated effectively using SMC
Keywords:- Dynamic model ; robot manipulator; PID control; Sliding Mode Control
-
INTRODUCTION
Contemporary industrial robots are programmable machines which can perform distinct operations by simply improving stored data, a trait that has emerged from the application of numerical control. Remote manipulators are the origin of todays industrial robots. Its a device that performs a task at a distance. Robotic manipulators are capable of performing repetitive tasks at speeds and accuracies that far exceed those of human operators. They are widely used in several fields such as painting and welding in manufacturing processes, free floating space manipulators in astronautics, underwater robot manipulators for subsea interventions for ocean developments, limb rehabilitation manipulators in medical field, ammunition auto loading manipulator in artillery or tank weapons. The major problem faced by industrial manipulators are the vibration of arm during high speed movement. Positions and velocities of end effector are to be controlled digitally to perform the desired tasks accurately and reliably. Each motion or degree of freedom (D.O.F.) of the manipulator is positioned using a separate position control system. All the motions are coordinated by a supervisory computer to achieve the desired speed and positioning of the end-effector.
Pawan Singh Yadav and Narinder Singh et.al [1] developed H-infinity controller and -synthesis controllers for two link rigid manipulator (TLRM). The dynamics of TLRM is derived using Lagrange-Euler method. The results validate that both controllers are capable of stabilizing the manipulator very effectively. The transient response of H controller is having a slight longer settling time which is
improved by using -synthesis controller, but this comes on the cost of disturbance rejection which is slightly poor in – synthesis controller. A combination of a feedback linearization control and an MPC control approach for a two- link robot arm were proposed by El-Hadi Guechi and Samir Bouzoualegh et.al [2]. The study shows that the proposed MPC control approach gives a better performance than the LQ optimal control approach. Moreover both proposed approaches (MPC control and LQ control) give a better system performance than conventional PID controller. In recent years, nonlinear and adaptive back stepping control design schemes have been widely developed and applied in various nonlinear systems, including manipulators. Fang- Shiung Chen and Jung-Shan Lin et.al [3] developed a nonlinear back stepping control design scheme with a velocity observer for the trajectory tracking control of a robot manipulator which has exact model knowledge. The exponential stability of the resulting closed loop system is demonstrated via Lyapunov stability theory with a useful lemma in [11]. The proposed nonlinear back stepping control design not only stabilized the robot system, but also all the tracking errors are forced to converge to zero exponentially. Lafmejani and Zarabadipour et.al [4] modeled, simulated and controlled 3-DOF articulated robot manipulator by extracting the kinematic and dynamic equations using Lagrange method. The model is further linearized with feedback and a PID controller is implemented to track a desired trajectory. It was concluded in the research work that robot manipulator is difficult to control as result of complexity and nonlinearity associated with the dynamic model.
Motivated by an endeavor to solve the trajectory tracking control problem of two link manipulator, a sliding mode control approach and a conventional PID controller is presented in this paper. The effectiveness of the proposed control schemes for the pick and place activities of two link manipulator was illustrated by simulations in MATLAB SIMULINK.
-
DYNAMIC MODELING OF TWO LINK MANIPULATOR
A large number of control problems for mechanical systems are based on controlling the position or location of a mass using a force or a torque as the input variable. Dynamics of a robot arm is explicitly derived based on the Euler- Lagrange formulation. Figure 1 shows the dynamic model of a two link manipulator.
Where
g (q) is the gravitational torques vectors given by,
Where
Fig.1. Schematic diagram of two link manipulator
Positions of mass m1 and m2 are,
Velocities of mass m1 and m2 are,
(1)
(2)
(3)
(4)
and
is the control torque applied to the joints.
-
CONTROLLER DESIGN
The control of robotic manipulator to follow a desired trajectory is extremely a challenging problem. The dynamics of a two link robotic arm is highly nonlinear.
= (5)
(6)
=( ) (7)
(8)
Kinetic energy of individual links in an n-link arm is
(9)
Potential energy of individual link is given by
(10)
Lagrangian L is defined as the difference between kinetic and potential energy:
Controller formulation along with the integration of system dynamics is provided in this section. A PID and a variable structure Sliding Mode Controller is designed for trajectory tracking problem.
-
PID CONTROLLER
PID controllers are widely used in industrial manipulators due to their simple structure compared to other control algorithms. In industrial operations each joint of the robotic arm are independently controlled by PID algorithms.
General structure of PID controller for any input would be
(14)
PID controller for the two links of the manipulator is given by
(11)
With Lagrangian L, equations of motions can be computed, can be defined as
The complete system equations with control would be
(15)
(16)
(17)
(12) Therefore
The dynamic model of a robotic arm with two degrees of freedom (DOF) can be written as
(13)
Where denotes the link position, velocity and acceleration respectively.
M (q) is the symmetric nonsingular inertia matrix, given by
Complete system equations are
(18)
(19)
(20)
(21)
Where
C (q) is the Coriolis and centrifugal force matrix,
By using ode45 command in MATLAB the system of ordinary differential equations can be solved.
-
SLIDING MODE CONTROL
The Sliding Mode Controller approach is a discontinuous nonlinear controller, also called the variable structure control, is a typical robust control scheme. MC can be implemented to any dynamic system having equal number of outputs and
inputs. Precise modeling of the system is not possible due to unmodeled external forces, frictions which affect the stability. Sliding mode control is a robust and adaptive control which can deal with modeling inaccuracies suitable for nonlinear systems. The design procedure of SMC contains two steps:
-
Selection of sliding surface so as to achieve desired system characteristics when the system reaches the sliding surface
-
Selection of a control law such that the existence of sliding mode can be guaranteed.
-
A system with dynamics f and control input u,
(22)
Considering our 2nd order system:
(23)
For position and velocity control, we define sliding surface s as
+ (24)
TABLE 1 SIMULATION PARAMETERS
Simulation parameters
Parameter
Description
Value(Unit)
m1
Mass of link 1
0.5 kg
m2
Mass of link 2
0.5kg
l1
Length of the link1
1m
l2
Length of the link2
0.8m
g
Acceleration due to gravity
9.8
-
-
SIMULATION RESULTS AND DISCUSSIONS The proposed controllers are implemented and simulated,
and the results showed that the tracking error is considerably reduced.
The regulation curve of an uncompensated system without an initial condition of is shown in figure 2
Where =
Setting =0 and substituting (23) ,
+ =0 (25)
+ =0 (26)
+
Approximated control law that would achieve
+ (27)
Introducing the switching action will maintain system work in sliding surface
Fig.2.Regulation curve of uncompensated system
where
(28)
Its clearly understood from the figure that the system doesnot regulates without a controller.
-
PID Controller Results:
Overall control law can be expressed as
= + (29)
Where K is a diagonal controller discontinuity gain matrix. The elements of gain matrix must be decided suitably. The "sgn" function returns a vector with the sign of the elements of s. However, this "sgn" function results in a serious issue in SMC called chattering. The surface parameter si will never goes to zero rather they change from a small negative to small positive value. Significant fluctuations in the control command occurs due to magnifying term K in the control law. To overcome the effect of chattering, the discontinuity of the SMC caused by sign function must be replaced with a saturation function given by
(30)
The saturation function must be operated inside a boundary whose thickness is
Fig.3.Tracking error curve of link1 with PID controller
The tracking error response for link 1 using the PID controller is depicted in Fig.3, it is clear that the PID controller take at least 5 seconds to bring the arm at the desired position.
Fig.4. Tracking error curve of link2 with PID controller
Figure 4 shows the trajectory tracking error curve of link 2 with controller. The error between the trajectories settles down within 6.5 sec.
-
SLIDING MODE CONTROLLER RESULTS:
Fig.5.Tracking error curve of link1 with SMC controller
Figure 5 shows the trajectory tracking error curve of link 1 with SMC controller. The settling time of error curve is about
0.54 sec
Fig.6. Tracking error curve of link2 with SMC controller
The trajectory tracking error curve of link 2 with SMC controller is shown in figure 6. The error settles down within a duration of 0.71 sec.
Fig. 7. Sinusoidal Tracking curve of link 1
Sinusoidal trajectory tracking curve for link 1 is shown in figure 7. The result shows that within a fraction of second proper tracking is obtained with SMC controller.
Fig. 8. Sinusoidal Tracking curve of link 2
Figure 8 depicts that Link 2 follows the desired trajectory within a short duration of time than the time taken by the PID controller.
TABLE 2 STEP RESPONSE CHARACTERISTICS
Properties
PID
SMC
Settling time(sec)
5
7
0.58
0.69
Overshoot (%)
71
44
0
0
-
-
CONCLUSIONS
Control of robotic manipulator is a benchmark problem in control system. Dynamics of two link manipulator is complex and its highly nonlinear. In this paper, mathematical model of two link manipulator has been developed using Euler- Lagrangian method. Different control strategies such as conventional PID control and variable structure Sliding Mode control have been implemented for controlling the position of end effector. The variable structure control method is a robust method that appears to be well suited for robotic manipulators than PID controller for pick and place activities. Simulation results showed smooth control activity and excellent tracking performance with SMC controller.
REFERENCES
-
Pawan Singh Yadav and Narinder Singh, Robust Control of Two Link Rigid Manipulator, International Journal of Information and Electronics Engineering, Vol. 5, No. 3, May 2015
-
El-Hadi Guechi and Samir Bouzoualegh, MPC Control and LQ Optimal Control of A Two-Link Robot Arm: A Comparative Study, International Conference on Advanced Systems and Electric Technologies , Hammamet, Tunisia, 2225 March 2018; pp. 409414
-
Fang-Shiung Chen and Jung-Shan Lin, Nonlinear control design of Robotic manipulators with Velocity observers, 16th Triennial World Congress International Federation of Automatic Control,2005
-
Lafmejani, H. S. & Zarabadipour, H. Modeling , simulation and position control of 3dof articulated manipulator,.Indonesian Journal of Electrical Engineering and Informatics (IJEEI), 2(3), 132140.
-
David, I., and G. Robles. PID control dynamics of a Robotic arm manipulator with two degrees of Freedom. Control de Procesos y Robotica (2012): 1-7.
-
C.-T. Lin, K.-C. Liu, C.-W. Chung, and Y. Chang, Design of Sliding Mode Controller for Two-Link Robot Manipulator, in Robot, Vision and Signal Processing (RVSP), 2011 First International Conference on,2011, pp.9093.
-
V. Parra-Vega, S. Arimoto, Y. H. Liu, G. Hirzinger, and P. Akella,Dynamic sliding PID control for tracking of robot manipulators: theory and experiments, IEEE Transactions on Robotics and Automation, vol. 19, no. 6, pp. 967-976, 2003
-
H. F. Ho, Y. K. Wong, and A. B. Rad, Robust fuzzy tracking control for robotic manipulators, Simulation Modelling Practice and Theory, vol.15, no. 7, pp. 801-816, 2007.
-
J. Shah, S. S. Rattan and B. C. Nakra, Dynamic analysis Of two link robot manipulator for control design using computed torque control, International J. of Research in Computer Applications and Robotics, 3 (1) (2015) 52-59.
-
F. A. Lara-Molina, E. H. Koroishi and V. Steffen, Uncertainty analysis of a two-Link robot manipulator under fuzzy parameters, Robotics: SBR-LARS Robotics Symposium and Robocontrol (SBR LARS Robocontrol), Joint Conference on IEEE (2014) 1-6.
-
A. Abe, Minimum energy trajectory planning method for robot manipulator mounted on flexible base,Control Conference (ASCC) (2013) 1-7.
-
Y. F. Guo, B. L. Hou, X. Wang, Q. Q. Zhao and L. P. Yao, Nonlinear control of manipulator with base vibration and uncertain payload based on an implicit Lyapunov function method,IFToMM Wold Congress (2015) 256-260
-
M. Santhakumar, Investigation into the dynamics and control of an underwater vehicle-manipulator system, Modelling and Simulation in Engineering, 2-3 (2013) 1-13.
-
W. He, Y. Ouyang, and J. Hong, "Vibration control of a flexible robotic manipulator in the presence of input deadzone," IEEE Transaction on.
Industrial Informatics., vol. 13, no. 1, pp. 48-59, 2017
-
H. Wang and Y. Xie, "Prediction error based adaptive Jacobian tracking of robots with uncertain kinematics and dynamics," IEEE Transaction on Automatic Control, vol. 54, no. 12, pp. 2889-2894, 2009.