Synthesis, Analysis and Simulation of A Four-Bar Mechanism Using Matlab Programming
Synthesis, Analysis and Simulation of A Four-Bar Mechanism Using Matlab Programming
ABSTRACT
Tracer
The four-bar mechanism is a class of mechanical Point
linkage in which four links are pinned together to .
form a closed loop in order to perform some useful
motion. This has long been, and continues to be, an " "" TracerPointCurve
.
"-
"-
angle of the input (OJ will also be specified. In the ideal desired motion. But the problem becomes
case of motion generation the precision positions more difficult to solve as the number of precision
are the coordinates the tracer point passes through positions is increased. Fortunately, many real world
(x&Yj ), as well as the orientation' of the coupler problems only need several critical positions to be
defined by angle OJ. This paper deals with Motion satisfied precisely. Tolerance is usually allowed at
Generation problem of kinematic synthesis of a positions other than the precision points [6]. A four
four-bar mechanism. The synthesized mechanism bar linkage can satisfy up to five prescribed
is then analyzed .for determining its motion positions for the standard-form solutions of motion
characteristics. These results are then used for the generation problem [5].
animation of the mechanism.
The analytic synthe~is procedure ill algebraic and is
Conventional mechanism design procedures using less intuitive; hence, quite. suitable _ for
card board models, prototypes of the mechanism, computerization. In order to obtain a handle on the
making trial and error calculations, and a design variables and free choices, an analytical
combination of the above, have recently been model of the linkage must be developed: Several
getting replaced with the use of computer software. mathematical teqhniques for modeling linkages
Software packages can assist' the designer in have been utilized for planar synthesis objectives.
performing repetitive and programmable These include algebraic methods, matrix methods,
calculations fast and thus help in minimizing the and complex numbers. For planar linkages, the
errors that can be induced by human fatigue . . complex numbers technique is the simplest, yet the
most versatile method [5]. This technique uses
Various means of designing or synthesizing a . vectors to designate each of the links in the
mechanism to produce' desired motion in a four-bar, . mechanism. Fig. 2 shows the schematic
mechanism have been developed. Sandor and representation of the four-bar mechanism shown in
Erdman (1984) describe a method of solving the Fig. I by replacing the links by vectors [4].
problem~ using graphical constructions. They also
provide analytical equations to solve the same
problem computationally. Nikravesh 1988; Haug
1989; Shabana 1994, proposed methods bast<d on
the well-established absolute coordinate method for
kinematic analysis [3 },
W / (e iP, - i )+ Z / (e ia, - 1) = P /1
(1) (4)
W,(eiP;_l)+Z,(eia, -1)= PlJ
The angles between VI and Z], ZI and S], VI and SI
are fixed, as these vectors make up the rigid Equations (4) are commonly referred to as the
coupler link. known as a terinary link. Fig. 3 shows standard form loop equations, and each of them
the linkage in three successive positions. contains two scalar equations. Resolving the
vectors into real and imaginary parts, we have the
The equations that are used to generate solutions real parts as: '
for the input and output dyads are called loop
equations. The first loop begins at the ground pivot WCOSB(COSfJ2 -1) - wsinBsinfJ2 +
and proceeds out alorrg the second position dyad
vectors, .Wz and Zz. along the displacement vector , z cos¢(cosa2 -1) - z sin¢ sina2 = Pl2 cosc52
from the first precision point, PI. to the second ,(5)
precision point, P2, and then back along the first wco~cosA -l)-wsinBsinA +
position dyad vectors, ZI and WI, tl'J the ground
pivot. zcos¢(co923 -1) - zsin¢sinll:J= P13 cosO)
ea) - ea,
1 (8)
- 1
W / e iP, + Z / e ia, - Z / - W / = P lJ
(3)
W, =
e p, -
PlJ
1
ea, -l
IP /1e a, '--; 11
Ie P, - 1
(14)
z, lefJ'-1
eP' -I PIJ I
Po (9) eifJJ
eiP•
-
-
1
II
[el/l' -
eP'-1
!efJ'-1 eaJ_I
ea'_I!
In this case, the resulting six scalar equations have
seven unknowns and can not be ·solved unless one
Similarly, from the right hand dyad, UI and SI are of the unknowns is taken as a free choice. Although
obtained from: one of the unknowns is made a free choice, the
system of equations, unlike to that for three
(10) positions, is still non-linear. Rearranging the
[ee'lr, -- I ea,
ea, -- II]{US II} PIJ
= {Po} equations yields,
(11 )
IPo ea, - II From Eq. (15) it can be noted that, because of the -
er'-I eaJ_I 1 term, the vector can never be equal to zero.
Therefore, .the matrix must be singular or non-
u, = 1':'''-1 '::,- ~ 11 invertible. Hence, the determinant of that matrix
equals zero. i.e.,
and PIJ - (12)
eaJ I
Grashofs criterion states that the sum of the where matrix l/J q is the Jacobian matrix for the
shortest and longest links of a planar four-bar
linkage 'can not be greater than the sum of the constraint equations.l/J q is the matrix of partial
remaining two links, if there is to be continuous derivatives of the constraint equations with respect
relative rotation between two lin~ [5]. to the dependent coordinates where m is the
number of constraint equations and n is the number
If this rule is satisfied, in other words, if of dependent coordinates.
l+s<p+q,
Equation (20) represents a system of linear
where I and s are the longest and shortest links of
equations constituting an approximation to the non-
the four-bar mechanism, we may have a crank-
linear system of Eq. (19). The vector q(l), obtained
rocker, a double-crank, or a double-rocker
from the solution of Eq. (20), will be an
depending on the position and configuration of the
links. approximation of the solution of Eq. (19). Going
through this process repeatedly, the following
recursive formula is developed.
Position Analysis
(22) .
Where . ~ q
is the Jacobian matrix -.'defined in Eq.
(20) and vector q is the vector of dependent
velocities (derivative6 with respect .time of the
vector of dependent position variables). Vector b is
Figure 4
partial derivative of the constraint .equations with
respect to time.
The vector loop equation for a four bar linkage as
shown in Fig. 4 can be written as:
where q is the dependent acceleration vector. where q is the vector unknowns to be found.
c) Using the Taylor series expansion, Resolving Eq. (27) into real and imaginary parts
and solving it for the unknowns 03 and 04 we get
~ (oj }+ [ ~: ] ~ q (01 }= 0
~q(J)}= k') _q(O)}
Which can be solved for the correction factors
{Aq }, Acceleration Analysis
Stop. { -rij2
r2B2
..sinB2 + r2B2 smB2+rlj;.~0~B3
cosB2+ri}i.~0~B2 + r3B3 smB3-rij~2c~SB4}
- r4B4 smB4
Else, (30)
Numerical Example
{Aq (/+1) }= _[ ~: rJ {4> (11 }
Figure 7
Figure 8
3.. Bisect AA' and A 'A" and extend the S = 18.3746 - 0.6611i
perpendicular bisectors until they
intersect. The point of intersection gives The ground link, 0204 is,
one of the pivot points O2.
G= 3.4118 - 8.2796i
4. Repeat steps -2 and 3 for BB' l;I11dB 'B ".
This results in the other pivot point 04, The other links are automatically known from the
·free choices.
v= 16.0313 - 9.4215i
Z= 14.6106 - 3.4698i
U = -1.4207.+ 5.9518i
The angles P2. P3. Y2 and Y3 are measured to be, As can be noted from the table, using the values of
the free-choices obtained from the graphical
synthesis, the computer program yields the same
lengths as obtained from the graphical synthesis.
Analytical Synthesis
Table 1: C f
18.3746
3.4118
5.7550
-1.4207
14.6106++ Graphical
-8.2796i
-0.6611i
14.6106 18.3864
-Magnitude
18.3746
16.0313
5.7550
16.0313 8.9550
8.9550
18.3864
Vector
0.4809i---8.2796i
+
5.9518i
3.4698i 3.4698i
•9.4215i
5.7751
18.5948
5.7751
15.0169
6.1190
Magnitude
-1.4207
3.4118 0.661li
0.4809i
9.4215i
+
18.5948 Computer program
5,9518i
Vector
8 8
N•......•
Vl 4
~2
-2 -2
o D Time [s] 60 ro o 30 Time [s] 60 ro
(a) Velocity of the point of interest P (b) Acceleration of the point of interest P
0.2 0.2
o
'ii' 0 N-
:a ~
~ ~.{J2
...
8.{J.2 •..
d .{J.4
.(J.4 .{J.6
o o D Time [s] 60
(c) Angular velocity of the coupler link (d) Angular acceleration the coupler link
0.2
.{J.4 -0.6
o 30 Time [s] 60 '0 30 Time [5] 60 ro
(e) Angular velocity of the output link (f) Angular acceleration the output link
CONCLUSION REFERENCES
A method for kinematic synthesis and analysis of [1] Chidambaran, Narayanan C. and Erdman,
four-bar mechanisms for the motion-generation Arthur G.,'LINCAGES-2000 Mechanism
problem of three and four precision points is Design Software', Online paper.
presented in this paper. The dimensional synthesis
is based on the complex number method approach [2] John A. Mirth, "A complex number
. while analysis of the motion characteristics is approach for absolute precision position
carried out by solution of a set of vector loop synthesis for three precision positions",
equations derived from the synthesized mechanism. ASME Journal of Mechanisms Synthesis and
. Newton-Raphson iteration algorithm has been used Design, vol-46, pp. 43-48, 1992.
to solve tlie non-linear system of equations.
[3] R.l Minnar, D.A. Tortorelli and lA.
A Matlab computer program is written to Snyman, "On nonassembly in the optimal
implement the solutions to problems described in dimensional synthesis of planar
this paper. A numerical example is worked out to mechanisms", Struct Multidisk Optim 21,
compare 'the validity of the solutions resultingfrom 345-354, Springer-Verlag 2001.
the program against results generated from the
graphical method. The' computer program consists [4] Robert L. Norton, Design of Machinery: an
of Graphic User Interface, which helps the user introduction to the synthesis and analysis of
with data input, output as well as viewing the Mechanisms and Machines, McGraw-Hill
simulation. Inc., USA, 1992.
The results obtained from the computer program ['i] Sandor G.N. and Erdman A.G., Advanced
match exactly the results obtained from the Mechanism Design: Analysis and Synthesis,
traditional graphical method. Hence, the user- Volume 1, Prentice Hall International,
friendly program developed in this work can be Englewood Cliffs, NJ, 1991.
used for design, analysis and animatiori of various
four-bar mechanisms for three or four accuracy [6] Shao Jie Wang and .Raj S. Sodhi,
points. It can also be helpful for pedagogical "Kinematic synthesis of Adjustable moving
purposes. It is also envisaged that this work can pivot four-bar mechanisms for multi-phase
also be useful as a benchmark for further research motion generation", Mechanisms and
in this area. Machines Theory, Vol. 31, No.4, pp. 459-