Simulating 3r robot dynamics using imported cad in Maplesim

pdf 13 trang Gia Huy 19/05/2022 2380
Bạn đang xem tài liệu "Simulating 3r robot dynamics using imported cad in Maplesim", để tải tài liệu gốc về máy bạn click vào nút DOWNLOAD ở trên

Tài liệu đính kèm:

  • pdfsimulating_3r_robot_dynamics_using_imported_cad_in_maplesim.pdf

Nội dung text: Simulating 3r robot dynamics using imported cad in Maplesim

  1. Thu Dau Mot University Journal of Science – Volume 2 – Issue 4-2020 Simulating 3r robot dynamics using imported cad in Maplesim by Nguyen Van Tan (Thu Dau Mot University) Article Info: Received 20 Oct 2020, Accepted 25 Nov 2020, Available online 15 Dec, 2020 Corresponding author: tannv@tdmu.edu.vn ABSTRACT With the development of information technology, many applications of robots are increasingly being applied to support research, learning, and teaching. This paper mainly investigates the modeling and simulation of a robotic arm with 3 degrees of freedom (dofs) for different applications. First, Kinematics and dynamics model of the robot based on the standard Denavit Hartenberg (D-H) modeling method, where the forward kinematics of robot is analyzed and computed to obtain by using the inverse kinematics, and then the solution of the robot dynamics is derived. Second, a CAD model of the robot is designed on CATIA software to convert to MapleSim software to simulation and control. Final, numerical simulation is presented to display results. This work provides a potential basis for the realization of the robotic arm in the industrial, education, and research field, which is of great significance for improving manufacturing efficiency and support teaching and research in the robot field. Keywords: Inverse kinematics, Forward Kinematics, MapleSim, Robot arm 1. Introduction With the development of information and mechanical technologies, robots have been invented and applied to the manufacturing process, which can improve the production efficiency, enhance productivity, improve the working conditions and accelerate the industrial automation [1-2]. Several other applications of robot arms were used in the 401
  2. Nguyen van Tan– Volume 2– Issue 4-2020, p. automotive industry and are often used for welding, painting, loading, and unloading [3] as well as in the medical field [4, 5]. The robotic arm extends and expands the functions of the hand, foot, and brain. It can replace people's work in harsh environments such as danger, harmfulness, toxic, low temperature, and high heat: instead of people doing heavy and monotonous repetitive work, which can improve labour productivity and ensure product quality. Its application has been extended to the field of space exploration, deep-sea development, nuclear science research and medical welfare. A robot arm is a new technology emerging in the field of modern automatic control and has become an important part of modern industrial systems [6]. The robot arm consists of the robot arm, controller, servo drive system, detection and sensing components. It is a type of automated production equipment with features such as human-like operation, automatic control, reprogrammable, and can complete various operations in three- dimensional space. To support robot research, learning, and research, many applications software support the design, calculation, analysis, simulation, and optimization of the robot control process has been rapidly developing in it. Some software is used a lot such as Simmechanics to simulation robot arm which was shown in [7, 8], and MSC Adams to analysis and simulation robot arm that was also shown in [9, 10], then, MapleSim has used analysis, dynamics simulation and optimization shown in [11-13]. Particularly, with LMS AmeSim, Simcenter, and MSC Adams, the simulation results are treated as real results that can be accepted in [14, 15]. Figure 1. The robot arm model 3R In this paper, An application study of the Maplesim software to control and simulate a 3R robot arm. First, the robot arm model is built in CAD software such as Solidwork or Inventor, or Catia that is shown in Figure 1. From this, this model is imported to MapleSim. And then, establish constraints, the relationships of robot arm components 402
  3. Thu Dau Mot University Journal of Science – Volume 2 – Issue 4-2020 as well as DC motor actuators to control the robot arm. Here, PID controllers are also utilized in the control process. 2. Denavit and Hartenbergh Representation The kinematic equations use matrix algebra to build constrain functions between the joint variables and the world coordinate location of the end-effector (position and orientation) based on the spatial configuration of a particular robot arm. A systematic and generalized approach to represent the kinematic equations of a serial link robot arm was proposed by Denavit & Hartenbergh (D-H). The notation will be explained on a sample robot arm which is illustrated in figure 2. The robot system has three degrees of freedom, based on the transformation matrix Ai (i = 1, 2,3) described by the D-H notation, we can get the pose of the robot's end-effector only given the individual joint variables and the rod length parameters of the robot [7]. Figure 2. Coordinate system of robot Figure 3. Structure kinematic parameters for the general link ith i The homogenous coordinate transformation matrix Ti 1 can be written as C S  C S  S ai C  i i i i i i S C C S C a S i i i  i i  ii  i T (1.1) i 1 0 S C d iii 0 0 0 1 where CSCS cos ; sin  ; cos ; sin ii  i i i i i i and ai, di, αi,i are the geometric parameters of the relative ith joint as shown in Fig 3. 403
  4. Nguyen van Tan– Volume 2– Issue 4-2020, p. They can be defined as: αi is the angle between zi-1 and zi about xi di is the distance between origin oi-1 and the intersection of the zi-1 axis with the xi axis along zi-1 θi is the angle between xi-1 and xi about zi-1. ai is the distance between origin Oi and the intersection of the zi-1 axis with the xi axis along xi th If a position vector Pi is given in the i coordinate frame, then it can be expressed in the th (i-1) coordinate system as the vector Pi-1 by i pi 11 T i p i (1.2) The homogenous transformation matrix from the nth coordinate frame to the base i coordinate frame can be determined by multiplying Ti 1 (i = 1, 2, , n) together in sequence, such as nn12 TTTT0 0 1 n 1 (1.3) th Therefore, a position vector pn of the n coordinate frame can be determined for the base coordinate system as: on 1 pn T00 p (1.4) Using the D-H procedure, the coordinate frames are defined and the structural geometric parameters of the three-link robot arm are presented in Table 1. TABLE 1. Joint-Link Parameters for 3R Robot arm Link ai i di i 0 1 0 90 d1 1 2 a2 0 0 2 3 a3 0 0 3 i Therefore, the coordinate transformation matrices Ti 1 (i = 1, 2, 3) relating the coordinates of the ith frame to those of the (i-1)th frame can be written using equation (1.1) as follows 404
  5. Thu Dau Mot University Journal of Science – Volume 2 – Issue 4-2020 CS00 1 i SC00 1 1 i T0 (1.5) 0 1 0 d i 0 0 0 1 C S 0 a2 C  2 2 2 S C0 a S 2 2  22  2 T1 (1.6) 0 0 1 0 0 0 0 1 C S0 a C 3  33  3 3 S C 0 a3 S  T2 3 3 3 0 0 1 0 (1.7) 0 0 0 1 3 The homogenous transformation matrix T0 from the coordinate frame attached to the end-effector to the base coordinate frame can be represented as 3 1 2 3 TTTT0 0 1 2 C C  C  S  S  C  a32 C  a C  123 123 1 1 23 2 (1.8) S C  S  S  C  S  a32 C  a C  123 123 1 1 23 2 S C0 a S a S d 23  233  23 2  2 1 0 0 0 1 Where CS cos(  ); sin(   ); 232 3 23 2 3 Based on this transformation matrix, the forward kinematics can determine a precise coordinates of the robot arm in the workspace according to the value of each joint angle variable. The geometric approach is applied to find the inverse kinematics of the three-link robot arm shown in Fig 4. A point P representing a given position of the end-effector, which is the origin of the last coordinate frame concerning the base coordinate system, can be expressed by T p px p y p z (1.9) 405
  6. Nguyen van Tan– Volume 2– Issue 4-2020, p. Figure 4. Describe the P position in the original coordinate system a) P position in X0Y0 plan b) P position in l plan Figure 5. Describe the P position in the 2D coordinate system (where l is the plan of (z0, P)) From (1.8) and (1.9), we have C a C a C 1 32  23  2 px p py S a32 C  a C  (1.10) 1 23 2 pz a S a S d 323 2 2 1 From Fig 4 and Fig 5, we have 22 O0 Pxy p x p y (1.11) POPx 01 xy cos (1.12) POPy 01 xy sin (1.13) 406
  7. Thu Dau Mot University Journal of Science – Volume 2 – Issue 4-2020 Therefore, 1 variable can be calculated as 1 py 1 tan (1.14) px Moreover, in Fig. 5. We have 1 1 1 1 O0302232 O O O O O acos 23 a cos  23  (1.15) OOOOOOOO 0z 3 0 1 1 z 2 1 z 3 (1.16) d1 a 2sin 2 a 3 sin  2  3 where 1 2 2 O0 O 3 O 0 Pxy p x p y; O 0 O z 3 p z Solve equations (1.15) and (1.16) we have 2 22 2 2 px p y p z d1 a 2 a 3 cos3 q (1.17) 2aa23 2 sin3 1 q (1.18) Therefore, θ3 can finally be calculated as 1 q 2  tan 1 (1.19) 3 q and θ2 can be calculated as 1  2  tan 1  (1.20) 23  where 22 2 22 2 2 ppxy p p p d a a tan 1 ;  x y z 1 3 2 22 2 pdz 1 2a p p p d 31x y z 3. Import Cad Robot Model To MapleSim MapleSim software was used for the dynamic analysis of the robot model. The basic pre- requisites includes geometric correctness and the validity of constraints were done in Catia software. The material of the robot parts (as this determines the mass and other basic dynamic parameters) is equally significant as observed during reverse engineering (RE). Once this is done in CATIA the “Motion Study” itself is capable of exporting these details along with the geometric model to MapleSim. Verification of the coherence in inertial parameters can be confirmed in both MapleSim and CATIA platforms 407
  8. Nguyen van Tan– Volume 2– Issue 4-2020, p. Figure 6. Robot arm model in MapleSim To import CAD to Maplesim, from the menu, you choose a file then select Import CAD as shown in figure 6. Inertial parameters of the robot parts are calculated automatically as shown in figure 7. Figure 7. The scheme describes the inertial mass of the base plate of the robot Then, the Robot model is converted to MapleSim software and implement connection components with joints and actuators to perform the control process as shown in figure 8. 408
  9. Thu Dau Mot University Journal of Science – Volume 2 – Issue 4-2020 Figure 8. Scheme of the robot arm in Maplesim to control Three actuators are used to control the robot by three DC motors shown in figure. 9 where the DC motors are controlled by three PID controllers Figure 9. Control Diagram of DC motor with PID controller 4. Simulation Results By experience to choose parameters of PID controllers as: Kp1=15; Ki1=5, Kd1=2; Kp2=30; Ki2=5, Kd2=10; Kp3=50; Ki3=8, Kd3=2; 409
  10. Nguyen van Tan– Volume 2– Issue 4-2020, p. The response result of the first joint is shown in figure 10 Figure 10. Response angle and desired angle of the first joint The response result of the second joint is shown in figure 11 Figure 11. Response angle and the desired angle of the second joint The response result of the third joint is shown in figure 12 Figure 12. Response angle and desired angle of the third joint 410
  11. Thu Dau Mot University Journal of Science – Volume 2 – Issue 4-2020 The simulation result of the robot arm is shown in figure 13. 3D simulation robot result is stimulated when given three angles of three axes shown in figure 10, figure. 11, and figure 12. The trajectory of the end-effector is displayed by the red trajectory as shown in figure 13. Figure 13. The simulation result of the robot in 3D Maplesim 5. Conclusion The rotation angles of the robot arm joints are calculated based on inverse kinematics of the D-H convention. The robot is designed in CATIA to easy converted to Maplesim software. The robot arm is set up in maplesim to control and simulation. Simulation results were obtained as expected under using PID controller that shown in the figures from figure 10 to figure 13. Adknowledge: This Research is support by Truong Dai hoc Thu Dau Mot, Binh Duong province, Viet Nam References 411
  12. Nguyen van Tan– Volume 2– Issue 4-2020, p. [1] Y. He et al., (2019). Dynamic Modeling, Simulation, and Experimental Verification of a Wafer Handling SCARA Robot With Decoupling Servo Control. IEEE Access, vol. 7, pp. 47143-47153, doi: 10.1109/ACCESS.2019.2909657. [2] Taylan Das M, Canan Dulger L., (2005). Mathematical Modelling, simulation and experimental verification of a SCARA Robot. Simulation Modelling Practice and Theory, Vol 13, pp. 257-271;. [3] W. Jin, et al., (2020). Wire Arc Additive Manufacturing of Stainless Steels: A Review. Appl. Sci. , 10(5), 1563; [4] M. Wei, Q. Liu, and , et al., (2015). Recent development of mechanisms and control strategies for robot-assisted lower limb rehabilitation. Mechatronics 31, 132-145 [5] S. S. KAMLESH, A. KUMAR, and et al., (2016). Review on Application of Robot Arm in Medical Field with Special Forcus on Image Guided Biopsies. International Journal of Mechanical And Production Engineering, 4(11), [6] Toz, Met in, and Serdar Kucuk (2010). Dynamics simulation toolbox for industrial robot robot arms. Computer Applications in Engineering Education, 18(2), 319-330. [7] J. Liu, Q. Luo, (2019). Modeling and Simulation of Robotic Arm in MATLAB for Industrial Applications. 11th International Conference on Intelligent Human-Machine Systems and Cybernetics (IHMSC), 978-1-7281-1859IEEE DOI 10.1109/IHMSC.2019.00086 [8] J. ZATOPEK, and et al., (2018). Dynamic simulation of the CAD model in SimMechanics with multiple uses. Turkish Journal of Electrical Engineering & Computer Sciences, urk J Elec Eng & Comp Sci ., 6: 1278 { 1290 [9] T, Amit., “Forward Kinematic Analysis, Simulation & Workspace Tracing of Anthropomorphic Robot Robot arm By Using MSC. ADAMS”. International Journal of Innovative Research in Science, Engineering and Technology. 04. Doi: 10.15680/IJIRSET.2015.0401009. [10] Ratiu, Mariana, and et al., (2018). Modeling in ADAMS of a 6R industrial robot. MATEC Web of Conferences. Doi: 10.1051/matecconf/201818402006. [11] J. Hřebíček, and et al., “Modelling with Maple and MapleSim”. Proceedings 22nd European Conference on Modelling and Simulation ©ECMS Loucas S. Louca, Yiorgos Chrysanthou, Zuzana Oplatková, Khalid Al-Begain (Editors) ISBN: 978-0-9553018-5-8 / ISBN: 978-0-9553018-6-5 (CD) [12] D. Wright and O. Soroka (2012). Modeling and simulation of a linear piezoelectric stepper motor in maplesim. IEEE International Ultrasonics Symposium, Dresden, pp. 2746-2749, doi: 10.1109/ULTSYM.2012.0688. [13] Korobkine, A., Boimer, R., Pantelic, V., Shah, S. et al., (2018). Automatic Calibrations Generation for Powertrain Controllers Using MapleSim. SAE Technical Paper [14] P, Aron, and et al., (2015). Real-time co-simulation platform for electromechanical vehicle applications). 9th International Symposium on Advanced Topics in Electrical Engineering, ATEE (2015). 240-243. Doi:10.1109/ATEE.2015.7133772. [15] X. Feixiang and et al., (2018). Modeling and co-simulation based on Adams and AMESim of pivot steering system. The Journal of Engineering. Doi: 10.1049/joe.2018.9018. 412
  13. Thu Dau Mot University Journal of Science – Volume 2 – Issue 4-2020 413