How to draw and calculate a cam profile by degrees
A cam turns rotation into the up-and-down motion of a follower. Its edge is not a circle but a radius that changes with the angle of rotation. The simple idea is this: at every angle θ the cam-edge radius is R(θ) = base-circle radius + the lift at that angle. Split the turn into rise, dwell and return, work out the lift degree by degree, and you have a set of edge points you can draw as a single polyline and send straight to a cutter.
Parts and terms to know
A disc cam with a radial translating follower has only a few key values.
| Symbol | Meaning |
|---|---|
| Rb | Base-circle radius — the lowest follower position |
| h | Maximum lift (rise) the follower travels |
| β | Rise angle — the angle over which the lift happens, e.g. full lift in 120° |
| θ | Current cam angle of rotation |
| s(θ) | Follower lift at angle θ |
| R(θ) | Cam-edge radius at θ = Rb + s(θ) |
A typical cycle has four phases: rise, dwell at the top (held high), return, and dwell at the bottom (held low) — together making 360°.
Simple harmonic motion (SHM) — the lift formula
A constant-velocity (straight-line) rise jerks the follower at the start and end because the acceleration jumps to infinity. Machinists favour simple harmonic motion, which starts and ends softly. The lift during the rise (0 ≤ θ ≤ β) is
Return (SHM): s(θ) = (h ÷ 2) × [ 1 + cos( 180° × (θ − θstart of return) ÷ β ) ]
Top dwell: s = h constant · Low dwell: s = 0
The edge radius you actually draw is always R(θ) = Rb + s(θ).
Worked example: Ø50 base, 20 mm lift
Given a base circle of Ø50 (Rb = 25 mm), lift h = 20 mm, SHM rise over 0–120°, top dwell 120–180°, SHM return 180–300°, low dwell 300–360°.
Substitute the rise at θ = 30°: s = (20 ÷ 2) × [ 1 − cos(180° × 30 ÷ 120) ] = 10 × [ 1 − cos 45° ] = 10 × (1 − 0.7071) = 2.929 mm → R = 25 + 2.929 = 27.93 mm.
Repeat every 15° to build the edge-radius table (values rounded from the exact SHM).
| θ (°) | s(θ) mm | R(θ) mm | X = R·cos θ | Y = R·sin θ |
|---|---|---|---|---|
| 0 | 0.00 | 25.00 | 25.00 | 0.00 |
| 15 | 0.76 | 25.76 | 24.88 | 6.67 |
| 30 | 2.93 | 27.93 | 24.19 | 13.96 |
| 45 | 6.17 | 31.17 | 22.04 | 22.04 |
| 60 | 10.00 | 35.00 | 17.50 | 30.31 |
| 75 | 13.83 | 38.83 | 10.05 | 37.50 |
| 90 | 17.07 | 42.07 | 0.00 | 42.07 |
| 105 | 19.24 | 44.24 | −11.45 | 42.73 |
| 120 | 20.00 | 45.00 | −22.50 | 38.97 |
The top dwell (120–180°) keeps R = 45 constant, and the return (180–300°) mirrors the rise — for instance θ = 240° gives s = 10, R = 35, exactly like θ = 60°. The low dwell (300–360°) keeps R = 25.
Drawing it in the program
The most accurate way is to type the X,Y of each point into one polyline.
- Type C and draw the base circle at centre
0,0radius 25 for reference, plus a second circle R = 45 as the outer limit. - Type PL and press Enter to start a polyline. Type the first point
25,0Enter, then each following point as an absolute coordinate prefixed with#, e.g.#24.88,6.67then#24.19,13.96, working through the whole table around the edge (rise → top dwell → return → low dwell). - A dwell is a constant-radius arc — add a mid-phase point (e.g. θ = 150° at R = 45) for a smoother curve, or type A and draw an arc through the start–mid–end points of the dwell.
- Because this cam is symmetric left to right, you can draw only the rise half (0–180°) and then MI mirror it about the horizontal axis to get the return half — that halves the coordinates you type.
- Close the polyline back to the first point and press Enter to finish; you get a single closed cam edge.
- Check with ME by measuring centre-to-edge at a few angles against R(θ) in the table, and dimension with D.
Try it right now — a free 2D CAD in your browser. Nothing to install, no sign-up.
Open DXCAD2D OnlineWatch the rotation direction and follower type
The table above lays the angle θ off counter-clockwise around the cam. If the cam turns clockwise, lay the rise/dwell/return angles off in the opposite direction to rotation (the profile mirrors). Also, R(θ) = Rb + s(θ) applies to a knife-edge or flat-faced follower; for a roller follower you must first draw the roller-centre path (pitch curve) and then offset it inward (O) by the roller radius to get the real contact edge.
Frequently asked questions
how to calculate a cam profile
At every rotation angle θ the edge radius R(θ) = base-circle radius + the lift at that angle s(θ). Split the turn into rise, dwell and return, compute s(θ) per degree, then convert to X = R·cos θ, Y = R·sin θ to draw it.
what is the base circle of a cam
It is the smallest circle of the cam, matching the follower's lowest position. Every edge radius is measured from the centre as base-circle radius plus lift. A larger base circle gives a smaller pressure angle and runs more smoothly.
difference between SHM and constant velocity cam motion
Constant velocity rises in a straight line — simple but jerks at the start and stop. SHM uses s = (h/2)(1 − cos), starting and ending softly, so it suits high-speed cams where the acceleration must not slam.
does a roller follower cam draw differently from a knife-edge
Yes. For a roller follower you draw the roller-centre path (pitch curve) first, then offset it inward by the roller radius to get the true cam edge the roller touches.
Summary
A cam profile is a radius that changes with angle: R(θ) = Rb + s(θ). Split the turn into rise, top dwell, return and low dwell, use the SHM lift s = (h/2)(1 − cos(180°·θ/β)) to find the lift degree by degree, convert to X,Y and draw it as a point-by-point polyline. Finer angle steps give a smoother edge — and always check the rotation direction and follower type before cutting.