Skip to main content

Disclosure: As an Amazon Associate, I earn from qualifying purchases.

Polynomial Cam Function (Derivation of Fifth-degree function) - Part 2

In [Polynomial Cam Function (Introduction) - Part 1], we discussed the fundamental law of cam design: continuity of acceleration.

In this post, we are going to derive the exact equations for the Fifth-Degree Polynomial Cam Function. This is the "secret sauce" used in Motion Control Algorithms for high-end servo drives to ensure smooth, jerk-free movement.

The General Equations

We start with the general polynomial equation. To make the math handleable, we normalize the input angle as a ratio (b / bm).

s = C0 + C1(x) + C2(x)2 + C3(x)3 + C4(x)4 + C5(x)5

Where:
s = Displacement (mm)
x = Ratio of cam angle (b / bm)
b = Current cam angle (rad)
bm = Total angle in sector (rad)

To find Velocity (v) and Acceleration (a), we differentiate with respect to the angle.
(Note: v is in mm/rad. To convert to mm/s, multiply by angular velocity ω)

Velocity Equation (v = ds/db):

v = (1/bm) × [ C1 + 2C2(x) + 3C3(x)2 + 4C4(x)3 + 5C5(x)4 ]

Acceleration Equation (a = dv/db):

a = (1/bm2) × [ 2C2 + 6C3(x) + 12C4(x)2 + 20C5(x)3 ]

Applying Boundary Conditions

To solve for the 6 constants (C0 to C5), we need 6 known conditions. This is where Kinematics Analysis comes into play.

Boundary Condition Set 1 (Start of Move, x=0):
We start at zero displacement and zero acceleration to match a dwell. However, we allow a non-zero velocity (v0) to enable connections with linear segments.
1. s = 0
2. v = v0
3. a = 0

Boundary Condition Set 2 (End of Move, x=1):
We end at the total lift height (hm).
4. s = hm
5. v = v1 (Target end velocity)
6. a = 0

Solving for Constants

Step 1: Apply Start Conditions (x=0)
By substituting x=0 into the general equations, terms with x vanish immediately:
• From Displacement: C0 = 0
• From Acceleration: C2 = 0
• From Velocity: v0 = C1 / bmC1 = bmv0

Step 2: Apply End Conditions (x=1)
Now we have a system of 3 linear equations with 3 unknowns (C3, C4, C5):

  1. Displacement: C3 + C4 + C5 = hm - bmv0
  2. Acceleration: 6C3 + 12C4 + 20C5 = 0
  3. Velocity: 3C3 + 4C4 + 5C5 = bmv1 - bmv0

Solving this simultaneous system (via substitution or matrix method usually handled by engineering software) yields the final coefficients:

The Final Formula Coefficients

C1 = bmv0

C3 = 10hm - bm(6v0 + 4v1)

C4 = -15hm + bm(8v0 + 7v1)

C5 = 6hm - bm(3v0 + 3v1)

The Final Polynomial Equation

Therefore, the 5th-degree polynomial cam function that satisfies all boundary conditions is:

s = C1(x) + C3(x)3 + C4(x)4 + C5(x)5

With this equation derived, we can now plug in any start/end velocity we want. This is critical for designing "Flying Shears" or "Rotary Knives" where the tool must match the speed of the product line perfectly.

In the next post, we will analyze the characteristics of this curve and graph the results.

Comments

Popular posts from this blog

Dowel Pins and Locating Pins

In the world of Precision Engineering , the difference between a high-quality product and a scrap part often comes down to microns. While bolts hold parts together, they are terrible at positioning them. This is where Dowel Pins and Locating Pins become essential components in industrial tooling . What is a Dowel Pin? Dowel pins are precision-ground fasteners used to secure the relative position of two parts. They are typically machined to extremely tight tolerances (often within 0.0001 inches) and are available in materials like: Hardened Steel: For high-wear applications in CNC fixtures . Stainless Steel: For corrosion resistance in medical or food processing machinery. Plastic (Thermoplastic): For lightweight, non-conductive, low-load alignment. The "Play" Problem: Bolts vs. Dowels When mechanical design engineers create components, they cannot rely on bolts for alignment. Manufacturing practices for bolt holes introduce clea...

Hoekens Straight-line Mechanism

The Hoekens linkage is a four-bar mechanism that converts rotational motion to approximate straight-line motion. The Hoekens linkage is a cognate linkage of the Chebyshev linkage . " DESIGN OF MACHINERY " by Robert L. Norton shows the link ratios that give the smallest possible structural error in either position or velocity over values of Δβ from 20° to 180°. The followings are some interesting examples of Hoekens straight-line mechanism from youtube. Walking robot Marble machine Source: http://www.designofmachinery.com/DOM/Chap_03_3ed_p134.pdf http://en.wikipedia.org/wiki/Hoekens_linkage http://www.youtube.com/watch?v=AkI1nrq9mMQ http://www.youtube.com/watch?v=-CKgP_cueEw http://www.youtube.com/watch?v=PxpRUpmRdCY  

Ball Detent Torque Limiter: Overload Clutch

A torque limiter is an automatic overload clutch that provides machine protection and reduces repair time during jamming load conditions. This is done to protect expensive machines and prevent physical injuries. A torque limiter may limit the torque by slipping (as in a friction plate slip-clutch), or uncouple the load entirely (as in a shear pin). Ideally the torque limiter should be placed as close as possible to the source of the jam. This will allow the system inertia and torque to be quickly and effectively disconnected from the jammed section. The system can then be allowed to stop without causing further machine damage. A mechanical torque limiter will provide faster response times and better protection than typical electronic methods at high crash rates. There are several disconnect types available, but we will focus at the Ball Detent type . A ball detent type torque limiter transmits force through hardened balls which rest in detents on the shaft and are held in pl...