Homework 4 Solution
Homework 4 Solution
Homework 4 Solution
HOMEWORK 4 Solution
Date Assigned: December 10, 2020, Thursday
Due Date: December 17, 2020, Thursday, until 23:59 (on METU-Class)
Prepared by: Alara Karaman
Instructions
• You should submit your homework using the assignment link on METU-Class ME 301 page before the
due date as a zip file named as HW4_ME301_StudentName_StudentNumber. The zip file should
involve the source codes of your programs and the homework report in .pdf format named as
HW4_ME301_StudentName_StudentNumber.pdf
• Your homework should be prepared neatly. The discussions should be clear and concise.
• Homeworks for this course are individual assignments. Although you might have discussions with your
friends and the instructor, you are expected to prepare your solution for these problems on your own.
• Scan your homework neatly and upload to Metu-Class before due date.
Problem 1
1/10
a. Write down the scalar velocity loop equations in terms of the dimensions and the position
variables of the mechanism.
b. Determine an equation(s) which yield the singular position(s) of the mechanism if the input is
𝜃12 .
c. Sketch the mechanism at the singular position(s).
Solution:
2/10
b. Equations (1.5) and (1.6) can be written in matrix form as
The first singular position of the mechanism occurs when the determinant of the coefficient
matrix of the above equation is zero.
So, one of the singular positions of the mechanism occurs when 𝑠34 = 0.
Now consider equations (1.7) and (1.8), which can be written as
In the above expression we consider that 𝜃̇14 has been obtained from equation (1.9). The
other singular position(s) of the mechanism are obtained by equating the determinant of the
coefficient matrix of equation (1.10) to zero.
−𝑏 𝑠𝑖𝑛𝜃15 −1
| 5 | = 𝑏5 𝑐𝑜𝑠𝜃15 = 0
𝑏5 𝑐𝑜𝑠𝜃15 0
𝑐𝑜𝑠𝜃15 = 0
𝜋 3𝜋
So, the other singular positions of the mechanism, occur when 𝜃15 = or 𝜃15 = . Note that 𝑏5
2 2
cannot be zero.
Alternative Solution: One may write the equations (1.5)-(1.8) in a matrix form (where the
unknowns are 𝑠̇34 , 𝜃̇14 , 𝜃̇15 and 𝑠̇16 and obtain the singular positions by setting the determinant
of the coefficient matrix equal to zero. But in this case a 4x4 matrix is considered and taking its
determinant symbolically, may be difficult.
c. The figure of the problem is not a scaled one, so showing the singularities on it may not be
possible. However, the three singular positions of the mechanism have been drawn in a scaled
form as shown below.
3/10
Figure 1 Singularity when 𝑠34 = 0
3𝜋 𝜋
Figure 2 Singularity when 𝜃15 = Figure 3 Singularity when 𝜃15 =
2 2
4/10
Problem 2
Consider the planar mechanism in Homework 3. The mechanism is driven with constant
𝑟𝑎𝑑
angular velocity 𝜃̇12 = 𝜔12 = 3 (𝐶𝐶𝑊). The dimensions of the mechanism are
𝑠
5/10
f. Using the expressions obtained in part (c), plot the variations of the x & y components of the
linear velocity of point G with respect to 𝜃12 for full rotation of link 2 (𝜃12 = 0,2,...,360°).
g. Using the expressions obtained in part (d), plot the variations of the acceleration variables with
respect to 𝜃12 for full rotation of link 2 (𝜃12 = 0,2,...,360°).
Notes:
Solution:
a. Recall the loop closure equation of the mechanism from Homework 3 Solutions.
𝜋
𝑏4 𝑒 𝑖𝜃14 + 𝑠43 𝑒 𝑖(𝜃14 − 2 ) + 𝑏3 𝑒 𝑖𝜃14 = 𝑐1 + 𝑏1 𝑖 + 𝑏2 𝑒 𝑖𝜃12
Simplifying the expression yields,
(𝑏3 + 𝑏4 )𝑒 𝑖𝜃14 − 𝑠43 𝑖𝑒 𝑖𝜃14 = 𝑐1 + 𝑏1 𝑖 + 𝑏2 𝑒 𝑖𝜃12
Take the derivative of the equation with respect to time.
𝑖𝜃̇14 (𝑏3 + 𝑏4 )𝑒 𝑖𝜃14 − [𝑖 2 𝜃̇14 𝑠43 𝑒 𝑖𝜃14 + 𝑠̇43 𝑖𝑒 𝑖𝜃14 ] = 𝑖𝑏2 𝜃̇12 𝑒 𝑖𝜃12
Simplifying the expression gives,
[𝜃̇14 (𝑏3 + 𝑏4 ) − 𝑖𝜃̇14 𝑠43 − 𝑠̇43 ]𝑖𝑒 𝑖𝜃14 = 𝑖𝑏2 𝜃̇12 𝑒 𝑖𝜃12
Note that, 𝜃14 is already known; therefore, it is possible to divide the both sides of Equation by
𝑖𝑒 𝑖𝜃14
b. The velocity variables 𝜃̇14 and 𝑠̇43 can be obtained by solving the Equations (2.1) and (2.2).
From equation (2.2), 𝜃̇14 can be directly written as,
6/10
Substituting the expression for 𝜃̇14 ,
𝑠̇43 = −𝑏2 𝜃̇12 𝑐𝑜𝑠(𝜃12 − 𝜃14 ) + [−𝑏2 𝜃̇12 𝑠𝑖𝑛(𝜃12 − 𝜃14 )/𝑠43 ](𝑏3 + 𝑏4 )
Simplifying the expression,
𝑏2 𝜃̇12
𝑠̇43 = − [𝑠43 𝑐𝑜𝑠(𝜃12 − 𝜃14 ) + (𝑏3 + 𝑏4 )𝑠𝑖𝑛(𝜃12 − 𝜃14 )]
𝑠43
c. The position of the point G can be written as,
𝑟𝐺 = 𝑏2 𝑒 𝑖𝜃12 − (𝑏3 + 𝑐3 )𝑒 𝑖𝜃14
Taking the derivative of 𝑟𝐺 with respect to time,
⃗ 𝐺 = 𝑖𝑏2 𝜃̇12 𝑒 𝑖𝜃12 − 𝑖𝜃̇14 (𝑏3 + 𝑐3 )𝑒 𝑖𝜃14
𝑉
Writing the real and imaginary parts yields,
𝑉𝐺𝑥 = −𝑏2 𝜃̇12 𝑠𝑖𝑛𝜃12 + 𝜃̇14 (𝑏3 + 𝑐3 )𝑠𝑖𝑛𝜃14
d. The acceleration variables 𝜃̇14 and 𝑠̇43 can be obtained by means of two ways. The first method
is to differentiate the velocity loop closure equation and solving for 𝜃̇14 and 𝑠̇43 . The second
method is to differentiate the velocity variables with respect to time directly.
Differentiating the velocity loop closure equation with respect to time yields
𝜃̈14 (𝑏3 + 𝑏4 ) − 𝑖(𝜃̈14 𝑠43 + 𝜃̇14 𝑠̇43 ) − 𝑠̈43 = 𝜃̈12 𝑏2 𝑒 𝑖(𝜃12 −𝜃14 ) + 𝜃̇12 𝑖(𝜃̇12 − 𝜃̇14 )𝑏2 𝑒 𝑖(𝜃12 −𝜃14 )
𝜃̈14 (𝑏3 + 𝑏4 ) − 𝑠̈43 = 𝜃̈12 𝑏2 𝑐𝑜𝑠(𝜃12 − 𝜃14 ) − 𝜃̇12 (𝜃̇12 − 𝜃̇14 )𝑏2 𝑠𝑖𝑛(𝜃12 − 𝜃14 ) (2.3)
−𝜃̈14 𝑠43 − 𝜃̇14 𝑠̇43 = 𝜃̈12 𝑏2 𝑠𝑖𝑛(𝜃12 − 𝜃14 ) + 𝜃̇12 (𝜃̇12 − 𝜃̇14 )𝑏2 𝑐𝑜𝑠(𝜃12 − 𝜃14 ) (2.4)
Note that 𝜃̇12 is constant; hence, 𝜃̈12 = 0. Substituting 𝜃̈12 = 0 and solving 𝜃̈14 from Equation
(2.4) gives,
1
𝜃̈14 = − (𝜃̇ (𝜃̇ − 𝜃̇14 )𝑏2 𝑐𝑜𝑠(𝜃12 − 𝜃14 ) + 𝜃̇14 𝑠̇43 )
𝑠43 12 12
7/10
Note that the position analysis must be performed prior to the velocity and acceleration analysis.
In the following parts, only the script necessary for the calculation and plotting of the
corresponding variables are given.
e. MATLAB Script for the velocity analysis part:
% Velocity Analysis
% theta14d = omega14, s43dot = v43
omega12 = 3;
omega14 = - omega12 * b2 * sin(theta12-theta14) ./ s43;
v43 = - (omega12 * b2 ./ s43).*(s43.*cos(theta12-
theta14)+(b3+b4)*sin(theta12-theta14));
% Plots
figure
subplot(2,1,1),plot(theta12*180/pi,omega14,'Linewidth',2);
title('\omega_{14} vs \theta_{12}');
xlabel('\theta_{12} [deg]');
xlim([0,360]);
ylabel('\omega_{14} [rad/s]');
grid on;
subplot(2,1,2),plot(theta12*180/pi,v43,'Linewidth',2);
title('v_{43} vs \theta_{12}');
xlabel('\theta_{12} [deg]');
xlim([0,360]);
ylabel('v_{43} [mm/s]');
grid on;
8/10
f. MATLAB Script for the calculation of the velocity of point G:
% Velocity of Point G
vGx = -omega12 .* b2 * sin(theta12) + omega14 .* (b3+c3) .* sin(theta14);
vGy = omega12 .* b2 * cos(theta12) - omega14 .* (b3+c3) .* cos(theta14);
figure
subplot(2,1,1),plot(theta12*180/pi,vGx,'Linewidth',2);
title('v_{Gx} vs \theta_{12}');
xlabel('\theta_{12} [deg]');
xlim([0,360]);
ylabel('v_{Gx} [mm/s]');
grid on;
subplot(2,1,2),plot(theta12*180/pi,vGy,'Linewidth',2);
title('v_{Gy} vs \theta_{12}');
xlabel('\theta_{12} [deg]');
xlim([0,360]);
ylabel('v_{Gy} [mm/s]');
grid on;
9/10
g. MATLAB Script for the acceleration analysis part:
% Acceleration Analysis
% theta14doubledot = alphadot, s43doubledot = a43
alpha14 = (-1./s43).*(b2 * omega12 .*(omega12 - omega14).*cos(theta12-
theta14) + omega14.* v43);
a43 = omega12 .*(omega12 - omega14) * b2 .* sin(theta12-theta14) + alpha14
* (b3+b4);
figure
subplot(2,1,1),plot(theta12*180/pi,alpha14,'Linewidth',2);
title('\alpha_{14} vs \theta_{12}');
xlabel('\theta_{12} [deg]');
xlim([0,360]);
ylabel('\alpha_{14} [rad/s^2]');
grid on;
subplot(2,1,2),plot(theta12*180/pi,a43,'Linewidth',2);
title('a_{43} vs \theta_{12}');
xlabel('\theta_{12} [deg]');
xlim([0,360]);
ylabel('a_{43} [mm/s^2]');
grid on;
10/10