Ch.02 Position Analysis
Ch.02 Position Analysis
Mechanisms and Robots Analysis with MATLAB® 1 Position Analysis Mechanisms and Robots Analysis with MATLAB® 2 Position Analysis
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
1 2
Mechanisms and Robots Analysis with MATLAB® 3 Position Analysis Mechanisms and Robots Analysis with MATLAB® 4 Position Analysis
𝑦
2
(𝑥𝐴 − 𝑥𝐵 )2 +(𝑦𝐴 − 𝑦𝐵 )2 = 𝐴𝐵 2 = 𝑙𝐴𝐵 (2.1) 𝑦 𝐵 Give 𝑙𝐵𝐶 = 1𝑚 𝑦 𝐵
𝑙2
𝐵
𝑦𝐵 − 𝑦𝐴 𝜔1 𝜑1 = 600 𝜔1 𝐶 𝑖−1
𝜔 𝑚 = 𝑡𝑎𝑛𝜑 = (2.2) 𝜑1 𝐶
Find 𝑥𝐶 ? 𝐴
𝜑1 𝐶
𝑥
𝐴 𝜑 𝑥𝐵 − 𝑥𝐴 𝐴 𝑥
𝐶2 𝐶1
𝑂 𝑥 𝑦 = 𝑚𝑥 + 𝑛 (2.3) Solution 1
𝑙𝐶 𝐶 𝑙𝐶 𝐶 2
𝑖−1
1
𝑖−1
𝜑1 = 𝜔1 𝑡
(𝑥𝐴 ,𝑦𝐴 ) : the coordinates of the joint 𝐴 position of 𝐵
(𝑥𝐵 ,𝑦𝐵 ) : the coordinates of the joint 𝐵 𝑥𝐵 = 𝑙1 cos𝜑1 , 𝑦𝐵 = 𝑙1 sin𝜑1
𝑙𝐴𝐵 : the length of the link 𝐴𝐵 position of 𝐶
𝜑 : the angle of the link 𝐴𝐵 with the horizontal axis 𝑂𝑥 𝑦𝐶 = 0
𝑚 : the slope of the link 𝐴𝐵 (𝑥𝐶 − 𝑥𝐵 )2 +(𝑦𝐶 − 𝑦𝐵 )2 = 𝑙22
𝑛 : the intercept → solving and choosing 𝐶 𝑖 = 𝐶: • known the previous step 𝐶 𝑖−1
• if 𝑙𝐶1 𝐶 𝑖−1 < 𝑙𝐶2 𝐶 𝑖−1 then 𝐶 = 𝐶1
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
3 4
Mechanisms and Robots Analysis with MATLAB® 5 Position Analysis Mechanisms and Robots Analysis with MATLAB® 6 Position Analysis
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
5 6
1
12/17/2019
Mechanisms and Robots Analysis with MATLAB® 7 Position Analysis Mechanisms and Robots Analysis with MATLAB® 8 Position Analysis
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
7 8
Mechanisms and Robots Analysis with MATLAB® 9 Position Analysis Mechanisms and Robots Analysis with MATLAB® 10 Position Analysis
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
9 10
Mechanisms and Robots Analysis with MATLAB® 11 Position Analysis Mechanisms and Robots Analysis with MATLAB® 12 Position Analysis
11 12
2
12/17/2019
Mechanisms and Robots Analysis with MATLAB® 13 Position Analysis Mechanisms and Robots Analysis with MATLAB® 14 Position Analysis
3
𝑦
𝐶
xD=0.30; yD=0.30;
2
𝐷
omega1=10;
𝐵
𝜑1
𝐴 𝜔1 𝑥
(𝑥𝐶 − 𝑥𝐵 ) +(𝑦𝐶 − 𝑦𝐵 ) = 𝐵𝐶 2
2 2
xB=AB*cos(phi1); yB=AB*sin(phi1);
(𝑥𝐶 − 𝑥𝐷 )2 +(𝑦𝐶 − 𝑦𝐷 )2 = 𝐶𝐷 2 eqnC1=(xCsol-xB)^2+(yCsol-yB)^2==BC^2;
eqnC2=(xCsol-xD)^2+(yCsol-yD)^2==CD^2;
solC=solve(eqnC1,eqnC2,xCsol,yCsol);
solving the above equation using matlab xCpositions=eval(solC.xCsol); xC1=xCpositions(1); xC2=xCpositions(2);
eqnC1=(xCsol-xB)^2+(yCsol-yB)^2==BC^2; %define equation 1 yCpositions=eval(solC.yCsol); yC1=yCpositions(1); yC2=yCpositions(2);
eqnC2=(xCsol-xD)^2+(yCsol-yD)^2==CD^2; %define equation 2 % Choose the solution point C1
solC=solve(eqnC1,eqnC2,xCsol,yCsol); %solve equation if xC1<xD xC=xC1; yC=yC1; else xC=xC2; yC=yC2; end
xCpositions=eval(solC.xCsol); %assign variable x
xC1=xCpositions(1); xC2=xCpositions(2); plot([xA,xB],[yA,yB],'r-o',[xB,xC],[yB,yC],'b-o',[xC,xD],[yC,yD], 'g-o')
yCpositions=eval(solC.yCsol); %assign variable y axis equal
yC1=yCpositions(1); yC2=yCpositions(2);
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
13 14
Mechanisms and Robots Analysis with MATLAB® 15 Position Analysis Mechanisms and Robots Analysis with MATLAB® 16 Position Analysis
15 16
Matlab command
AB=0.15; BC=0.35; CD=0.30; CE=0.15;
phi1=45;
xA=0; yA=0;
xD=0.30; yD=0.30;
[xB,yB,xC,yC,xE,yE]=t2022(xA,yA,xD,yD,AB,BC,CD,CE,phi1);
plot([xA,xB],[yA,yB],'r-o',[xB,xC],[yB,yC],'b-o',[xC,xD],[yC,yD],'g-o',
[xC,xE],[yC,yE],'g-o')
axis equal
HCM City Univ. of Technology, Faculty of Mechanical Engineering Nguyen Tan Tien
17