Modelling and control of 5DOF Robot Arm using Neuro-Fuzzy Controller

DOI : 10.17577/IJERTV1IS7315

Download Full-Text PDF Cite this Publication

Text Only Version

Modelling and control of 5DOF Robot Arm using Neuro-Fuzzy Controller

Modelling and control of 5DOF Robot Arm using Neuro-Fuzzy Controller

Ch Ravi Kumar

Dr. K R Sudha

D V Pushpalatha

Aditya Inst. Of Tech.

Dept. of Electrical Engg.

Dept. of Electrical Engg.

and Management

Andhra University

Andhra University

Tekkali, AP,INDIA

Visakhapatnam, AP, INDIA

Visakhapatnam, AP, INDIA

Keywords: 5 DOF Robot Arm, DenavitHarterberg representation, DC Servo motor, PID Controller, Neuro-Fuzzy Controller

  1. Fig 1.1 Lynx-6 Robot Arm

    These joints are of two types revolute or rotatory (Human joints) and prismatic or sliding joints. The forward and inverse kinematics of robot arm manipulator are derived based on DenavitHarterberg (DH) representation [1] [2] [3]. Forward kinematics derives the angle of rotation of link if the position of the arm is defined. The inverse kinematics derives the position if the angle of link is defined. Further the D.C. Servo motor model is obtained. Now the position of robot manipulator arm is being controlled by the

    traditional PID Controller, NeuroFuzzy logic controller. The results obtained are comparedby the specifications like peak overshoot, rise time, steady state error. The typical 5 DOF Lynx-6 robot manipulator arm is shown in fig.1.1.

  2. Robot manipulator is named according to number of DOF, which refers to the number of joints. The robot manipulator arm has 5 joints, which mean the robot has 5DOF. Each one of these joints has a motor allowing the motion to the commanded link. The motors have feedback sensors to measure the output (e.g. position, velocity, and torque) at each instant. Links and joints form a kinematic chain connected to ground from one side, and the other is free. At the end of the open side, the end-effector (e.g. gripper, welding tool, or another tool) is used to do some tasks. The kinematics robot manipulator is derived by using DenavitHarterberg (DH) representation. In determining the forward kinematic (FK) where the robot manipulator end-effector should be known. This means what rigid motion each joint effect on its link to obtain the desired configuration. The configuration space of the end-effector contains the transformation matrix T that relates the position and orientation of the end-effector.

    The following equation explains the forward kinematic problem.

    F(, , . ) = [x, y, z, R]

    Where , , . are the input variables,

    [x, y, z] are the desired position and the

    desired rotation. The second problem is determining the inverse kinematic (IK), which calculates the value of each joint variable if the desired position and orientation of end-effector are known. That means if the final link configuration is known, what is the possible configuration (e.g. solutions) of the robot manipulator to move the end effector of the robot arm to desired position and orientation in space. Inverse kinematic problem may express mathematically as follows:

    F(x, y, z, R) = , , . ]

    For serial manipulators with revolute or prismatic joints the FK is derived using procedures such as the DH convention matrix, but in the parallel manipulator, the forward kinematic be not easy to be solved due to the complexity of the robot manipulator. Therefore, it may solved by using a set of nonlinear equations. On the other hand, solving the IK for parallel manipulator is easier than FK solution, and there are many solutions to achieve the desired task.

    1. Obtain the DH parameters.

      To describe the kinematics of any robot, four parameters are given for each link , ,

      di, ,where two of them described the link,

      and the others describe the connection with other links.

      DH PARAMAETER REPRESENTATION

      Link Joint

      1 0-1

      2 1-2

      3 — — — — —

      i (i-1)-i where is the distance along x i from o i to

      the intersection of X i and Z i- 1axes, d i is the distance along Z i- 1from o i- 1to the intersection of x i and Z i- 1axes,i is the angle between Z i- 1and Z i measured about Xi , and is the angle between X i- 1and X i

      measured about Z i- 1.

    2. Obtain link transformation matrices Ai (A matrices).

      After obtaining the table of DH convention, a series of homogeneous matrices can be derived depending on the number of the DOF. The transformation matrix for each joint from joint 1 to the joint i can be calculated as:

      Ai= Rot(z, )Trans (z, di)Trans(x, ) Rot(x, )

      Or in terms of the full matrices

      Ai =

      i.e.

      Ai =

    3. Obtain the manipulator transformation matrixHoi(H matrix).

      After the homogeneous matrix has been defined for each link of the robot manipulator, simple solution to find the total homogeneous matrix for robot manipulator with i-links is accomplished by multiplying all the transformation matrices from A1to A i as follows:

      Hoi = A1,A2,A3Ai

      The matrices from A1to Ai are the transformation matrices from joint 1 to joint I and Hoiis the location of the ith coordinate frame with respect to the base coordinate.

    4. Calculate the position and orientation of the end-effector.

      The general homogeneous matrix for the desired position and orientation of the end- effector that obtained from as follows:

      H = A1,A2…Ai

      Where the rotation matrix and the position vector of endeffecter is as follows:

      Rd=

      P

  3. DC Motor Modelling

    Generally, modelling refers to system (e.g. plant) description in mathematical terms, which characterizes the input-output relationship [39]. Direct current (DC) motor is a common actuator found in many mechanical systems and industrial applications such as industrial and educational robots. DC motor converts the electrical energy to mechanical energy. The motor directly has a rotary motion, and when combined with mechanical part it can provide translation motion for the desired link. The fig.3.1 shows the schematic diagram of D.C. Motor is shown.

    The transfer function of motor speed is derived as

    In addition, the transfer function of the motor position is determined by multiplying the transfer function of the motor speed by the term 1/s.

    Fig.3.2 shows the block diagram of D.C. motor.

    The state space model of DC motor could be expressed as follows:

    X dot (t) = Va(t)

    Y (t) = [0 1 0]

    The following table shows DC motor parameters and values chosen for motor simulation.

    DC Motor parameters and values

    Parameter Value

    Moment of inertia Jm=0.000052 Kg.m2 Friction coefficient Bm=0.01 N.ms

    Back EMF constant Kb=0.235 Nm/A Torque constant Kt=0.235 Nm/A Electric resistance Ra=2.0 ohm Electric inductance La=0.23 H

    Gear ratio gr

    Load torque Tl(t)

    Angular speed Wm rad/sec

    On substituting the parameter values in the transfer function we get

  4. PID controller is considered the most control technique that is widely used in control applications. A huge number of applications and control engineers had used the PID controller in daily life. PID control offers an easy method of controlling a process by varying its parameters. Since the invention of PID control in 1910, and Ziegler-Nichols (ZN) tuning method in 1942 [7] and [38], PID controllers became dominant and popular issues in control theory du to simplicity of implementation, simplicity of design, and the ability to be used in a wide range of applications [40]. Moreover, they are available at low cost. Finally, it provides robust and reliable performance for most systems if the parameters are tuned properly. According to different sources like JEMIMA2, PID controllers or PID variations (P, PD, and PI) are widely used in more than 90% to 95% of control applications. However, the PID controller has its own limitation; the PID performances can give only satisfactory performance if the requirement is reasonable and the process parameters variation are limited. The general form of the PID controller in continuous time formula given as:

    The transfer function of the PID controller in parallel is:

    For the robot manipulator if the PID controller is used as controller plant, the final transfer function of the disturbance compensator, G cd (s), is given by:

    Using SIMULINK, the DC motor model with disturbance rejection control using PID controller is created as shown in Figure 5. This model includes all transfer functions that are derived previously. The feed forward transfer function is also added to this model.Fig. Block diagram of PID controller The following simulated model represents IJC for N joint robot manipulator (e.g. revolute or prismatic) joints is accomplished by using N block diagrams with respect to the number of the independent joints. Designing these controllers accomplished using SIMULINK. The main system consists of several levels. As a case study, the independent joint control is implemented to 5DOF robot arm. For each individual motor the angle and load disturbance are given and position each motor is observed. The following plots show the positions of each individual motor for step input with various values of disturbances. We can also observe the specifications like the overshoot, rise time, steady state error etc.

  5. Recently, the combination of neural networks and fuzzy logic has received attention. Neural networks bring into this union the ability to learn, but also require an excessive number of iterations for training of complex systems. Fuzzy logic offers a system model based on membership functions and a rule base, but requires an explicit stating of the IF/THEN rules. Several methods for combining neural networks and fuzzy logic have been studied (Khan, 1993) (Lin and Song, 1994) (Nauck, et. al., 1993). In this paper we implement the inference stage of a fuzzy system using a neural network. The given figure illustrates the system architecture for the described combination of neural networks and fuzzy logic. By replacing the rule base of a fuzzy system with a trainable neural network, complex input-output relationships can be achieved which cannot be easily specified by IF/THEN rules. With fuzzification and

    defuzzification stages augmenting a neural network, significant improvements in the training time, in the ability to generalize, and in the ability to find minimizing weights can be realized. Furthermore, the fuzzy membership functions give the designer more control over the neural network inputs and

    link2 and the link1 axis

    3 a small change in the angle between

    link3 and the link2 axis

    4 a small change in the angle between

    link4 and the link3 axis

    5 a small change in the angle between

    link5 and the link4 axis

    outputs.It should be noted that NN contributes to determination of constructing the fuzzy

    rules

  6. 40

    35

    Fig. 5.1 A Fuzzy system with Neural network 30

    rule base

    25

    Step Response oftheta 1

    PID

    Neuro-fuzzy

    Fuzzy Rules

    Input

    Output

    Parameter Tuning

    20

    A n g l e

    15

    10

    5

    0

    0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

    Time

    ANN

    Fig. 5.2 Model of Neuro-Fuzzy controller

    INPUTS TO THE NEURO-FUZZY CONTROLLERS

    1 Joint angle of link1 to the base

    2 Joint angle of link2 from link1s axis 3 Joint angle of link3 from link2s axis 4 Joint angle of link4 from link3s axis 5 Joint angle of link5 from link4s axis

    Fig.6.1 PID&Neuro-Fuzzy controllers Step response without disturbance.

    PID

    Neuro fuzzy

    40

    35

    30

    25

    20

    15

    10

    5

    OUTPUTS TO THE NEURO-FUZZY CONTROLLERS

    Input Description

    1 a small change in the angle between

    link1 and the base

    2 a small change in the angle between

    0

    0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

    38

    Neuro fuzzy PID

    [2] J. Angeles, Fundamentals of Robotic Mechanical Systems: Theory, Methods, and

    36 Algorithms, 2nd Edition, Springer, 2003.

    34

    32 [3] J.J. Crage, Introduction to Robotics

    30

    Mechanics and Control, 3rd Edition, Prentice Hall, 2005.

    28

    26 [4] K. H. Kalil, Nonlinear Systems, 3rd

    24 Edition, Prentice-Hall, 2002.

    22

    20

    0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

    Fig.6.2 PID&Neuro-Fuzzy controllers Step response with disturbance of 0.5 N-m.

  7. Robotics has become recently an interesting area of research. The objective of this paper is to control the 5DOF Lynx6 robot arm to reach the specified location with minimum error while meeting certain specification In this paper, we study the robot manipulator from two sides: modelling and control. Modelling process includes kinematic analysis and DC motor modelling. The desired tasks were accomplished using three stages: the first stage was to provide systematic rules for analysing forward and inverse kinematics solutions for the robot manipulator with revolute or prismatic joints using DH parameters, then analysing the mathematical model of the DC motor in both frequency and time domins. In the second stage, we discussed the problem of control techniques. PID controller was applied, to control the robot manipulator, then the Neuro-Fuzzy controller is applied to robot manipulator . In the third stage, we compared the results of using the two controllers for controlling the robot manipulator. All simulations were presented using MATLAB and SIMULINK, which are used widely in control applications.

