Cam Mechanism Simulator Back
Mechanism Design

Cam Mechanism Simulator

Visualize disk cam follower displacement, velocity, and acceleration in real time. Compare SHM, cycloidal, and polynomial 3-4-5 profiles, and instantly check if the pressure angle stays within 30°.

Cam Profile
Cam Geometry
Dwell Angles
Operation
⚠️ Pressure angle exceeds 30°. Increase base circle radius.
Results
Max Velocity
Max Acceleration
Max Pressure Angle
Cam Period

Theory Notes

Cycloidal displacement: $h(\theta) = H\left[\frac{\theta}{\beta}- \frac{1}{2\pi}\sin\!\left(\frac{2\pi\theta}{\beta}\right)\right]$
Velocity: $\dot{h}= \frac{H\omega}{\beta}\left[1 - \cos\!\left(\frac{2\pi\theta}{\beta}\right)\right]$
Pressure angle: $\tan\alpha = \frac{dh/d\theta}{r_0 + h(\theta)}$
Theory & Key Formulas

$$h(\theta) = H\!\left[\frac{\theta}{\beta} - \frac{1}{2\pi}\sin\!\left(\frac{2\pi\theta}{\beta}\right)\right] \quad (\text{サイクロイダル})$$

フォロワー変位。H:リフト量 [m]、β:作動角 [rad]、θ:カム角 [rad]

$$\dot{h} = \frac{H\omega}{\beta}\!\left[1 - \cos\!\left(\frac{2\pi\theta}{\beta}\right)\right]$$

フォロワー速度 [m/s]。ω:カム角速度 [rad/s]。サイクロイダルは加速度が連続で衝撃が少ない

$$\tan\alpha = \frac{dh/d\theta}{r_0 + h(\theta)}$$

圧力角 α。r_0:基礎円半径 [m]。α > 30° で側方力が大きくなりスティック・スリップ発生

What is a Cam Mechanism?

🙋
What exactly is a cam mechanism? I see them in machines but don't really get how they work.
🎓
Basically, it's a simple but brilliant way to convert rotary motion into a specific, controlled linear or oscillating motion. A cam is a rotating or sliding piece with a specially shaped profile. As it turns, a follower (like a rod or lever) rides along that profile, moving up and down according to the cam's shape. In this simulator, try selecting the "SHM" profile type and watch how the follower's motion changes smoothly as the cam rotates.
🙋
Wait, really? So the shape of the cam is the motion program? Why are there different profile types like "Cycloidal" and "Polynomial"?
🎓
Exactly! The cam profile is the physical code. Different profiles are chosen for different motion characteristics. For instance, Simple Harmonic Motion (SHM) is smooth but has sudden jumps in acceleration, which can cause vibration. A cycloidal profile has zero acceleration at the start and end, making it much smoother for high-speed applications. Use the dropdown in the simulator to switch between them and watch the dramatic difference in the acceleration graph.
🙋
That makes sense. I see the graphs for displacement, velocity, and acceleration. Why is the acceleration so important to control?
🎓
Great observation! Acceleration is directly proportional to the force ($F = m a$). High or abrupt acceleration means high inertial forces, which cause vibration, noise, and wear. In practice, a cam for an engine valve needs extremely smooth acceleration to last at high RPMs. The simulator shows this instantly—compare the spiky acceleration of SHM with the smooth curve of the cycloidal profile. The right profile minimizes these dynamic forces.

Physical Model & Key Equations

The core of cam design is defining the follower's motion as a function of the cam's rotation angle, $\theta$. This is the displacement function , $S(\theta)$. Its derivatives define the motion's characteristics.

$$ S(\theta) = \text{Function of Cam Profile}$$

Where:
• $S$ = Follower displacement from its lowest position (mm or in).
• $\theta$ = Cam rotation angle (degrees or radians).
• The specific function changes with the chosen profile (e.g., sine function for SHM, cycloid equation for cycloidal).

Velocity and Acceleration are found by differentiating the displacement function with respect to time, which involves the cam's rotational speed, $\omega$.

$$ v = \frac{dS}{dt}= \frac{dS}{d\theta}\cdot \frac{d\theta}{dt}= \omega \cdot \frac{dS}{d\theta}$$ $$ a = \frac{d^2S}{dt^2}= \omega^2 \cdot \frac{d^2S}{d\theta^2}$$

Where:
• $v$ = Follower velocity (mm/s).
• $a$ = Follower acceleration (mm/s²).
• $\omega$ = Angular velocity of the cam (rad/s).
• $\frac{dS}{d\theta}$ and $\frac{d^2S}{d\theta^2}$ are the slope and curvature of the displacement curve, which you see plotted in the simulator.

Frequently Asked Questions

