Cam and follower

Rest at bottom
Lift now

A cam turns rotation into a planned up-and-down motion. Its shape is the motion you want, wrapped round a circle; an engine's camshaft opens its valves this way.

The motion

Simple harmonic rise: s = (h/2)(1 − cos(πθ/β)) over the rise angle β, then a dwell at full lift, a matching fall, and rest for the remainder of the turn. The follower starts and stops without a jump in position. The cam drawn is the pitch curve for a follower in line with the cam centre: radius = base circle + lift at that angle.

Tested: the lift is continuous all the way round and never leaves 0 to h (packages/mechanics/test/classics.test.ts). If rise + dwell + fall come to more than 360°, all three are scaled down to fit one turn, and the readout says so.

Example

With lift 20 mm, rise 90°, dwell at top 45°, fall 90°: rest at bottom: 135°. Open this setup, then change one thing at a time.

Related: Geneva drive · Engine piston · Four-bar linkage