Simulation of four-bar linkages
With SVG and Flash embedded graphics

Version 0.2 – Written by Gildas Trébaol – August 30, 2008
Figure 1: The simulation software four_bar.exe V0.1 – SVG views displayed in a Flash window

Introduction

The four-bar linkage is a versatile planar mechanism, used extensively in articulated systems:
  • In wheel vehicles:
    • For the Ackerman steering in all automobiles and trucks.
    • For automotive and bicycle suspensions.
    • For hydraulic tail lifts, and scissor tippers on dump trucks.
  • In hydraulic machinery:
    • For tilting the bucket on hydraulic excavators and loaders.
    • For the blade actuators of earth moving equipment.
    • For the three-point hitch of agricultural tractors.
  • In industrial automation and material handling:
    • For the needle mechanism on sewing machines.
    • For scissor lifts and conveyor ancillary equipment.
    • For packaging machines.
  • In doors and covers, instead of a simple hinge:
    • For garage lifting doors.
    • For engine hoods.
  • In hand tools:
    • For locking pliers.
    • For bolt cutters.
    • For manual clamps.
  • Etc.
Figure 2: a four bar linkage and his coupler curve

Empirical design

In mechanical engineering, when you are designing a four bar mechanism for a given application, there is no analytic way for computing the parameters of such a mechanism. Consequently, different techniques have been developed for finding the best parameters with empirical methods:

Figure 3: a coupler curves from the Hrones and Nelson Atlas

Parts of a four-bar linkage


Figure 4: parts and parameters of a four-bar linkage.

The mechanism of a four-bar linkage is composed of:

Parameters of the mechanism

The geometry of the mechanism is defined by the following parameters:

The following table summarizes these parameters:

Name Input / Output / Utility Description
lp I length of the input crank 0A
lq I length of the connecting rod AB
lr I length of the the rocker BD
ls I length of the static bar OD
lt U length of the geometric segment AD
cu cv I relative coordinates of the coupler point C
φ I input angle of the crank
ψ O output angle of the rocker
θ O output angle of the connecting rod

Geometric analysis

Computation of the position with trigonometry

To compute the position of the joint A on the crank, we use the input angle φ :

xA = xO + lp * cos( φ )
yA = yO + lp * sin( φ )

To compute the position of the joint B between connecting rod AB and the rocker BD :

To compute the β angle in the triangle DHB :

  1. The variable lt = distance( A, D ) is defined by:
    lt = sqrt( (xD - xA)2 + (yD - yA)2)
  2. The lt length is the sum of AH and HD :
    lt = AH + HD
  3. On the right triangle AHB, the Pythagorean theorem defines the expression :
    AB2 = AH2 + HB2
  4. On the right triangle DHB, the Pythagorean theorem defines the expression :
    DB2 = DH2 + HB2
  5. The subtraction of the 3rd and 4th equations gives :
    DA2 - DB2 = lq2 - lr2 = AH2 - HB2
  6. The 2nd and 5 th equations can be combined :
    lq2 - lr2 = (AH + HB) * (AH - HB) = lt * (AH – HB)= lt * (lt - 2 * HB)
  7. The distance HB is defined by the 6th equation :
    HB = (lt2 - lq2 + lr2) / (2 * lt)
  8. The distance HB and the radius lr define the cosine of the β angle:
    cos( β )= HR / lr
  9. The 7th and the 8th equations give :
    β = acos( (lt2 - lq2 + lr2) / (2 * lr * lt) )

To compute the α angle between the segment DA and the static bar OD :

α = atan2( yA – yD, xA - xD )

Now, we can compute the two possible ψ angles between the rocker DB and the static bar OD :

ψ = α ± β

The sign of the β angle is:

Now, we can compute the two positions of the B joint :

xB = lr * cos( ψ ) + ls
yB = lr * sin( ψ )

Now, we can compute the θ angle (-π ≤ θ ≤ π ) between the rod AB and the static bar OD :

θ = atan2( yB – yA, xB - xA )

Finally, we can compute the position of the coupler point C, using the relative coordinates cu and cv :

xC = xA + cu * cos( θ ) - cv * sin( θ )
yC = yA + cu * sin( θ ) + cv * cos( θ )

Usage of the Grashof condition

S = shortest link, L = longest link Source: Wikipedia
Figure 5: types of four bar linkages

The Grashof condition determines different types of four-bar linkages:

The four-bar simulation software

Usage of vector graphics for displaying the simulation sequence

Here we use SVG and Flash techniques for displaying the simulation:

Configuration files and result files

Demonstration with well known mechanisms

Straight line linkages

In the steam engines developed in the 19th century, the translation of the piston is often guided by an articulated system, instead of a sliding system. For such applications, different inventors, engineers and mathematicians disvovered interesting four bar linkages where a part of the coupler curve is almost a straight line.

Figure 7: Watt linkage - 1784 Figure 8: Evans linkage - 1802
James Watt (1736-1819),
British instrument maker and inventor.
Oliver Evans (1755-1819),
American inventor of steam engines.
Figure 9: Roberts linkage - about 1860 or before 1841? Figure 10: Chebyshev linkage - about 1850
Richard Roberts (1789-1864), British inventor. Pafnuty Lvovich Tschebischeff (1821-1894),
Russian mathematician.
Figure 11: Hoekens linkage Figure 12: Burmester linkage
I do not know who is Mr Hoekens or Hoecken… Ludwig Burmester (1840-1927),
German mathematician.

These mechanisms only approximate a straight line. An exact straight line linkage was discovered in 1864 and 1871 by Peaucellier and Lipkin:

References

  1. Introduction to the four bar linkages:
    See on Wikipedia – http://en.wikipedia.org/wiki/Four_bar_linkage
  2. History of the straight line linkages:
    "How to Draw a Straight Line"
    , by Daina Taimina http://kmoddl.library.cornell.edu/tutorials/04/
  3. Analysis of the Four-Bar Linkage
    by John A Hrones and George L. Nelson – M.I.T. Press and John Wiley & Sons – 1951
  4. A animated presentation of the Hrones and Nelson coupler curves:
    Matlab simulation developed by Fan (Michael) Mo
    taken from the page 116 of "Design of Machinery", 3rd edition – by Robert L. Norton –  McGraw-Hill – 2004
    http://dynaden.wonkwang.ac.kr/data file/kinematics/animation/WM/ch3/coupler_curve_atlas/coupler_curve_atlas.htm
  5. Animated images showing straight line linkages:
    at the IEL department at UC Davis – http://iel.ucdavis.edu/design/fourbar/fourbarStraight.html
  6. Synthesis of Four-Bar Linkage Mechanisms using Pattern-Matching Approach and Genetic Algorithms
    by Vipul Kumar and Gupta Shorya Awtar – http://www.cse.iitk.ac.in/~amit/courses/751/97/LINKAGE_SYNTHESIS 
  7. An open-source simulator of four-bar linkages :
    "Logiciel de visualisation de mécanismes à quatre barres" – 1995
    by Jean-Pierre Merlet – INRIA Sophia Antipolis – ftp://ftp-sop.inria.fr/coprin/4bar/
  8. A commercial simulator of four-bar linkages :
    Four-Bar Linkage Analysis and Synthesis – http://www.softintegration.com/chhtml/toolkit/mechanism/fourbar/
  9. A commercial simulator for designing different types of linkages :
    Linkage Design Tools – by Robert L. Nortonhttp://www.designofmachinery.com/Linkage/index.html

A zipped version of this example is available in http://gtrebaol.free.fr/doc/flash/four_bar/doc/