Cam Profile Designer
Operator: Abdulla Al Fahad. How tools are built and checked
A cam makes a follower do what the motion law says, and the law decides almost everything that goes wrong later: the peak acceleration that loads the spring, the jerk that rattles the follower, and the steepness that jams the roller. Choosing the law first and the profile second is how cams are designed.
Enter the cam as a list of dwell, rise and fall segments, pick a law for each, describe the follower, and the page returns the displacement, velocity, acceleration and jerk curves, the pressure angle at every degree, an undercut check and the profile as coordinates or a DXF at full size.
The follower is a rigid body here. Vibration, surface stress and manufacturing tolerances are not modelled.
Key features
- Six laws: cycloidal, simple harmonic, 3-4-5 polynomial, 4-5-6-7 polynomial, modified trapezoid and modified sine, in up to twelve segments
- A continuity table at every segment join, including the wrap from the last segment to the first, that names the highest derivative that stays continuous
- Translating roller or knife-edge followers, radial or with an offset, translating flat-faced followers, and oscillating roller followers on a pivoted arm
- Pressure angle against cam angle with your limit, the smallest base circle that meets the limit for a translating roller, and the half-width a flat face needs
- Radius of curvature of the pitch curve against the roller radius, which flags cusps and undercutting
- Spring check for translating followers: contact force, the preload needed, and the speed at which the follower would leave the cam; profile CSV and a closed DXF polyline with a bore circle
How the motion laws and follower geometry are computed
Segment angles must add to 360 degrees and the rises must equal the falls, otherwise the page says by how much. Lift is in millimetres, or in degrees of follower swing for an oscillating follower. The base circle radius is that of the cam profile; the prime circle is the base circle plus the roller radius, and a knife-edge has a roller radius of zero. An offset is positive when it lowers the pressure angle on the rise.
The DXF is a closed polyline of the sampled profile in millimetres at 1:1, plus a circle for the bore if you give a diameter. The profile is drawn as the follower sees it with the cam turning counter-clockwise. The angle step can be 0.25 to 10 degrees, up to 1,440 points around the cam.
How it works
For a segment of angle β and lift h, the follower position is h S(x) with x the fraction of the segment. Velocity, acceleration and jerk follow from the derivatives of S divided by β in radians, and scale with the cam speed to the first, second and third power. The cycloidal, harmonic and polynomial laws are closed forms; the modified trapezoid and modified sine are built by integrating their defined acceleration pieces.
The cam is turned into a moving frame in which it stands still and the follower circles it. The pitch curve is the roller centre's path there, the pressure angle is the angle between the contact normal and the direction the follower can move, and the profile is the pitch curve offset inward by the roller radius. A flat face touches where the profile support function h(θ) = Rb + s has contact offset ds/dθ, with radius of curvature h + h″.
Typical uses
- A laser-cut cam for a camera slider needs a 12 mm rise in 90° with no sudden jerk, and the joins table flags the harmonic law for the acceleration jump at the dwell.
- A maker comparing the cycloidal and the 3-4-5 polynomial for the same stroke sees the polynomial's peak acceleration fall from 6.28 to 5.77 times the lift over the angle squared.
- A student with a flat-faced follower raises the base circle until the profile radius of curvature stays positive through the whole rise.
Building one
- Enter the segments, or change the example: a 60° dwell, a 120° rise of 20 mm, a 60° dwell and a 120° return.
- Choose the follower type and its base circle, roller, offset, cam speed and pressure angle limit.
- Read the checks, the segment joins and the curves; change a law or enlarge the base circle until the warnings clear.
- Download the DXF at 1:1 or the CSV of profile and motion.
Example
Load example: cycloidal rise and return of 20 mm over 120° each, translating roller follower, base circle 30 mm, roller 10 mm, 300 rpm
Segments: dwell 60°, rise 120°, dwell 60°, fall 120°; spring 5 N/mm, preload 20 N, follower mass 0.2 kgChecks and joins
Peak velocity 0.600 m/s, peak acceleration 28.3 m/s², peak jerk 2,665 m/s³.
Maximum pressure angle 21.2° at 115° of rotation; a 30° limit needs a base circle of only 14.3 mm at zero offset.
All four joins report that the jerk jumps (finite): acceleration is continuous because the cycloid's acceleration is zero at its ends.
The smallest contact force is 20 N and contact would be lost at about 1,321 rpm.Things to check before you rely on it
A harmonic rise followed by a dwell has an acceleration jump, which means an infinite jerk in the rigid-body model. Real followers ring at that angle; the cycloidal, polynomial and modified laws avoid it.
The spring check uses the follower mass alone. The mass of the spring, the roller and any pushrod is not added unless you include it in the mass field.
A radius of curvature that stays above the roller radius does not mean the profile can be ground: the cutter radius must be below the smallest concave radius too.
- The pressure angle peaks near the steepest part of the rise, not at its middle. A positive offset lowers it on the rise and raises it on the return, so check both strokes.
- Use a smaller angle step for the DXF than for study: 0.5° gives 720 points, enough for a smooth cut on a laser.
Common errors and how to fix them
- The segment angles add up to 330 degrees. They must total 360 (add 30 more)
- Add a dwell for the missing angle with Add segment, which starts with the remaining angle filled in.
- Rises and falls differ by 5. The follower must return to its starting position
- Make the falls total the same lift as the rises, or add a fall segment.
- The prime circle cannot be reached
- For an oscillating follower, the base circle plus roller radius must lie between the difference and the sum of the pivot distance and the arm length.
- The offset must be smaller than the prime circle radius
- Reduce the offset or enlarge the base circle or the roller.
Best practices
- Fix the limit on peak acceleration from the spring and the load first, then choose the shortest segment that stays within it.
- Check the joins table whenever two non-dwell segments meet: a rise straight into a fall needs both laws to have matching acceleration at the join.
- Keep the pressure-angle limit at 30° for a translating roller with a good guide and nearer 20° for a long follower or a loose guide.
Peak coefficients of the laws
For a rise of unit lift over unit angle the peak velocity, acceleration and jerk are Cv, Ca and Cj. The page reproduces the textbook values: cycloidal 2, 6.283 and 39.48; simple harmonic 1.571, 4.935 and 15.50; 3-4-5 polynomial 1.875, 5.774 and 60; 4-5-6-7 polynomial 2.188, 7.513 and 52.5; modified trapezoid 2.000, 4.888 and 61.43; modified sine 1.760, 5.528 and 69.47. Physical peaks are Cv h ω/β, Ca h ω²/β² and Cj h ω³/β³.
Frequently asked questions
How is the pressure angle computed for an offset follower?
As the arctangent of (ds/dθ - e)/(s + √(Rp² - e²)) with s in the same length units per radian. At 120° of the example, s is 10 mm and ds/dθ is 19.10 mm per radian, so with no offset the angle is atan(19.10/50) = 20.9°.
Can I add my own motion law?
Not in this version. The six laws above are built in; a user-defined segment or constant-velocity portion with blends is not available.