Linkages and mechanisms
How rigid links joined by pins and sliders turn one motion into another: counting degrees of freedom, the four-bar linkage and Grashof's rule, the slider-crank, and how grippers use linkages.
Lesson 4 of 6 · 35 min · Self-paced · Free
Motion, reshaped
A motor spins. But a windscreen wiper swings back and forth, a pump piston slides in and out, and a gripper's jaws close in parallel. Linkages make these conversions. A linkage is a set of rigid links connected by joints, and with only a few bars and pins it can produce surprisingly complex motion. Linkages are everywhere: in folding chairs, car suspensions, desk lamps, excavators, bicycle brakes and robot grippers.
Links and joints
The two simplest joints in a flat (planar) mechanism are:
- A revolute joint (pin): allows rotation about one axis, like a door hinge.
- A prismatic joint (slider): allows sliding along one line, like a drawer.
Each allows one degree of freedom of relative motion, and is sometimes called a full joint. The fixed frame that the mechanism is mounted to counts as one of the links, called the ground link.
Counting degrees of freedom
How many independent inputs does a mechanism need? For planar linkages, the Grübler (or Gruebler) equation answers this. Each free rigid body in a plane has 3 degrees of freedom (two directions of movement and one rotation), and each full joint removes 2:
M = 3(n − 1) − 2jwhere n is the number of links including ground and j is the number of full joints (pins or sliders). There is a slightly longer version for joints that allow two freedoms, such as a pin in a slot, but this version covers most simple mechanisms.
- Three links, three pins (a triangle): M = 3 × 2 − 2 × 3 = 0. It cannot move: it is a rigid structure. This is why trusses and bridges are made of triangles.
- Four links, four pins (a four-bar linkage): M = 3 × 3 − 2 × 4 = 1. One input, such as a motor turning one link, fixes the position of everything.
- Five links, five pins: M = 3 × 4 − 2 × 5 = 2. It needs two inputs; with only one, it flops about.
The equation counts, it does not understand geometry, so occasionally special dimensions make it wrong. But it is an excellent first check.
The four-bar linkage
The four-bar linkage is the workhorse of mechanism design. Its four links are the ground (fixed), the input link (often driven by a motor and called the crank if it turns all the way round), the coupler (the floating link opposite the ground), and the output link (called the rocker if it swings back and forth).
By changing the four lengths, you get very different behaviour. Grashof's rule tells you whether any link can rotate fully. Let s be the shortest link, l the longest, and p and q the other two:
If s + l ≤ p + q, at least one link can rotate fully (a "Grashof" linkage).
If s + l > p + q, no link can rotate fully; every link only rocks.For a Grashof linkage, which link is shortest decides the behaviour:
- Shortest link next to the ground: crank-rocker. The shortest link turns all the way round while the opposite link rocks. A motor turning continuously produces a back-and-forth swing, as in a windscreen wiper.
- Shortest link is the ground: double-crank (drag link). Both side links rotate fully.
- Shortest link is the coupler: double-rocker. Both side links only rock.
A special case is the parallelogram linkage, where opposite links are equal. The coupler then stays parallel to the ground as it moves. Desk lamps, some car-park barriers and many grippers use this.
The slider-crank
Replace one pin of a four-bar with a slider and you get the slider-crank, the mechanism in car engines, pumps and air compressors. A crank of radius r turns, and a connecting rod of length L links it to a slider. The slider moves back and forth through a stroke of exactly 2r.
Worked example in Python
Here is a short script that checks Grashof's rule and calculates where a slider-crank's slider is, measured from the crank pivot, for a crank angle θ:
import math
def grashof(links):
"""Return True if the shortest link can rotate fully (Grashof condition)."""
s, p, q, l = sorted(links)
return s + l <= p + q
def slider_position(r, L, theta_deg):
"""Slider-crank: distance from crank pivot to slider pin, in the same units as r and L."""
t = math.radians(theta_deg)
return r * math.cos(t) + math.sqrt(L**2 - (r * math.sin(t))**2)
print(grashof([2, 7, 6, 8])) # links in cm
print(grashof([3, 9, 4, 5]))
for angle in (0, 90, 180):
print(angle, round(slider_position(3, 10, angle), 2))Output:
True
False
0 13.0
90 9.54
180 7.0The first linkage has s + l = 2 + 8 = 10 and p + q = 6 + 7 = 13, so it is Grashof. The second has 3 + 9 = 12, which is more than 4 + 5 = 9, so no link turns fully. For the slider-crank with a 3 cm crank and a 10 cm rod, the slider moves between 13 cm and 7 cm from the pivot: a stroke of 6 cm, exactly twice the crank radius. At 90° it is at 9.54 cm, not halfway at 10 cm, because the connecting rod is tilted. The slider's motion is not perfectly smooth, which is one reason engines vibrate.
Linkages in grippers
Robot grippers use linkages to turn a motor's motion into a useful grip:
- Angular grippers: each jaw is a lever pivoting on a pin, so the jaws close in an arc. Simple and cheap, but the grip point moves as the jaws close, and objects of different sizes are gripped at different angles.
- Parallel grippers: a parallelogram linkage on each side keeps the jaw faces parallel as they close, so flat objects are gripped squarely across their whole face.
- Toggle linkages: as two links straighten into a line, their mechanical advantage grows very large. A toggle gripper can squeeze hard with a small motor and hold its grip when power is removed, but the force rises steeply near the straight position, which can crush delicate objects.
Notice that a linkage's mechanical advantage usually changes as it moves, unlike a gear pair. Designers often check it at several positions, and particularly at the end of travel where the grip actually happens.
Recap
- Linkages are rigid links joined by pins and sliders that convert one motion into another.
- Grübler's equation, M = 3(n − 1) − 2j, counts a planar mechanism's degrees of freedom.
- Grashof's rule, s + l ≤ p + q, tells you whether a four-bar has a fully rotating link.
- A slider-crank's stroke is twice its crank radius.
- Grippers use levers, parallelograms and toggles; their mechanical advantage changes with position.
Project
Card project: build and test a four-bar linkage
Build working linkages from thin card and paper fasteners (split pins).
- Cut four strips of card about 1.5 cm wide, with hole-to-hole lengths of 4, 10, 8 and 9 cm. Make the holes with a single-hole punch, or by pushing a sharpened pencil through the card into a lump of modelling clay.
- Check Grashof's rule for these lengths by hand, and predict which link will rotate fully if the 4 cm link is next to the ground. Use the Python function above if you like.
- Pin the strips into a loop, and pin the 9 cm link flat to a piece of cardboard as the ground. Turn the 4 cm link and observe the motion. Was your prediction right?
- Make the 4 cm link the coupler instead (rearrange the order) and predict, then observe, the new behaviour.
- Build a parallelogram linkage with strips of 8, 4, 8 and 4 cm and attach a small card "jaw" to the coupler. Show that it stays parallel as it moves.
- Draw each linkage and count its degrees of freedom with Grübler's equation.
Deliverables
- Grashof predictions and observed behaviour for two arrangements
- A working parallelogram linkage with a jaw that stays parallel
- Labelled sketches with degree-of-freedom calculations
Adult supervision requiredUse scissors and a hole punch rather than a craft knife. If you use a craft knife or a bradawl to make holes, an adult must supervise: cut on a cutting mat, keep fingers out of the blade's path and press away from your body. Split pins have sharp ends; fold them flat and keep them away from small children.
Knowledge check
Check your understanding
Go further
- Wikipedia — Four-bar linkage ↗
Grashof's condition, the classification of four-bar linkages and animated examples.
Lesson materials · free to download
Sign in to track your progress. Reading is free without an account.