Index / Sheet list
Machine elements & mechanisms

Four-bar mechanisms and cam-follower systems explained

How linkages and cams turn one motion into another: degrees of freedom, the Grashof rule, the slider-crank, cam and follower types and motion curves, with worked examples.

On this page
  1. Links, joints and degrees of freedom
  2. The four-bar linkage
  3. Cams and followers
  4. Designing mechanisms in CAD

A mechanism turns one kind of motion into another: rotation into swinging, rotation into straight-line movement, or a steady turn into a precisely timed lift. Linkages and cams are the two oldest ways of doing it, and they are still inside car engines, wiper systems, packaging machines, folding furniture and excavators.

Four-bar linkageCam and followerADBCCrankCouplerRockerGround link (the frame)LiftRoller followerGuideBase circleCam turns
Left: a crank–rocker four-bar linkage. The short crank turns all the way round and the rocker swings back and forth. Right: a cam and roller follower. As the cam turns, its profile lifts the follower and a spring returns it; the shape of the cam sets exactly how it moves.

A linkage is made of rigid links connected by joints: pin (revolute) joints that allow rotation and sliding (prismatic) joints that allow straight-line motion. One link is fixed: the frame or ground. The number of independent inputs needed to drive the mechanism is its degree of freedom (DOF), given for planar linkages by the Gruebler–Kutzbach equation:

F=3 (n−1)−2 j1−j2F = 3\,(n - 1) - 2\,j_1 - j_2

where nn is the number of links (including the ground), j1j_1 the number of full joints (pins and sliders) and j2j_2 the number of half joints (rolling with slipping, such as a cam contact).

Worked example: degrees of freedom of a four-bar linkage

A four-bar linkage has 4 links and 4 pin joints.

F=3 (4−1)−2×4−0=1F = 3\,(4 - 1) - 2 \times 4 - 0 = 1
AnswerF = 1: turning the crank alone fixes the position of every other link

A result of 0 means a rigid structure; a negative result means it is over-constrained; 2 or more means you need more than one input (or the mechanism will flop around).

The four-bar linkage

Four links, four pins: the simplest mechanism with one degree of freedom, and the most widely used. The link fixed to the frame is the ground, the link driven by the motor is the input (often a crank), the link opposite the ground is the coupler, and the remaining link is the output (often a rocker).

The Grashof condition

Whether any link can turn all the way round depends only on the lengths. Call the shortest link ss, the longest ll and the other two pp and qq.

s+l≤p+qs + l \le p + q

If this holds (a Grashof linkage), at least one link can rotate fully. Which kind of mechanism you get then depends on which link is fixed:

Shortest link is…MechanismMotion
Next to the groundCrank–rockerShortest link rotates fully, the opposite link rocks
The groundDouble crank (drag link)Both side links rotate fully
The couplerDouble rockerBoth side links only swing

If s+l>p+qs + l > p + q, no link can rotate fully: every link only rocks (a triple rocker).

Worked example: what kind of four-bar is it?

The linkage in the diagram has a 70 mm crank, a 190 mm coupler, a 140 mm rocker and a 220 mm ground link.

s+l=70+220=290 mm,p+q=190+140=330 mms + l = 70 + 220 = 290\ \text{mm}, \qquad p + q = 190 + 140 = 330\ \text{mm}

290 ≤ 330, so it is a Grashof linkage, and the shortest link (the crank) is next to the ground.

AnswerCrank–rocker: the crank turns fully and the rocker swings back and forth

The slider-crank

Replace the rocker of a four-bar with a slider moving in a straight line and you have the slider-crank, the mechanism in every piston engine, compressor and reciprocating pump. The crank radius rr sets the stroke (2r2r), and the connecting rod length ll shapes the motion. The piston’s distance from the crank centre is:

x=rcos⁡θ+l2−r2sin⁡2θx = r\cos\theta + \sqrt{l^2 - r^2 \sin^2\theta}

Worked example: piston position at 90° of crank

An engine has a 40 mm crank radius (80 mm stroke) and a 140 mm connecting rod. How far has the piston moved from top dead centre after 90° of crank rotation?

xTDC=r+l=180 mm,x90∘=0+1402−402=134.2 mmx_{TDC} = r + l = 180\ \text{mm}, \qquad x_{90^\circ} = 0 + \sqrt{140^2 - 40^2} = 134.2\ \text{mm}Travel=180−134.2=45.8 mm\text{Travel} = 180 - 134.2 = 45.8\ \text{mm}
Answer45.8 mm, more than half the 80 mm stroke after a quarter turn: the piston moves faster near the top of its stroke

Where four-bar linkages are used

Windscreen wipers (crank–rocker), excavator and loader arms, car suspensions (double wishbone), toggle clamps, folding tables and chairs, bicycle suspension, door closers, oil-well pump jacks and the pantograph on trains.

Cams and followers

A cam is a shaped piece that pushes a follower through a planned motion as it turns. Where a linkage gives whatever motion its lengths produce, a cam can give almost any motion you design into its profile, including dwells where the follower stays still.

Cam and follower types

CamsFollowers
Disc (plate) cam: a profiled disc; the most commonKnife-edge: simple but wears fast; rarely used
Cylindrical (barrel) cam: a groove around a cylinder moves the follower parallel to the axisRoller: rolls on the cam; low friction and wear; the most common in machines
Face (groove) cam: the follower runs in a groove, so no return spring is neededFlat-faced (mushroom): compact and stiff; used for engine valves
Linear (wedge) cam: a profile that slides instead of turningFollowers either translate (move in a straight line) or oscillate (swing on a pivot)

Describing the motion

A cam’s motion is drawn as a displacement diagram: follower lift against cam angle, usually split into rise, dwell, return and dwell. The shape of each rise matters:

  • Constant velocity: simple, but the sudden start and stop gives infinite acceleration in theory, causing shocks and noise.
  • Simple harmonic: smooth velocity, but acceleration still jumps at the ends of a dwell.
  • Cycloidal: acceleration starts and ends at zero; the smoothest of the three and the usual choice for high-speed cams.

For a translating roller follower, keep the pressure angle (the angle between the follower’s direction and the contact force) below about 30°, otherwise the follower jams sideways in its guide. A larger base circle reduces the pressure angle at the cost of a bigger cam.

Where cams are used

Engine camshafts opening the valves, packaging and printing machines, automatic lathes, sewing machines, door locks and toys. Many cam functions are now done by servo motors, but cams are still the cheapest and most reliable way to repeat the same motion millions of times at speed.

Designing mechanisms in CAD

A CAD assembly with correctly defined mates is a working model of the mechanism: you can drive the crank and watch the coupler, check for collisions and measure the output angle at every position. Motion studies add velocities, accelerations and forces, and they show early whether a linkage reaches a toggle (dead) position where it locks or loses control.

Key points

  • DOF = 3(n − 1) − 2j₁ − j₂; a four-bar linkage has one.
  • Grashof: if s + l ≤ p + q, at least one link turns fully; the fixed link decides the type.
  • The slider-crank is a four-bar with a slider: the heart of every piston engine.
  • A cam gives any planned motion, including dwells; cycloidal profiles run smoothest.

In practice

See it in CAD

Our projects that put this topic to work.

Need this designed or explained for your team?

We design parts and machines in CAD, make the drawings for manufacturing and train teams. Tell us what you are working on.