Four-bar linkage simulator

Type
Crank
Rocker swing
Transmission angle
s + l vs p + q

Four bars joined in a loop, one held still: the most common way to turn a spinning crank into a swinging arm, a wiper's sweep or a walking leg. The pen hole on the coupler traces the curve in yellow; it's a hole in the printable kit too.

Grashof's rule

s + l ≤ p + q

Call the shortest link s, the longest l and the other two p and q. Some link can turn a full circle only if s + l ≤ p + q. Which link is the shortest then decides the motion: the crank shortest gives a crank-rocker (the crank spins, the rocker swings), the ground shortest a double-crank (both spin), the rocker shortest a rocker-crank and the coupler shortest a double-rocker. If s + l > p + q nothing turns fully and every link swings. Here the crank is driven, so when it can't turn fully it swings between the two angles where the coupler and rocker line up.

Transmission angle

cos μ = (c² + d² − e²) / 2cd

μ is the angle between the coupler and the rocker, and e is the distance from the crank pin to the rocker's pivot. Near 90° the coupler pushes the rocker squarely; below about 40° most of the push goes into the pivot instead and the linkage feels stiff or jams. Designers usually keep μ between 40° and 140°.

Lengths are centre to centre in millimetres, the same as the printable kit. Tests check that every link keeps its length at every angle, that Grashof's rule matches what the linkage actually does for over five thousand combinations, and that the printed links don't hit each other anywhere in the cycle.

Tested: every link keeps its length at every crank angle on both branches, the transmission-angle formula matches the angle drawn, the Grashof classification, no branch jumps at any slider corner, and the kit is clash-free over the whole cycle (packages/mechanics/test/linkage.test.ts).

Related: Engine piston · Cam and follower · Geneva drive