A slider-crank mechanism converts rotation to reciprocating motion, but the output is only approximately sinusoidal, and the approximation worsens at higher crank-to-rod ratios. When you need pure harmonic motion for vibration testing, shaker tables, or precision pumps, even small deviations introduce unwanted harmonics that corrupt measurements or reduce efficiency. The Scotch yoke produces mathematically perfect sinusoidal output because the slider tracks a pin moving in a circular path through a straight slot. In this lesson you will design a Scotch yoke in FreeCAD with slot-driven kinematics and clearance management. #FreeCAD #ScotchYoke #SinusoidalMotion #HarmonicMotion
Learning Objectives
By the end of this lesson, you will be able to:
Design slot-driven mechanisms with sliding contacts
Implement clearance-aware parametric geometry
Create pure sinusoidal motion systems
Model both rotational and linear sliding motion
Analyze simple harmonic motion through CAD verification
Engineering Context: Why This Mechanism Matters
The Scotch yoke mechanism converts rotary motion to linear motion with perfect sinusoidal characteristics. Unlike the slider-crank mechanism, which produces approximate sinusoidal motion, the Scotch yoke creates mathematically pure sinusoidal displacement, velocity, and acceleration through its elegant slot-driven design.
Real-World Applications
The Scotch yoke delivers pure sinusoidal motion where precision matters:
The Engineering Problem
Design Challenge: Given constant rotational input, create linear reciprocating output with mathematically perfect sinusoidal characteristics in a compact package.
Slot-driven mechanisms require careful attention to clearances and dimensional relationships. Our parametric approach will automatically calculate slot dimensions from crank radius and clearance specifications, ensuring smooth operation at any stroke length.
Our Design Approach
Intelligent Parameter Control
We’ll control the Scotch yoke with:
Primary Parameters:
CrankRadius = 40 mm (determines stroke)
PinDiameter = 12 mm
Calculated Parameters:
Stroke = CrankRadius × 2 (automatic)
SlotWidth = PinDiameter + 2 mm clearance (automatic)
This plane is perpendicular to the yoke’s direction of travel
Draw rail profile
Rectangle tool
Width: 15mm (rail width)
Height: 25mm (rail height)
Position to left side, appropriate to yoke edge
Position the rail
You want it positioned so the yoke will slide against it.
Typical approach:
Distance from center: About YokeWidth/2 + small gap
Or position against yoke side surface
Close sketch
Pad along Y-axis
Click Pad
Type: Dimension
Length: Click ƒx → Spreadsheet.GuideLength
Direction: Ensure it extrudes along Y (yoke travel direction)
Click OK
Left guide rail created spanning 200mm!
You can either:
Option A: Mirror the left rail (if FreeCAD supports it in your workflow)
Option B: Create manually (recommended for learning):
Create Body
Create Body → Rename to GuideRail_Right
Create Sketch on XZ_Plane
Draw rail profile
Rectangle: 15mm × 25mm
Position to right side (mirror position of left rail)
Close sketch
Pad
Length: Click ƒx → Spreadsheet.GuideLength
Click OK
Both guide rails complete!
Alternative approach: Sketch rails on the same plane as simple rectangles at appropriate X-positions, then pad both in same body. This ensures perfect parallelism.
Part 7: Creating the Base Frame
Design Intent
Frame Requirements
Fixed mounting base with:
Crank shaft bearing mount at center
Guide rail mounting surfaces
Stable platform for entire mechanism
Step-by-Step: Frame
Create Body
Create Body → Rename to Frame
Create Sketch on XY_Plane
Draw base plate
Rectangle tool
Width: 250mm
Height: 150mm
Centered at origin (use Symmetric constraints)
Add crank shaft hole
Circle tool
Center at origin (or appropriate position for crank shaft)
Or manually: 11mm radius for 20mm shaft + clearance
Position consideration
The shaft hole should align with where the crank will be mounted. Typically at origin or offset appropriately based on your mechanism layout.
Optional: Add guide mounting features
Flat surfaces for guide bolts
Raised platforms for rail mounting
Keep it simple for this lesson
Close sketch
Pad the frame
Click Pad
Length: 20 mm (frame thickness)
Click OK
Frame complete!
All four parts are now ready for assembly!
Part 8: Assembly
Assembly is where individual parts become a functioning mechanism. For the Scotch yoke, we’ll fix the frame, allow the crank to rotate, and constrain the yoke to pure linear motion along the guides.
Assembly Strategy
Assembly Constraints Plan
Frame: Fixed (ground reference)
Crank: Rotates about shaft axis on frame
Yoke: Constrained to horizontal linear motion by guide rails
Pin-in-slot: Conceptual connection (pin travels within slot)
Use TechDraw dimension tools: Horizontal, Vertical, Radius
Create a diagram showing sinusoidal displacement:
In a separate area of the drawing:
Draw crank at 4 positions: 0°, 90°, 180°, 270°
Show corresponding yoke positions
Plot curve: x = r × sin(θ)
Table of values:
θ (degrees)
x (mm)
0
0
90
40
180
0
270
-40
360
0
Add text annotations:
Title block:
Part: Scotch Yoke Assembly
Scale: 1:2 (or appropriate)
Material: Steel (or as designed)
Designer: Your name
Date: 2025-12-17
Review drawing
Verify all dimensions and views are clear
Export as PDF
Right-click page → Export as PDF
Save as ScotchYoke_Assembly.pdf
Optional: Export as DXF
For CAM or further processing
Professional engineering documentation complete!
Part 10: Testing Parametric Control
The true test of parametric design: changing a single parameter should intelligently update the entire mechanism while maintaining all design relationships and clearances.
Standard parts available - Bearings, pins widely available
Approximate sinusoidal motion acceptable - Most applications don’t need perfect sine wave
Proven design needed - Centuries of engineering refinement
Typical applications:
Internal combustion engines
Compressors (high-speed)
Industrial machinery
Automotive systems
Aspect
Scotch Yoke
Slider-Crank
Motion profile
Perfect sinusoidal
Approximate (harmonic distortion)
Number of moving parts
2 (crank, yoke)
3 (crank, rod, slider)
Overall length
Compact
Longer (rod length)
Primary wear mode
Sliding friction
Bearing wear
Side forces
Minimal
Significant
Speed capability
Low to moderate
High
Friction
Higher (sliding)
Lower (pivoting)
Mathematical simplicity
Simple (pure sine)
Complex (involved equations)
What You’ve Achieved in This Lesson
Slot-Driven Mechanisms
Designed sliding contact geometry with proper clearances
Formula-Based Parameters
Used spreadsheet formulas for intelligent design automation
Simple Harmonic Motion
Created mechanism generating perfect sinusoidal motion
Advanced Parametric Control
Automated clearance calculation and relationship management
Complete Mechanism Library
🎉 Congratulations! You’ve now designed eight fundamental mechanisms:
✅ Slider Crank - Rotary to linear conversion
✅ Four-Bar Linkage - Controlled motion paths
✅ Scissor Lift - Motion amplification
✅ Toggle Clamp - Over-center locking
✅ Pantograph - Motion scaling
✅ Cam and Follower - Programmed motion
✅ Geneva Mechanism - Intermittent indexing
✅ Scotch Yoke - Pure sinusoidal motion
Skills Mastered
✅ Parametric design thinking and strategy
✅ Constraint-based sketching with full definition
✅ Master sketch methodology for complex assemblies
✅ Assembly with motion constraints and testing
✅ Technical drawing generation and documentation
✅ Formula-based parameter relationships
✅ Design verification and testing protocols
✅ Clearance management and tolerance design
Next Steps
Apply Your Skills:
Thank you for completing this course! You now have the foundation to design sophisticated mechanical systems with professional parametric CAD methodology.
Happy designing!
Comments
Loading comments...
Predict first
The crank of a Scotch yoke turns at constant speed. Where in its stroke does the yoke move fastest?
See it: a pure sine, and how far a slider crank is from it
Yoke position x = r sin θ
Largest gap of the slider crank from the sine
Yoke speed v = r ω cos θ
Yoke acceleration a = −r ω² sin θ
Stroke = 2r
Peak acceleration: yoke, slider crank
The start values are the lesson's: a crank radius of 40 mm, a 12 mm pin, a yoke of 2r + 60 mm with a slot of 2r + 30 mm, guide rails 200 mm long and a crank speed of 2 rad/s. The crank angle θ is counted from the pin pointing right, along the slot. The graph has the same height scale as the drawing, so the dashed line joins the yoke to its point on the curve. The gold line is a slider crank with the same crank and a connecting rod l, measured from the middle of its stroke: it is not a sine, and the gap shrinks as the rod gets longer.
Check yourself
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. The lesson's yoke (crank radius 40 mm) runs at 10 rad/s, and its peak acceleration is 4.0 m/s². You double the crank speed to 20 rad/s. What is the peak acceleration now, and so the peak force needed to move the yoke?
2. A Scotch yoke and a slider crank have the same 40 mm crank; the slider crank has a 120 mm connecting rod. Both cranks point at a right angle to the line of travel. The yoke is then exactly in the middle of its stroke. Where is the slider?
3. For a crank radius of 50 mm and a 12 mm pin, a student makes the slot exactly as long as the stroke, 100 mm. What happens?
Coming here first?
This lesson assumes four skills. Each link opens the part that teaches it:
A block with a slot the pin runs in; it slides on the rails
Frame
A plate on four feet, a boss for the shaft, two rails with a ledge
Shaft
Pressed into the crank, turning in the frame, a knob under the plate
This build changes two cells and adds one. Add Clearance in row 16, value 0.2, with its alias. Then:
Cell
Formula
Why
SlotWidth
=PinDiameter + 2 * Clearance
12.4 mm. The 14 mm slot lets the yoke move 2 mm with the crank held: at each end of the stroke the crank turns before the yoke moves back
GuideLength
=2 * (CrankRadius + YokeHeight / 2) + 40
Still 200 mm here, but it grows with the stroke: with CrankRadius 80 the typed 200 lets the yoke run 20 mm off its rails
This build makes the rails and the frame as one body, as the lesson's "alternative approach" suggests: Part 7 below draws both. The rails now have a ledge: the yoke slides on it, 0.5 mm above the crank disk, and a wall 0.2 mm from its side keeps it straight.
A plate on four feet, so the shaft can go down through it to a knob underneath. The yoke covers the crank's axis at every angle, so there is no room for a knob on top.
Create body, rename it Frame. Hide the crank and the yoke. Create sketch on XY_Plane.
Rectangle round the origin. Symmetric: two opposite corners, then the origin. Width ƒxSpreadsheet.YokeWidth + 60, height ƒxSpreadsheet.GuideLength + 20. Check: Fully constrained. Close.
Pad10 mm. Check: a plate 200 × 220 mm.
Click the plate's top face, Create sketch: a circle on the origin, radius 20. Close. Pad2 mm: the boss the crank sits on.
Click the boss's top, Create sketch: a circle on the origin, radius ƒxSpreadsheet.ShaftRadius. Close. Pocket, Type Through all: the bore.
Create sketch on XZ_Plane (you look at the frame from the front). Draw the right rail's section with Polyline, six corners, and fix each with horizontal and vertical distances from the origin (W is half the yoke's width, 70 mm):
Corner
x, z (mm)
1, ledge inside, bottom
W − 8, 10
2, outside, bottom
W + 15, 10
3, outside, top
W + 15, 52
4, wall, top
W + 0.2, 52
5, wall, ledge
W + 0.2, 27.5
6, ledge inside, top
W − 8, 27.5
Type each with ƒx so the rails follow the spreadsheet: W is Spreadsheet.YokeWidth / 2, 0.2 is Spreadsheet.Clearance, 27.5 is 12.5 + Spreadsheet.CrankThickness, 52 is 12.5 + Spreadsheet.CrankThickness + Spreadsheet.YokeThickness + 4.5.
Draw the left rail the same way, with every x negative. Check: Fully constrained, two closed sections. Close.
Pad: Length ƒxSpreadsheet.GuideLength, tick Symmetric to plane. Check: two rails 200 mm long, joined to the plate.
Click the plate's bottom face, Create sketch: four squares 20 × 20 mm, each centred under a rail's outer edge, 5 mm in from the rail's end (x ±85, y ±95). Close. Pad40 mm: the feet.
Check it. Body Frame: Pad, Pad, Pocket, Pad, Pad. The ledges stand 2 mm clear of the crank disk's edge.
Shaft
Create bodyShaft, sketch on XZ_Plane, Polyline through 0,0 · 20,0 · 20,15 · 9.9,15 · 9.9,37 · 10,37 · 10,52 · 0,52, fix the points, Revolution about V_Axis, then Fillet3 on the knob's bottom edge. Below the step at 37 the shaft is 19.8 across and turns in the bore; above it, 20 across, it is pressed into the crank and ends flush with its top.
Check it. Body Crank (Part 4): Pad, Pad. Body Shaft: Revolution, Fillet.
In the workbench list, pick Assembly. Create Assembly. Insert Component (I): Frame, Crank, Yoke, Shaft.
Select Frame, Toggle Grounded (G).
Revolute (R): the top edge of the bore in the boss, then the crank's shaft hole, bottom edge. Check: the crank lies on the boss.
Fixed (F): the crank's shaft hole, bottom edge, then the shaft's step edge, where it goes from 19.8 to 20. Check: the knob is under the plate.
Distance (D): the top face of the right rail's ledge, then the yoke's bottom face. Distance 0. Check: the yoke lies on the ledges, 0.5 mm above the crank disk.
Distance: the right rail's wall, then the yoke's right side face. Distance −0.2 mm. Check: 0.2 mm between the yoke and each wall.
Turn the crank to the angle you want, then drag the yoke along the rails until the pin sits in the middle of the slot.
A part on the wrong side of a face: change the sign of that joint's Distance. FreeCAD 1.1 measures it along the first part picked. FreeCAD has no pin-in-slot joint, so the yoke keeps one movement, along the rails. A Distance joint from the slot's face to the pin's round face did not move the yoke in our FreeCAD 1.1.4 test, so this build leaves it out.
Checked on this build: we turned this model a full crank turn in FreeCAD 1.1, every 2°, with the yoke slid each time until the pin, found from the crank's own shape, sat in the middle of the slot. The yoke was at 40 sin θ to a millionth of a millimetre at every angle: 20.000 mm at 30°, 40.000 at 90°, a stroke of 80.000 mm. Its motion has no second or third harmonic: it is pure sine. No two parts touched; the yoke rides 0.5 mm over the crank disk and 0.2 mm from each rail wall, the pin stops 9 mm short of each slot end, and the yoke stays 20 mm inside the rails' ends at full travel. With the crank held, the yoke can move 0.4 mm: that is the lost motion at each reversal (2.0 mm with the lesson's 14 mm slot).
Ours, to compare with yours. Open Parts and hide the yoke to see the crank pin in its slot.
The scotch yoke: four parts. Drag to turn, pinch or scroll to zoom. Open in the full viewer.
Checked in FreeCAD 1.1 on this build: Test 1 (CrankRadius 50), Test 2 (PinDiameter 16) and Test 3 (20 and 8; 80 and 20) each rebuild with every feature valid, the yoke at r sin θ over a full turn, nothing touching, the crank disk 2 mm clear of the ledges and the yoke 20 mm inside the rails' ends. With the lesson's typed GuideLength of 200, Test 3 large runs the yoke 20 mm off its rails, and the typed 55 mm joint of the old Part 8 put the Test 1 yoke into a rail.
The model you build, one crank turn: the yoke travels 80 mm and back, exactly 40 sin θ.
Make it buildable: the drawing
A workshop cannot make the Scotch yoke from the 3D model alone. It needs one sheet with the sizes, the limits on the sizes that matter, and a cut through the crank pin that shows it in the slot. Here is that sheet, and the TechDraw steps to make it.
Page. Workbench TechDraw, Insert Page using Template, A3_Landscape_ISO5457_advanced.svg. Fill the title block.
Plan. Select the assembly, Insert View, direction Top, scale 0.5, turned so the yoke slides across the page. It shows the slot, the rails and the crank, and carries the balloons.
Section A-A. Select the plan, Insert Section View, plane across the slot through the axis of the crank pin, symbol A, scale 1. Place it above the plan: in first angle, this is the front view.
Hatching. Set Cut Surface Display to Hide and hatch each cut part with Apply Geometric Hatch to Face: the frame one way, the crank the other. The pin is part of the crank, so it is hatched with it. The yoke touches both: give it closer lines.
Item list and balloons. A spreadsheet ItemList, then Insert Spreadsheet View. Insert Balloon Annotation for items 1 to 4.
Fits. In the section, pin ⌀12 h7 and slot 12.4 H8; under the plate, ⌀20 H7/p6, bore ⌀20 H8 and shaft ⌀19.8 h7. In the plan, the yoke and rail widths with their limits in the dimension's tolerance fields.
Frames.Insert SVG Symbol from Symbols/gd-and-t for the three frames below, and datum A on the feet. Then Export Page as PDF.
The finished drawing (click for the PDF). Made in FreeCAD.
The crank is pressed onto the shaft; the shaft turns in the frame on 19.8 mm, which passes through the crank's bore first. The pin slides in the slot with 0.4 mm to spare, and the yoke slides between the rail walls.
Where
Fit
Hole, mm
Shaft, mm
Gap, mm
Crank 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 frame
⌀20 H8 on ⌀19.8 h7, turning
20.000 to 20.033
19.779 to 19.800
0.200 to 0.254 (clearance)
Pin in the slot
slot 12.4 H8 on pin ⌀12 h7, sliding
12.400 to 12.427
11.982 to 12.000
0.400 to 0.445 (clearance)
Yoke between the rails
140 (0/−0.1) in 140.4 (+0.1/0), sliding
140.4 to 140.5
139.9 to 140.0
0.4 to 0.6 (clearance)
Frame
On
Why
Datum A
the feet of the frame
the faces the machine stands on
⊥ ⌀0.05 | A
the bore, ⌀20 H8
the crank turns flat on its boss
∥ 0.05 | A
the two ledges
the yoke slides level, 0.5 mm clear of the crank disk all the way
⊥ 0.05 | A
the two rail walls
the yoke slides without climbing or twisting
Check: the cut runs through the pin; the frame, the crank with its pin and the yoke are told apart by direction or spacing of the lines; the shaft below the plate is plain; the widths 140 and 140.4 carry their limits.
Comments