RPRT 3
RPRT 3
<<ROBOTICS LAB>>
LAB No. 03
LAB Name: Introduction to MATLAB Software and Mathematical Modeling of
Arm Matrix of Alpha-II Robot
List of Figures
Figure 1 Interface of MATLAB ...................................................................................................... 3
Figure 2 ARM Matrix ....................................................................................................................... 6
Abstract
The main objective of this lab was to analyze the MATLAB software and then using D-H
parameters of alpha-II robot its ARM Matrix is computed by suitable simulation through
MATLAB code. Firstly, basic commands and functions used in MATLAB were understood and
then D-H parameters were input with theta 1 to theta 5 as variable and for user’s values of these
theta, corresponding ARM Matrix was obtained for alpha-II robot.
Introduction
In the field of kinematics and robotics, it is critical to comprehend the spatial connections inside a
robotic arm. A methodical way to describe these connections and capture the geometric and
kinematic characteristics of every joint in a robot is to use the Denavit-Hartenberg (DH)
parameters. In this context, the potent numerical computing environment MATLAB becomes
indispensable, providing a solid foundation for mathematical modelling and analysis.
This lab explores the possibilities of employing user-defined DH parameters in MATLAB to
analyze robotic arm setups. Our study focuses on the calculation of the arm matrix, which is a
basic model of the arm's transition between successive joints. This technique, in contrast to static
models, introduces changing thetas, enabling real-world application and dynamic adaptation.
Code
%Define D-H parameters for all links
a= input ('th1:');
b= input ('th2:');
c= input ('th3:');
d= input ('th4:');
e= input ('th5:');
%Define for link 1
d1=215.0; %joint distance in (mm)
a1=0; %link length in (mm)
alpha1=-90*pi/180; %twist angle in (degrees)
%Transformation Matrices
T01=[cos(th1), -cos(alpha1)*sin(th1), sin(alpha1)*sin(th1), a1*cos(th1);
sin(th1), cos(alpha1)*cos(th1), -sin(alpha1)*cos(th1), a1*sin(th1);
0, sin(alpha1), cos(alpha1), d1; 0, 0, 0, 1];
Output
Discussion
The investigation of MATLAB as a tool for the analysis of user-defined Denavit-Hartenberg (DH)
parameters in robotic arm configurations has demonstrated its ability to handle intricate kinematic
calculations. We successfully generated the arm matrix using MATLAB code, which included the
variable thetas to represent dynamic joint angles. Because of its versatile syntax and matrix
manipulation features, MATLAB is a useful tool for modelling a wide range of robotic systems,
including those with different DH parameter sets.
The code's performance demonstrated how well MATLAB can convert theoretical DH parameters
into useful applications, facilitating the smooth transition between mathematical representation
and actual robotic arm scenarios. Variable thetas' dynamic nature offers a more realistic modelling
method, allowing for the investigation of various arm configurations and a more thorough
comprehension of the system behavior.
Conclusion
To sum up, MATLAB is an effective and adaptable tool for assessing and simulating the
kinematics of robotic arms, especially when working with user-defined DH parameters and
changing thetas. Its effectiveness in bridging the gap between theoretical notions and real-world
applications in the field of robotics is demonstrated by the successful derivation of the arm matrix
using MATLAB code. This work contributes to our understanding of MATLAB's kinematic
analysis capabilities and offers an invaluable tool for engineers and researchers who want to apply
DH parameters to real-world robotic systems with varying joint angles.