SHM is smooth but has discontinuous acceleration, making it prone to vibration. Cycloidal profiles have continuous acceleration and excel in low vibration. The polynomial 3-4-5 profile has continuous acceleration and jerk, making it the smoothest, but its maximum acceleration is slightly higher. Choose based on your application.
Generally, a pressure angle of 30° or less is recommended. Exceeding 30° generates excessive lateral force between the follower and cam, leading to wear and operational issues. The simulator displays this judgment instantly, so you can check the angle and adjust your design accordingly.
Velocity changes proportionally to the rotation speed ω, while acceleration changes proportionally to ω². When you change ω in the simulator, the values update in real time, allowing you to pre-evaluate the risk of impact and vibration at high speeds.
This tool specializes in comparing profiles for the rise section (0≤θ≤β). The fall and dwell sections are often defined by symmetry or other functions, but by understanding the rise characteristics in this simulator, you can apply them to overall design.

Real-World Applications

Internal Combustion Engines: The most classic example. Camshafts precisely open and close intake and exhaust valves. The profile must ensure the valve opens quickly, stays open for the right duration, and closes softly to prevent "valve float" at high RPMs, which is why polynomial or cycloidal profiles are often used.

Automated Manufacturing & Packaging: Cam-driven mechanisms are the workhorses of assembly lines. They are used to create precise, repeatable motions for tasks like picking, placing, stamping, or cutting. Their reliability and mechanical simplicity make them ideal for high-cycle environments.

Textile and Weaving Machinery: Complex looms use arrays of cams to control the up/down motion of hundreds of threads (heddles) in a specific sequence to create patterned fabrics. The smoothness of the cam profile directly affects fabric quality and machine speed.

Pumps and Metering Devices: Certain types of positive displacement pumps use a cam to actuate pistons or diaphragms. The cam profile controls the flow rate—for instance, a profile can be designed to provide a constant output flow despite the rotary input motion.

Common Misunderstandings and Points to Note

First, are you misunderstanding the meaning of "smoothness"? Even if the displacement curve is smooth, if there are discontinuities in the acceleration or its derivative, jerk, it can cause vibration and noise in actual mechanisms. For example, the SHM profile has a beautiful sine wave displacement, but the acceleration changes abruptly at the boundaries of the intervals. Try checking the "Jerk" display in the simulator too. In SHM, the jerk theoretically becomes infinite (appearing as a large spike in calculations), and this is the source of the shock.

Next, a smaller pressure angle is not always better. While keeping it under 30° is a good guideline, excessively increasing the base circle radius to force it smaller makes the cam oversized and inefficient. For instance, to keep the pressure angle at 25° for a total lift of 5mm, the calculation shows you need a base circle radius of at least 10mm. In designs with space constraints, consider the trade-off between pressure angle and size.

Finally, does your simulation's rotational speed reflect reality? This is super important. The values on the graph's vertical axis (velocity, acceleration) are affected by the square or cube of the rotational speed ω. For example, if the calculated acceleration is 100 m/s² at 300 rpm, simply running it at 600 rpm will cause the acceleration to jump to about 400 m/s²! When changing parameters in the simulator, always set ω by working backwards from the intended operating conditions of the actual machine.

How to Use

  1. Set base circle radius (r0) in mm—typical range 15–50 mm for industrial cams.
  2. Enter lift height in mm—maximum follower rise during one complete cycle.
  3. Define rise angle (beta1) and fall angle (beta2) in degrees; sum should not exceed 360°.
  4. Select cam profile type: SHM (simple harmonic), cycloidal (smooth acceleration), or polynomial (custom curvature).
  5. Click simulate to generate displacement, velocity, and acceleration graphs in real time.
  6. Hover over curves to inspect instantaneous values at any rotation angle.

Worked Example

Automotive camshaft for a 4-cylinder engine: base radius r0 = 22 mm, valve lift = 8 mm, rise phase beta1 = 120°, fall phase beta2 = 110°. Using cycloidal profile minimizes jerk and valve train stress. At 90° (mid-rise), displacement reaches 4 mm, velocity peaks near 0.35 mm/deg, and acceleration stays below 0.008 mm/deg². Peak acceleration with SHM would exceed 0.012 mm/deg², risking valve bounce at 6000 rpm.

Practical Notes

  1. Cycloidal profiles reduce peak acceleration by 15–25% versus SHM; essential for high-speed diesel engines above 3000 rpm.
  2. Polynomial profiles allow dwell periods (zero velocity plateaus) for precision manufacturing machines requiring synchronized multi-cam sequences.
  3. Large lift-to-radius ratios (>0.3) increase follower pressure angle; verify cam-follower contact stress using Hertzian equations if radius <8 mm.
  4. Rise angle beta1 = 120° suits pushrod engines; roller followers tolerate faster ramps than flat-face designs (use beta1 ≥ 90° for safety).