Motion Programming
The cam surface directly determines follower motion. As the cam rotates, its profile shape pushes the follower through a prescribed path.
A step looks different? Hover the toolbars, or use the menu of the workbench named in the step. The command name is the part that stays.
The ideas in this lesson do not depend on the version. Where a click moved, the lesson still names the command.
Gears and linkages convert one type of motion into another, but they cannot produce an arbitrary motion profile. When you need a valve to open slowly, dwell at the top, and snap shut, or a pick-and-place arm to follow a specific acceleration curve, you need a cam. The cam’s profile is the motion program carved into metal, and getting that profile wrong means the follower jams, bounces, or wears prematurely. In this lesson you will design a cam and follower mechanism in FreeCAD with parametric control over the rise, dwell, and return segments. #FreeCAD #CamDesign #FollowerMotion #ProgrammedMotion
By the end of this lesson, you will be able to:
Cam and follower mechanisms convert continuous rotary motion into precisely controlled reciprocating or oscillating motion. They’re fundamental to timing and sequencing in mechanical systems, with the cam profile acting as a geometric program that defines the follower’s motion.
![]()
Cam and follower mechanisms power critical timing and sequencing operations across industries:
Design Challenge: Given continuous rotary input motion, how do we create a specific, repeatable output motion profile with precise timing, smooth acceleration, and reliable contact?
Key Concept: The cam profile = motion program encoded as geometry
Motion Programming
The cam surface directly determines follower motion. As the cam rotates, its profile shape pushes the follower through a prescribed path.
Design Flexibility
Change the cam profile geometry, change the motion. One rotating input creates unlimited possible output motions.
A cam and follower system consists of three essential elements:
1. Cam: Rotating Driver
2. Follower: Moving Output
3. Frame: Fixed Reference
Follower Configurations
Roller Follower (Most Common)
Flat-Faced Follower
Knife-Edge Follower
Standard Cam Cycle:
A complete 360° rotation typically includes four phases:
Rise: Outward Motion
Dwell: High Position
Return: Inward Motion
Dwell: Low Position
Base Circle Radius (R_b)
Lift (L)
Prime Circle Radius (R_p)
Rise Angle
Dwell Angles
Return Angle
Simple Harmonic Motion
Where:
Cycloidal Motion
Polynomial Motion
By completing this lesson, you’ll create:
Custom Cam Profile
Parametrically controlled cam with 120° rise, 60° dwell, 120° return, 60° dwell
Roller Follower Assembly
Complete follower system with roller, stem, and guide
Motion Documentation
Technical drawings showing motion zones and displacement diagrams
Parametric Control
Adjust lift, base radius, or angles: entire mechanism updates automatically
Launch FreeCAD
Ensure you’re using version 0.21 or later
Create new document
File → New (Ctrl+N)
Save immediately
Save as CamFollower.FCStd in your project folder
Good Practice - Save early, save often!
For this lesson, you’ll use:
Part Design
Sketcher
Spreadsheet
Assembly
TechDraw
Essential Navigation Controls:
| Action | Control |
|---|---|
| Rotate view | Middle mouse button + drag |
| Pan view | Shift + Middle mouse button + drag |
| Zoom | Mouse wheel scroll |
| Fit all | Press “V” then “F” |
| View front | Press “1” on numpad |
| View top | Press “7” on numpad |
Practice Now!
Cam design requires thinking in terms of motion profiles first, then translating those profiles into geometry. The cam surface is literally a physical encoding of the desired motion: every point on the profile corresponds to a specific follower position at a specific rotation angle.
Cam Cycle Specification
360° Complete Cycle:
This creates smooth, repeatable motion with predictable timing.
We’ll control the entire mechanism with these key parameters:
BaseCircleRadius = 40 mmLift = 20 mmRollerRadius = 10 mmCamThickness = 15 mmShaftDiameter = 20 mmSwitch to Part Design workbench
Use the workbench dropdown at top
Insert a spreadsheet
Insert → Spreadsheet
A “Spreadsheet” object appears in the left tree
Double-click to open the spreadsheet
Click on “Spreadsheet” in the tree
In the spreadsheet, create this parameter table:
| Cell | Value | Meaning |
|---|---|---|
| A1 | Parameter | Header |
| B1 | Value | Header |
| C1 | Unit | Header |
| A2 | BaseCircleRadius | Parameter name |
| B2 | 40 | Numeric value |
| C2 | mm | Unit (documentation) |
| A3 | Lift | Parameter name |
| B3 | 20 | Numeric value |
| C3 | mm | Unit |
| A4 | PrimeCircleRadius | Parameter name |
| B4 | =B2+B3 | Formula |
| C4 | mm | Unit |
| A5 | RollerRadius | Parameter name |
| B5 | 10 | Numeric value |
| C5 | mm | Unit |
| A6 | CamThickness | Parameter name |
| B6 | 15 | Numeric value |
| C6 | mm | Unit |
| A7 | ShaftDiameter | Parameter name |
| B7 | 20 | Numeric value |
| C7 | mm | Unit |
| A8 | ShaftRadius | Parameter name |
| B8 | =B7/2 | Formula |
| C8 | mm | Unit |
| A9 | RiseAngle | Parameter name |
| B9 | 120 | Numeric value |
| C9 | deg | Unit |
| A10 | DwellAngle1 | Parameter name |
| B10 | 60 | Numeric value |
| C10 | deg | Unit |
| A11 | ReturnAngle | Parameter name |
| B11 | 120 | Numeric value |
| C11 | deg | Unit |
| A12 | DwellAngle2 | Parameter name |
| B12 | 60 | Numeric value |
| C12 | deg | Unit |
Why Aliases?
Aliases let you reference cells by descriptive names instead of cell addresses like “B2”, making formulas readable and maintainable.
Create aliases for all parameter values:
Click cell B2
Right-click → Properties
In “Alias” field, type: BaseCircleRadius
Click OK
Repeat for each parameter value in column B:
LiftPrimeCircleRadiusRollerRadiusCamThicknessShaftDiameterShaftRadiusRiseAngleDwellAngle1ReturnAngleDwellAngle2Now you can use Spreadsheet.BaseCircleRadius anywhere in your model!
Notice the formulas in B4 and B8:
PrimeCircleRadius = BaseCircleRadius + Lift
ShaftRadius = ShaftDiameter / 2
Close the spreadsheet when done (click the Close button).
Your parametric foundation is ready!
The cam profile must be designed relative to the follower position. For a roller follower, we actually design the pitch curve: the path traced by the roller center. Then the actual cam surface is offset inward by the roller radius. This ensures the roller maintains proper contact throughout the cycle.
Simple Harmonic Motion Rise:
For smooth acceleration during rise, we use simple harmonic motion:
Where:
Cam Radius at Angle θ:
Where:
Key Points for 120° Rise:
| Angle | Displacement | Radius |
|---|---|---|
| 0° | 0 mm | 40 mm |
| 30° | 2.68 mm | 42.68 mm |
| 60° | 10 mm | 50 mm |
| 90° | 17.32 mm | 57.32 mm |
| 120° | 20 mm | 60 mm |
Two Approaches:
Option A: B-Spline Through Calculated Points (Accurate)
Option B: Circular Arc Approximation (Simplified)
Cam Profile Construction:
Base Circle:
Rise Section (0° to 120°):
High Dwell (120° to 180°):
Return Section (180° to 300°):
Low Dwell (300° to 360°):
Shaft Hole:
Create a Body
CamCreate a Sketch
You’re now in Sketcher workbench (automatic switch)
Draw the base circle
Constrain the radius
Spreadsheet.BaseCircleRadiusBase circle is now parametrically controlled!
We’ll use construction geometry to establish angular positions:
Draw horizontal reference line
Make it construction geometry
Constrain it horizontal
Set the length
70 mm (extends beyond prime circle)This horizontal line at 0° is our angular reference.
Simplified approach using a single arc:
Draw arc from base to prime circle
Constrain start point
Constrain end point angle
Constrain end point radius
Spreadsheet.PrimeCircleRadiusThe rise section is now constrained!
For more accurate harmonic motion (optional):
Calculate and place points
Using the table from earlier:
Use Point tool
Place points at each calculated position
Constrain each point
Connect with B-spline
This creates a smooth curve matching the harmonic motion law exactly.
Draw arc at prime circle radius
Constrain the arc
Spreadsheet.PrimeCircleRadiusHigh dwell maintains follower at maximum lift while cam rotates 60°.
Easiest method: Mirror the rise section
Create symmetry axis
Select rise geometry
Apply symmetry constraint
Position correctly
The mirrored section should span 180° to 300°
Alternative: Draw return section manually
Draw return arc
Constrain endpoints
Constrain radii
Spreadsheet.PrimeCircleRadiusSpreadsheet.BaseCircleRadiusDraw arc at base circle radius
Constrain the arc
Spreadsheet.BaseCircleRadiusThe profile is now a complete closed curve!
Draw center hole
Constrain the hole
Spreadsheet.ShaftRadiusCheck the solver
Look at “Solver Messages” panel:
Visual verification
The cam profile should show:
Close the sketch
Click the Close button in the toolbar
Select the cam sketch
Click on the sketch in the tree (under Cam body)
Apply Pad operation
Spreadsheet.CamThicknessView your cam
Your parametric cam is complete!
Follower Assembly Components
The follower system consists of three parts:
Roller
Follower Stem
Guide Mount (part of frame)
Create new Body
RollerCreate Sketch on XZ_Plane
Why XZ? The follower moves vertically (Z-axis) and we’ll revolve around a horizontal axis
Draw roller profile
Constrain the circle
70 mmSpreadsheet.RollerRadiusCheck and close sketch
Revolve Operation
Revolve creates 3D solids by rotating a 2D profile around an axis, like a lathe operation.
Perfect for:
Select the roller sketch in the tree
Click Revolve tool in Part Design toolbar
In the Revolve panel:
360° (full rotation)Click OK
You now have a cylindrical roller!
Create new Body
FollowerStemCreate Sketch on XZ_Plane
Draw stem profile
Constrain the rectangle
30 mm15 mm80 mmClose sketch
Pad the stem
10 mm (creates rectangular bar in Y direction)Follower stem complete!
For this lesson, we’ll position roller and stem together in assembly without a physical pin connection. This keeps the focus on cam motion.
For more realism:
Create another Body: RollerPin
Sketch a circle (pin cross-section) on appropriate plane
Revolve to create cylindrical pin
Position to connect roller to stem in assembly
The frame provides:
Create new Body
FrameCreate Sketch on XY_Plane
Draw base plate
Rectangle tool
Width: 150mm
Height: 100mm
Centered at origin
Symmetric constraints: Center rectangle about both X and Y axes
Distance constraints: Width = 150 mm, Height = 100 mm
Add cam shaft hole
Spreadsheet.ShaftRadius + 0.5 (add clearance)Note: You can type the formula directly or use a fixed value like 10.5 mm
Add follower guide slot
Draw two vertical parallel lines for guide rails
Position: X = ±10 mm (creates 20mm wide slot for 15mm stem + clearance)
Height: 100mm (full range of motion)
Symmetric: Left and right lines about Y-axis
Distance between: 20 mm
Close sketch
Pad the frame
20 mmFrame complete!
Assembly transforms individual parts into a functioning mechanism. For the cam and follower, we must establish rotational motion for the cam while constraining the follower to pure vertical translation. The roller maintains contact with the cam surface through careful positioning.
Assembly Constraints Plan
Switch to Assembly workbench
Use workbench dropdown (may be labeled “Assembly 3” or “Assembly 4” depending on version)
Create new assembly
Assembly → Create Assembly
An assembly container appears in the tree
Add parts
Drag parts from tree into assembly or use “Add Part” button:
Select Frame in assembly tree
Apply Fixed constraint
Click Fixed or Lock constraint button
Frame is now locked in place
This serves as the ground reference for all motion
Allow cam to rotate about shaft:
Select cam shaft hole axis
Click on the circular edge or use the References panel
Select frame shaft hole axis
Apply Axial Align constraint
This aligns the axes and allows rotation about that axis
Test: Try rotating the cam manually in the assembly view - it should spin about the Z-axis!
Constrain follower to vertical motion only:
Select follower stem body
Select frame guide surfaces
You may need to select the parallel guide rails or frame top surface
Apply constraints for vertical sliding:
The exact constraint type depends on your Assembly workbench version
Goal: Follower can slide up and down (Z-axis) but cannot move sideways or rotate
Position roller at bottom of stem:
Select roller and follower stem
Apply constraints:
Adjust height so roller just touches cam base circle
Manual motion verification:
Rotate cam slowly in the assembly
Grab the cam and rotate it incrementally
Manually adjust follower height to maintain roller contact with cam
As cam rotates through rise, move follower up During dwell, keep follower stationary During return, move follower down
Observe the cycle:
Cam mechanism drawings require more than standard part views. They must clearly communicate the motion profile, angular zones, and follower displacement. Essentially, they document the programmed motion encoded in the cam geometry.
Switch to TechDraw workbench
Create a page
Add cam top view
This shows the cam profile clearly
Add cam section view
Add angular dimension tool
Select angular dimension from toolbar
Dimension each motion zone
Add text annotations
Use Text tool to label:
RISE (120°)
DWELL (60°)
RETURN (120°)
DWELL (60°)
Add critical dimensions:
Base circle radius
Radial dimension: 40mm
Prime circle radius
Radial dimension: 60mm
Lift
Linear dimension showing 20mm difference
Shaft hole
Diameter dimension: 20mm
Cam thickness
Side view dimension: 15mm
Follower Displacement Diagram
A displacement diagram is essential for cam documentation. It’s a graph showing follower position vs. cam rotation angle.
Axes:
Profile:
Create sketch on drawing page
Use TechDraw → Insert Sketch
Draw axes
Plot the profile
Label axes and zones
For more accurate diagram:
Use the motion law formulas to calculate displacement at multiple angles, then plot:
| Angle | Displacement |
|---|---|
| 0° | 0 mm |
| 30° | 2.68 mm |
| 60° | 10 mm |
| 90° | 17.32 mm |
| 120° | 20 mm |
| 180° | 20 mm |
| 210° | 17.32 mm |
| 240° | 10 mm |
| 270° | 2.68 mm |
| 300° | 0 mm |
| 360° | 0 mm |
Plot these points and connect smoothly.
Complete title block
Add notes
NOTES:1. Motion profile: Simple harmonic rise and return2. Break all sharp edges 0.5mm3. Surface finish: Ra 1.6 on cam profile4. Heat treat to Rc 50-55 (if steel)Export
The true test of parametric design: change a parameter, watch the entire mechanism update correctly. This is where hours of careful constraint work pay off with instant design iterations.
Open Spreadsheet
Double-click Spreadsheet in tree
Change Lift parameter
30Recompute
Press Ctrl+R or click Recompute button
Observe changes:
✅ Success! Your lift is parametric!
Change BaseCircleRadius
50Recompute (Ctrl+R)
Verify:
✅ Your cam scales parametrically!
Change CamThickness
25Recompute
Verify:
✅ Thickness updates correctly!
Try these configurations:
| Configuration | BaseCircleRadius | Lift | Character |
|---|---|---|---|
| Compact | 30 | 15 | Small, tight motion |
| Standard | 40 | 20 | Balanced (original) |
| Extended | 50 | 30 | Large stroke, smooth |
| Extreme | 60 | 40 | Very large motion |
Watch how the cam profile adapts!
Congratulations! By completing this lesson, you have:
Designed Cam Profiles
Curve-based profiles with motion laws
Applied Polar Geometry
Angular constraints and radial dimensions
Created Contact Systems
Cam-follower contact motion
Used Revolve Operation
Rotationally symmetric parts
Modeled Complex Motion
Rise-dwell-return cycles
Documented Motion
Displacement diagrams and annotated zones
Most importantly: You’ve designed a motion-programming mechanism: geometry that directly controls motion characteristics!
Use this checklist to verify your cam design:
Ready for more? Try these enhancements:
Add return spring
Model a compression spring that keeps follower in contact with cam
Create cam with different dwell timing
Try 90° rise, 90° dwell, 90° return, 90° dwell
Add more parameters
Control rise angle, dwell angles via spreadsheet
Design cycloidal motion cam
Use cycloidal equations for smoother acceleration
Create flat-faced follower
Replace roller with flat contact surface
Add manufacturing features
Keyway in shaft hole, mounting bolt holes
Calculate and plot velocity/acceleration
Derive velocity and acceleration from displacement curve
Design conjugate cam
Two cams on same shaft for balanced forces
Create positive-drive cam
Groove cam that drives follower in both directions
FEA stress analysis
Analyze contact stresses using FEM workbench
“Cam profile has sharp corners”
“Profile doesn’t close properly”
“Follower motion is jerky”
“Roller doesn’t maintain contact”
“Cam profile breaks when changing parameters”
“Cannot create B-spline smoothly”
In the next lesson on Geneva Mechanism, you’ll explore:
Intermittent Motion
Precise indexing and locking mechanisms
Polar Patterns
Symmetrically arranged features
Locking Geometry
Self-locking designs for safety
Angular Precision
Exact angle control and repeatability
Each lesson builds your parametric CAD mastery while exploring fundamental mechanisms!
This lesson assumes four skills. Each link opens the part that teaches it:
A cam lifts its follower 20 mm while it turns 120°. You keep the 20 mm lift but make the rise happen in 60° of the turn. What changes for the follower?
The start values are the lesson's: a base circle of 40 mm, a lift of 20 mm, a rise and a return of 120° each with simple harmonic motion, and a roller of 10 mm. The cam turns clockwise, so the follower meets the profile in the order you sketch it, counterclockwise from 0°. The arrow is the push of the cam on the roller, at right angles to the cam surface. Its lean from the line of the follower is the pressure angle. Shorten the rise angle and watch it grow; then make the base circle larger and watch it fall.
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. A packaging machine needs a lift of 20 mm in only 45° of cam turn. With a base circle of 40 mm and a roller of 10 mm, the pressure angle reaches 34°, above the usual limit of 30°. The timing and the lift cannot change. What do you change?
2. A cam lifts its follower 25 mm with simple harmonic motion over a 120° rise. How high is the follower 45° into the rise?
3. A student draws the high dwell as an arc of radius 60 mm, but its centre is 3 mm away from the shaft centre. What does the follower do during the 60° of high dwell?
| Part | Job |
|---|---|
| Cam | Its edge is the motion: drawn from a table of points the spreadsheet works out |
| Base | A plate with a bearing boss for the shaft and a guide block for the stem |
| Shaft | Turns in the boss, carries the cam; its knob is where you turn it |
| Stem, roller, pin | The follower: the roller rolls on the cam, the stem slides in the guide |
| Spring | Pushes the roller onto the cam |
This build adds a running clearance (0.2 mm), a table of seven points for the cam's edge, where the guide block stands, and the spring. The motion values stay the lesson's.
CamFollower.FCStd.Spreadsheet appears in the model tree.Spreadsheet in the tree. A grid opens in its own tab.First the values. Names in column A, values in B, a note in C. Give each B cell an alias, the name in column A of its row (click the cell, type the name in the Alias box above the grid, Enter), so a sketch can ask for Spreadsheet.Lift.
| A (name) | B |
|---|---|
BaseCircleRadius, Lift | 40, 20 |
PrimeCircleRadius | =BaseCircleRadius + Lift |
RollerRadius, CamThickness | 10, 15 |
ShaftDiameter, ShaftRadius | 20, =ShaftDiameter / 2 |
RiseAngle, DwellAngle1, ReturnAngle, DwellAngle2 | 120 deg, 60 deg, 120 deg, 60 deg |
Clearance | 0.2 |
Type an angle with its unit, 120 deg, so the formulas below can add and subtract angles. An alias may not be a unit name or look like a cell, such as mm or X1.
The roller's centre runs on a path BaseCircleRadius + RollerRadius + s from the cam's axis, where s is the lift. The cam's edge is that path moved in by the roller radius, square to the path. Where the path slopes, by the pressure angle a, that point sits a little ahead of the line to the roller's centre. Reading 40 + s straight off the axis would be up to 0.38 mm out.
k, t, s, rho, a, x, y.Pt1x and G16 Pt1y, then rows 17 to 22 Pt2x, Pt2y to Pt7x, Pt7y.| Cell | Formula | What it is |
|---|---|---|
| B16 | =RiseAngle * A16 / 8 | t, the cam angle of the point |
| C16 | =Lift / 2 * (1 - cos(180 * A16 / 8)) | s, the harmonic lift there |
| D16 | =BaseCircleRadius + RollerRadius + C16 | rho, the roller centre's radius |
| E16 | =atan(Lift / 2 * (180 deg / RiseAngle) * sin(180 * A16 / 8) / D16) | a, the pressure angle |
| F16 | =D16 * cos(B16) - RollerRadius * cos(B16 - E16) | x of the cam's edge |
| G16 | =D16 * sin(B16) - RollerRadius * sin(B16 - E16) | y of the cam's edge |
Last, four cells for the parts round the cam, in rows 25 to 28, each with its alias:
| Alias | Type | What it is |
|---|---|---|
GuideY | =BaseCircleRadius + RollerRadius + Lift + 70 | 140 mm: the guide block's front face from the cam's axis. It moves out with a larger cam or lift |
SpringRate | 0.4 | N/mm |
SpringFreeLength | 62 | mm, the spring's length with no load |
SpringLength | =GuideY - BaseCircleRadius - RollerRadius - 40 | 50 mm: the space for the spring, collar to guide, with the follower down |
The stem is drawn with its roller centre on the origin, lying along +Y.
Stem. Create sketch on XY_Plane.3: the pin hole. Check: Fully constrained.10 mm.| Corners (x, y), mm, in order |
|---|
| −7.5,−12 · 7.5,−12 · 7.5,30 · 15,30 · 15,40 · 7.5,40 · 7.5,150 · −7.5,150 · −7.5,40 · −15,40 · −15,30 · −7.5,30 |
Round parts: draw half the section on XZ_Plane with Polyline, fix each point with L and I, Close, then Revolution about V_Axis, 360°.
| Body | Points (radius, height), mm |
|---|---|
Rollera ring: the section does not touch the axis | 3.1,0 · 9.6,0 · 10,0.4 · 10,13.6 · 9.6,14 · 3.1,14 |
RollerPinhead on top, e-clip groove at the bottom | 0,0 · 2.6,0 · 3,0.4 · 3,0.6 · 2.4,0.6 · 2.4,1.2 · 3,1.2 · 3,26.5 · 5,26.5 · 5,28 · 0,28 |
For a cam that can change thickness, give the heights ƒx: the roller's 14 is Spreadsheet.CamThickness - 1, the pin's 26.5 is Spreadsheet.CamThickness + 11.5.
Spring. Create sketch on XZ_Plane.0.8: the wire. Check: Fully constrained. Close.9.68.Spreadsheet.SpringLength - 1.6, OK. Check: a coil 50 mm long over the wire, 9.68 turns. The spring now fits the space the spreadsheet gives it: a new cam or guide gives the same spring, longer or shorter.
ShaftDiameter: the shaft turns in it, the cam sits on it.GuideY, as tall as the stem's layer and 6 mm more, with a slot 15.4 × 10.4 the stem slides in.Base. Hide the follower parts (select, Space). Create sketch on XY_Plane.8 mm.18. Close. Pad 10 mm: the boss.Spreadsheet.ShaftDiameter, Depth 10, Drill point Flat.Spreadsheet.GuideY, its back edge ƒx Spreadsheet.GuideY + 20. Close. Pad ƒx Spreadsheet.CamThickness + 26.5: the guide block.18.3 + Spreadsheet.CamThickness, its top at ƒx 28.7 + Spreadsheet.CamThickness. Close.5.5, Through all.1 mm.Create body Shaft, sketch on XZ_Plane, Polyline through 0,0 · 9.4,0 · 9.8,0.4 · 9.8,10 · 10,10 · 10,37 · 20,37 · 20,52 · 0,52, fix the points, Revolution about V_Axis, then Fillet 3 on the knob's top edge. The step at 10 mm is a shoulder: below it the shaft is 19.6 across and turns in the boss; above it, 20 across, it is pressed into the cam.
Base: Pad, Pad, Hole, Pad, Pocket, Hole, Chamfer. The slot lines up with the boss's centre.The cam and the shaft turn together on the boss: one Revolute joint, and the shaft Fixed in the cam. The stem may only slide along Y: two Distance joints from flat faces of the slot keep it level and on the axis, 0.2 mm clear. The roller turns on its pin: Fixed pin, Revolute roller.
FreeCAD has no joint for a roller touching a cam. So the stem keeps one movement, along Y, and you slide it until the roller touches, as the spring would.
0.2 mm.0.2 mm. Check: the stem sits in the slot and slides only along Y.1 mm. Check: the roller hangs 1 mm under the stem, in the cam's layer.Spring in the assembly's tree, Toggle Grounded. It has no joint: the spring only sits round the stem, so its place comes from the spreadsheet.−90° about Axis x 1, y 0, z 0: the coil now lies along Y.=, then Spreadsheet.GuideY - Spreadsheet.SpringLength, Enter. In z type =, then Spreadsheet.CamThickness + 23.5, Enter. Leave x at 0. Check: the spring lies round the stem, from the collar to the guide.A part on the wrong side of a face: change the sign of that joint's Distance or Offset. FreeCAD 1.1 measures it along the first part picked.
Turn the knob so that a cam angle in the table points at the roller, slide the stem until the roller touches, and Measure from the shaft's axis to the roller's axis:
| Cam angle | Lift s | Shaft to roller axis |
|---|---|---|
| 0° (start of the rise) | 0 | 50.00 mm |
| 30° | 2.93 | 52.93 mm |
| 60° | 10.00 | 60.00 mm |
| 90° | 17.07 | 67.07 mm |
| 120° to 180° (high dwell) | 20.00 | 70.00 mm |
| 300° to 360° (low dwell) | 0 | 50.00 mm |
Check it: we turned this model a full turn in FreeCAD 1.1 and found the roller's place from the cam's own outline at every degree: the lift follows the harmonic rise, the dwells and the return to within 0.03 mm, the roller touches the cam everywhere and never cuts into it, the largest pressure angle is 14.4°, and no other parts touch. The spring pushes with 4.8 N with the follower down and 12.8 N up; on a 238 g follower that keeps the roller on the cam up to about 460 rpm, far above a hand on the knob.
Checked on this build in FreeCAD 1.1.4: Tests 1, 2 and 3 and the Compact and Extended sets each rebuild with the lift within 0.05 mm of the law and no part touching another. The slot, the roller, its pin and the spring follow: the spring stays on the stem's axis from the collar to the guide, and is 30 mm long at full lift, well above the 17.1 mm at which its coils would close. With the guide at a typed 140 mm, the Extended set (50 and 30) left it only 10 mm: the coils would close before the top of the lift. The GuideY formula moves the guide out instead.
Ours, to compare with yours. Open Section and move the cut through the follower to see the roller on its pin.
Open it to compare with yours, or start from it.
This build draws the exact edge: the seven points of the table, short arcs through them, and the return as their mirror image. The single arc is not used; it is up to 5.1 mm off and turns a 13° corner where it meets the high dwell.
Cam. Create sketch on XY_Plane.75. Select it again, Constrain angle (K, A), ƒx Spreadsheet.RiseAngle. Check: the line points at 120°.Spreadsheet.RiseAngle + Spreadsheet.DwellAngle1 (180°); 75 long at ƒx Spreadsheet.RiseAngle + Spreadsheet.DwellAngle1 + Spreadsheet.ReturnAngle (300°); 80 long at ƒx Spreadsheet.RiseAngle + Spreadsheet.DwellAngle1 / 2 (150°, the mirror line).Spreadsheet.BaseCircleRadius. If an end did not snap: select it and the line, Constrain point onto object (O). This is the low dwell.Spreadsheet.PrimeCircleRadius. This is the high dwell.Spreadsheet.Pt1x. Then Constrain vertical distance (I), ƒx Spreadsheet.Pt1y. Check: the point jumps to (39.14, 11.65).Pt2x, Pt2y up to Pt7x, Pt7y.Spreadsheet.ShaftRadius: the shaft hole. Check: Fully constrained.Spreadsheet.CamThickness.Why arcs, not a B-spline: each arc is fixed by its three points, so the sketch is fully constrained and follows every change in the table. Four arcs lie within 0.03 mm of the exact edge and meet at less than 0.4°. A B-spline through the points keeps loose handles at its ends, and FreeCAD 1.1 cannot pin them without extra rules.
A workshop cannot make the cam mechanism from the 3D model alone. It needs one sheet with the sizes, the limits on the sizes that matter, and a cut along the follower that shows the cam on its shaft, the roller on its pin and the stem in its guide. Here is that sheet, and the TechDraw steps to make it.
A3_Landscape_ISO5457_advanced.svg. Fill the title block.ItemList, then Insert Spreadsheet View. Insert Balloon Annotation for items 1 to 8.⌀20 H7/p6 (cam on shaft), ⌀20 H8 and ⌀19.6 h7 (shaft in the boss), ⌀6 H7/p6 and ⌀6.2 H8 (roller pin and roller).Symbols/gd-and-t for the two frames below, datum A on the underside of the base and datum B on the boss bore. Then Export Page as PDF.
The cam is pressed onto the shaft; the shaft turns in the boss on a smaller diameter, 19.6 mm, which passes through the bore of the cam before the pressed part goes in. The roller turns on a pin pressed into the stem, and the stem slides in the guide.
| Where | Fit | Hole, mm | Shaft, mm | Gap, mm |
|---|---|---|---|---|
| Cam on the shaft | ⌀20 H7/p6, pressed | 20.000 to 20.021 | 20.022 to 20.035 | −0.035 to −0.001 (interference) |
| Shaft in the boss | ⌀20 H8 on ⌀19.6 h7, turning | 20.000 to 20.033 | 19.579 to 19.600 | 0.400 to 0.454 (clearance) |
| Roller pin in the stem | ⌀6 H7/p6, pressed | 6.000 to 6.012 | 6.012 to 6.020 | −0.020 to 0 (interference) |
| Roller on its pin | ⌀6.2 H8 on ⌀6 p6, turning | 6.200 to 6.222 | 6.012 to 6.020 | 0.180 to 0.210 (clearance) |
| Stem in the guide slot | 15 h7 in 15.4 (ISO 2768-m), sliding | 15.2 to 15.6 | 14.982 to 15.000 | 0.200 to 0.618 (clearance) |
| Frame | On | Why |
|---|---|---|
| Datum A | underside of the base | the face the mechanism stands on |
| Datum B | the axis of the boss bore | the axis the cam turns about |
| ⊥ ⌀0.05 | A | the boss bore | the cam turns flat, square to the roller, so the roller runs on its whole width |
| ⌖ 0.1 | B | the slot in the guide | the follower moves on a line through the cam axis, so the lift follows the cam as designed |
Check: the cut runs along the follower through the cam axis; parts that touch are hatched in different directions; the shaft and the roller pin are plain; the spring is drawn as its outline.
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.
Comments