All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
…
Sandeep Prajapati
updated on 19 Mar 2021
Whitworth Quick Return Mechanism
Aim: Creating a MATLAB program for Simulation of Whitworth Quick Return Mechanism.
Objective:
Theory:
This mechanism changes the rotary motion to oscillatory motion like the crank and lever mechanism.
The difference between the crank and lever mechanism and the Whitworth mechanism is that in the Whitworth mechanism the return stroke is faster than the forward stroke while in the crank and lever mechanism the forward stroke is of the same speed as that of the return stroke.
Fig: Working of Whitworth Quick Return Mechanism
Parts used in Whitworth mechanism:-
1) Slotted Bar.
2) Slider
3) Crank – It will rotate.
Whitworth's quick return mechanism is the second inversion of the slider-crank mechanism in which the crank is fixed.
In this mechanism, the Slider in the slotted bar is connected to the crank. When the crank rotates, the slider will slide inside the slotter bar and the slotted bar will oscillate. As the slotted bar oscillate, the ram will move in a forwarding and backward direction.
The return stroke or ideal is faster than the forward stroke in this mechanism.
In the above figure, AP is the slotted bar and link 1, the CD is link 2, AC which is a crank is link 3 and link 4 is the slider.
In this mechanism, the link CD i.e link 2 forming the turning pair is fixed as shown in the figure above.
The crank AC revolves with uniform velocity with its center at A.
A sliding block attached to the crank pin at B slides along the slotted bar AP and thus causes Ap to oscillate about the pivoted pint A. A short link PR transmits the motion from AP to the ram which carries the tool and thus forward stroke and backward stroke is obtained.
The crank needs to rotate through an angle of ( β ) for the forward stroke and it needs to rotate through an angle of ( α ) for forwarding stroke.
As the crank moves with uniform angular velocity, the time taken to cover angle α will be less than the time taken to cover angle β. Hence time taken in return for stroke will be less than the time is taken in the forward stroke. In this way, the quick return mechanism works.
The following figure represent the length of arms as well as the angles of cranks and all arms:
Fig: Arm lengths and angles of crank & arms
In ΔΔ ABC
cos(π2+θ1)=l21+l22-l232⋅l1⋅l2cos(π2+θ1)=l21+l22−l232⋅l1⋅l2
l23=l21+l22-cos(π2+θ1)⋅2⋅l1⋅l2l23=l21+l22−cos(π2+θ1)⋅2⋅l1⋅l2
l23=l21+l22-sinθ1⋅2⋅l1⋅l2l23=l21+l22−sinθ1⋅2⋅l1⋅l2
l23=l21+l22-2⋅sinθ1⋅l1⋅l2l23=l21+l22−2⋅sinθ1⋅l1⋅l2 .................................................................(1)
X Co-ordinate of P
l3⋅cosθ2=l2⋅cosθ1l3⋅cosθ2=l2⋅cosθ1
θ2=cos-1(l2⋅cosθ1l3)θ2=cos−1(l2⋅cosθ1l3)..............................................................................(2)
l25⋅sin2θ1=l21+l22⋅sin2θ1-2⋅sinθ1⋅l1⋅l2l25⋅sin2θ1=l21+l22⋅sin2θ1−2⋅sinθ1⋅l1⋅l2
Y Co-ordinate of P
l4⋅sinθ2=a+l5⋅cosθ3l4⋅sinθ2=a+l5⋅cosθ3
θ3=sin-1(l4⋅sinθ2-al5)θ3=sin−1(l4⋅sinθ2−al5).......................................................................(3)
l6+l5cosθ3=l4cosθ2l6+l5cosθ3=l4cosθ2
l6=l4cosθ2-l5cosθ3l6=l4cosθ2−l5cosθ3.....................................................................................(4)
For the MATLAB program we will take l1l1 as 20 mm, l2l2 as 10 mm, l4l4 as 20 mm, l5l5 as 56 mm and aa as 40 mm
The following figure represent the angle of forward stroke and return stroke:
Fig: Angle of forward stroke and return stroke
That is, in a crank slotted lever mechanism the distance between the fixed centers is 20 mm. The length of the crank is 10 mm. The length of the slotted bar is 56 mm.
Hence, ll = 20 mm, rr = 10 mm.
From the figure,
cosα2=rl=1020=0.5cosα2=rl=1020=0.5
∴α2=60o
∴α=120o
Total angle of single rotation is 360o
∴β=360-120=240o
The ratio of the velocity of Return-Stroke to Forward-Stroke is:
Qrr=240120=2
∴Qrr=2
Methodology:
The idea here is to take the number of strokes from the user.
The number of strokes is taken from the user using the input command.
That is, in a crank slotted lever mechanism the distance between the fixed centers is 20 mm. The length of the crank is 10 mm. The length of the slotted bar is 56 mm. The length of the ram is taken as 20 mm. The distance tool from the base is 40 mm. They are declared in variable len1, len2, len4, len5, and len respectively.
The value of a counter variable (ct) is set at 1. This will be useful for capturing the figures to make the video.
The number of strokes is taken by the user. And the angle of the full stroke is 180 degrees or pi. This angle is the value of θ1
Using the above equation of Whitworth Quick Return Mechanism, we will find len3, len6, tehta2, and θ3.
Using the plot command first we will plot the path of tool movement and then using viscircle command we will plot the trajectory of crank movement.
Then, we will plot the path of all the arms. This is done under for loop as the position of all the arms changes with changes in the movement of the crank.
We will also make a tool and material using a simple plotting method.
Lastly, we will give the title to this figure.
These figures will be stored in an array form in variable A. The position of the array is determined by the counter number or ct value. To extract this frame into an array we will use getframe command.
To the display, we will give the pause of 0.1 sec.
Using the movie command we will make a video from the figures stored in array A.
From the VideoWriter command, we will give the name of the video as Whitworth Quick Return Mechanism in avi format and uncompressed form. We will store this information in a variable videofile.
Using the open command we will open this variable that is data.
Then using writeVideo command we will pass this data of videofile in the movie created from an array A.
In the end, using the close command we will close the videofile.
The MATLAB program for WHITWORTH QUICK RETURN MECHANISM is as follow:
%A program to Simulate Whiworth Quick Return Mechanism
clear all
close all
clc
%User Input
fprintf('%50snn','Whitworth Quick Return Mechanism');
r = input('Enter the number of Revolutionn');
len = 40;
len1 = 20;
len2 = 10;
len4 = 56;
len5 = 20;
%Default Values
ct =1;
%Mechanism
for theta1 = 0:0.1:r*2*pi
len3 = sqrt(((len1)^2 + (len2)^2 + 2*(len1)*(len2)*sin(theta1)));
theta2 = acos((len2)*cos(theta1) / (len3));
theta3 = asin(-1*(len4*sin(theta2) - len) / (len5));
len6 = (len4)*cos(theta2) - (len5)*cos(theta3);
%Plotting
figure(1)
plot([0,0],[0,len],'--.k','LineWidth',0.5);
hold on
plot([-60,60],[40,40],'--.k','LineWidth',0.5);
viscircles([0,len1],len2,'LineStyle','--','LineWidth',0.5,'Color','k');
plot([0,len2*cos(theta1)],[len1,len1+len2*sin(theta1)],'o-','LineWidth',2);
plot([0,len4*cos(theta2)],[0,len4*sin(theta2)],'o-','LineWidth',2);
plot([len4*cos(theta2),len6],[len4*sin(theta2),len],'o-','LineWidth',2);
%Tool
plot([len6+5,len6+5],[len-2,len+2],'k','LineWidth',1);
plot([len6-5,len6-5],[len-2,len+2],'k','LineWidth',1);
plot([len6+5,len6-5],[len+2,len+2],'k','LineWidth',1);
plot([len6-5,len6+5],[len-2,len-2],'k','LineWidth',1);
plot([len6-5,len6-6],[len-2,len-4],'k','LineWidth',1);
plot([len6-6,len6-1],[len-4,len-2],'k','LineWidth',1);
%Material
plot([-40,-50],[33.5,33.5],'k','LineWidth',13);
plot([-40,-50],[33.5,33.5],'k','LineWidth',13);
plot([-40,-40],[33.5,33.5],'k','LineWidth',13);
plot([-50,-50],[33.5,33.5],'k','LineWidth',13);
title('Whitworth Quick Return Mechanism');
hold off
axis(gca,'equal');
axis([-60,60,-10,80]);
A(ct) = getframe(gcf);
ct=ct+1;
pause(0.1)
end
%Making Video
movie(A);
videofile = VideoWriter('Whitworth Quick Return Mechanism.avi','Uncompressed AVI');
open(videofile);
writeVideo(videofile, A);
close(videofile);
Result:
The following is the Simulation video of the Whitworth Quick Return Mechanism:
Conclusion:
Created a MATLAB program for Simulation of Whitworth Quick Return Mechanism.
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Simulation of Whitworth Quick Return Mechanism using MATLAB
…
19 Mar 2021 08:00 PM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.