[1] M.W. Spong, S. Hutchinson and M. Vidyasagar, Robot Modeling and Control, 1st Edition, Jon Wiley & Sons, Inc, 2005.

  1. R. Gorez, A Survey of PID Auto-Tuning Methods, Journal A, Vol. 38, No. 1, pp. 3 10, 1997.

  2. K.J. Astrom and T. Hagglund, PID Controllers: Theory, Design and Tuning, 2nd Edition, Research Triangle Park, NC: Instrument Society of America, 1995.

  3. J.G. Ziegler and N.B. Nichols, Optimum Settings for Automatic Controllers, Transaction American Society of Mechanical Engineering., Vol. 64, pp. 759768, 1942.

  4. L.A. Zadeh, Fuzzy Sets, Information and Control., Vol. 8, pp. 335353, 1965.

  5. E.H. Mamdani, Applications of fuzzy logic to approximate reasoning using linguistic synthesis, IEEE Transactions on Computers, Vol. 26, No. 12, pp. 1182

    1191, Dec. 1977.

  6. G.K.I. Mann, B.-G. Hu, and R.G. Gosine, Analysis of Direct Action Fuzzy PID Controller Structures, IEEE Transactions on Systems, Man, and Cybernetics, Part B, Vol. 29, No. 3, pp. 371388, Jun. 1999.

  7. Z.-Y. Zhao, M. Tomizuka and S. Isaka, Fuzzy Gain Scheduling PID Controller, IEEE Transactions on Systems, Man., Cybernetics Society, Vol. 23, No. 5, pp. 13921398, Sep/Oct. 1993.

  8. A. Visioli, Tuning of PID Controllers with Fuzzy Logic, IEEE Proceedings Control Theory and Applications.Vol. 148, No. 1, pp. 1-8, 2001.

  9. X. Wang, X. Chen, W. Jia, Y. Sun and H. Pu, Forward Kinematics Analysis and 3- Dimmision Gait Simulation of a MiniQuad Walking Robot, IEEE International

    Conference on Mechatronics and Automation, pp. 19321937, Aug. 2007.

  10. S. Annand, Software for Control and Dynamic Simulation of Unimate Puma 560 Robot, MS Thesis, The Faculty of the College of Engineering and Technology, Ohio University, June 1993.

  11. S. Elgazzar, Efficient Kinematic Transformations for the Puma 560 Robot, IEEE Journal of Robotics and Automation.,Vol. 1, No. 3, pp. 142151, 1985.

  12. A.C. Soh, E.A. Alwi, R.Z. Abdul Rahman and L.H. Fey, Effect of Fuzzy Logic Controller Implementation on a Digitally Controlled Robot Movement, Kathmandu University Journal of Science, Engineering and Technology., Vol. I, No. V, pp 2839, Sep. 2008.

  13. D.P. Kwok, Z.Q. Sun and P. Wang, Linguistic PID Controller for Robot Arms, IEEE International Conference, Vol. 1, pp. 341346, Mar. 1991.

  14. G.M. Khoury, M. Saad, H.Y. Kanaan and

    C. Asmar, Fuzzy PID Control of a Five DOF Robot Arm, Journal of Intelligent and Robotic systems., Vol. 40, No. 3, pp.299 320, 2004.

  15. S.G. Anavatti, S.A. Salman and J.Y. Choi, Fuzzy + PID Controller for Robot Manipulator, International Conference on Computational Intelligence for Modelling Control and Automation., pp. 75, Dec. 2006.

  16. B.W. Bekit, L.D. Seneviratne, J.F. Whidborne and K. Althoefer, Fuzzy PID Tuning for Robot Manipulators, IEEE Industrial Electronics Society, in 24th Annual Conference., Vol. 4, pp. 24522457, Sep. 1998.

  17. B. Koyuncu and M. Güzel, Software Development for the Kinematic Analysis of a Lynx 6 Robot Arm, Proceedings of World Academy of Science, Engineering and Technology., Oct. 2007.

  18. O. Gürdal, M. Albayrak and T. Aydogan, Computer Aided Control and Simulation of

Robot Arm Moving in Three Dimension, Gazi University and Suleiman Demirel University., Turkey.[23] A.Y. -Nones, Heterogeneous Modeling& Design of Robot Arm Control System, University of Puerto Rico, 2004.

[24] A. Delibasi, T. Türker and G. Cansever, Real Time Dc Motor Position Control by Fuzzy Logic and PID Controllers Using Labview,[25] R.E. Samin, M.S. Ramli and

M.A. Ahmad, Performance Comparison of PD-type Fuzzy Logic Controller of USBM Simplified Model, Proceedings of The 2nd International Power Engineering and Optimization Conference., pp. 217221, 2008.

  1. W. Li, "Design of a Hybrid Fuzzy Logic Proportional plus Conventional Integral- Derivative Controller", IEEE Transaction on Fuzzy Systems., Vo1. 6, No. 4, pp.449463, Nov 1998.

  2. Y.C. Yung and C.Y. Chen, PD type vs. PID type Fuzzy Controller, IEEE 10th Region Conference Melbourne, Australia., Vol.1, pp. 341-345, Nov. 1992.

  3. S. Chopra, R. Mitra and V. Kumar, Fuzzy Controller: Choosing an Appropriate and Smallest Rule Set, International Journal of Computational Cognition, Vol. 3, No. 4, Dec.2005.

  4. N. Khong, A. Kanch, S. Nopna, S. Tanut,

    S. Tuny and R. Kagawa, Control of the Position Dc Servo Motor by Fuzzy Logic, IEEE Proceedings of TENCON., Vol. 3, pp.354357, Sep.2000.

  5. A.G. Sreenatha and P. Makarand, Fuzzy Logic Controller for Position Control of Flexible Structures, Acta Astronaut journal., Vol. 50, No. 11, pp. 665671, 2002.

  6. J.S. Surdhar and A.S. White, A Parallel Fuzzy-Controlled Flexible Manipulator Using Optical Tip Feedback, Journal of Robotics and Computer Integrated Manufacturing, Vol. 19, No. 3, pp. 273282, 2002.

  7. M. Nil, U. Yuzgec, M. Sonmez and B. Cakir, Fuzzy Neural Network Based Intelligent Controller For 3-DOF Robot Manipulators, the 5th International

    Symposium on Intelligent Manufacturing Systems., pp. 884895, May.2006.

  8. R.P. Copeland and K.S. Rattan, A Fuzzy Logic Supervisor for PID Control of Unknown Systems, IEEE International Symposium on Intelligent Control., pp. 2226, Aug.1994.

  9. M. Dotoli, B. Maione and B. Turchiano, Fuzzy-Supervised PID Control: Experimental Results, EUNITE the 1st European Symposium on Intelligent Technologies, Hybrid Systems and their Implementation on Smart Adaptive Systems, pp. 3135, 2001

  10. L. Wang, M. Tian and Y. Gao, Fuzzy Self-adapting PID Control of PMSM Servo System, IEEE International Electric Machines & Drives Conference., Vol. 1, pp. 860863, May.2007.

  11. K.K. Ahn and N.B. Kha, Position Control of Shape Memory Alloy Actuators Using Self Tuning Fuzzy PID Controller, IEEE Conference on Industrial Electronics and Applications., pp. 15, May.2006.

Leave a Reply