Master parametric CAD design by creating a complete slider crank mechanism, one of engineering’s most fundamental motion conversion mechanisms. Learn FreeCAD from scratch through real-world mechanical design. #FreeCAD #SliderCrank #ReciprocatingMotion #KinematicDesign
🎯 Learning Objectives
By the end of this lesson, you will be able to:
Navigate the FreeCAD interface and understand workbenches
Create fully constrained 2D sketches with geometric and dimensional constraints
Build parametric 3D parts controlled by spreadsheet parameters
Assemble multi-part mechanisms with motion constraints
Generate professional technical drawings for documentation
🔧 Engineering Context: Why This Mechanism Matters
The slider crank mechanism is one of the most fundamental and widely used motion conversion mechanisms in mechanical engineering. It converts continuous rotational motion into reciprocating linear motion (or vice versa), powering everything from internal combustion engines to reciprocating compressors and pumps.
Real-World Applications
The slider crank appears everywhere in engineering:
The Engineering Problem
Design Challenge: Given a rotating crankshaft, how do we create linear reciprocating motion with controlled stroke length and predictable motion characteristics?
📚 Mechanism Fundamentals
Components and Motion
A slider crank consists of four elements working together:
When you first open FreeCAD, you’ll see four key areas:
Top toolbar
Workbench selector (dropdown)
Common tools and commands
Left sidebar (Model Tree)
Shows all objects in your document
Hierarchical organization
Click to select, double-click to edit
Center (3D Viewport)
Where you see and interact with your model
Navigate in 3D space
Primary design area
Bottom (Report View)
Console messages
Python console access
Error reporting
🔧 What Are Workbenches?
FreeCAD organizes tools into workbenches - specialized tool collections for different tasks. Think of them as different “modes” optimized for specific workflows.
Key Workbenches for This Lesson:
Part Design - Creating individual parametric parts (primary workbench)
Sketcher - Creating 2D constraint-based sketches
Spreadsheet - Parameter tables and calculations
Assembly - Combining parts with constraints
TechDraw - Creating engineering drawings
Essential Navigation Controls:
Action
Control
Rotate view
Middle mouse button + drag or Shift + Right mouse button
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!
Spend 2 minutes navigating the empty 3D view using these controls. Muscle memory now saves time later!
💡 Part 2: Parametric Design Strategy
Unlike direct modeling where you just “draw shapes,” parametric design means defining design intent through relationships, controlling geometry with parameters, and ensuring changes propagate correctly throughout your model. This is how professionals design—build it once, change it instantly.
Our Design Approach
🎯 Two-Parameter Control Philosophy
We’ll control the entire slider crank mechanism with just two parameters:
CrankRadius = 30 mm
RodLength = 100 mm
Change these two values → entire mechanism updates automatically!
Different radii because they connect to different pins!
Create the structural beam:
Rectangle tool
Draw rectangle enclosing both circles horizontally
Press Escape
Symmetric constraint:
Select top edge of rectangle
Select bottom edge of rectangle
Select the horizontal centerline
This centers rectangle about the line!
Dimension width:
Distance constraint
Top edge to bottom edge
Type: 16 mm (rod width)
Enter
Verify and complete:
Confirm “Fully constrained”
Close sketch
Pad: Length = 8 mm
OK
Connecting rod complete!
📦 Part 6: Creating the Slider
Design Intent
The slider is a block that moves linearly, with a hole for the connecting rod pin.
Quick Creation Steps
Body: Create and rename to Slider
Sketch on XY_Plane:
Rectangle: Draw centered at origin
Symmetric constraints: Center about X and Y axes
Dimensions: Width = 40 mm, Height = 30 mm
Circle: At origin for pin hole
Coincident: Circle center to origin
Radius:6 mm
Check: Fully constrained
Pad: Length = 20 mm
Slider complete!
🏗️ Part 7: Creating the Frame
Design Intent
The frame provides:
Pivot mount for the crank
Linear guide for the slider
Creating the Frame
Body:Frame
Sketch on XY_Plane:
Rectangle below origin: 160mm × 20mm
Circle at origin: radius = 8 mm (crank pivot)
Optional: Add slider guide features (rails)
Pad:15 mm
Frame complete!
All four parts are now ready for assembly!
🧩 Part 8: Assembly
Assembly is where your individual parts come together as a functioning mechanism. FreeCAD’s Assembly workbench uses constraints to define how parts relate to each other, allowing you to test motion and verify your design before manufacturing.
Assembly Strategy
🎯 Assembly Constraints Plan
Frame: Fixed (ground link)
Crank: Rotates about fixed pivot at origin
Connecting Rod: Pivots on crank pin and slider pin
This aligns the axes and allows rotation! Crank can now spin about its shaft.
Connect rod to crank:
Rod left hole axis → Crank offset pin hole axis
Axial Align constraint
Connect rod to slider:
Rod right hole axis → Slider pin hole axis
Axial Align constraint
Constrain slider to linear motion:
Select slider bottom face
Select frame top face
Apply Plane coincident or Linear constraint
This keeps slider on the guide!
Test the mechanism:
Try dragging the crank in the assembly view:
Crank should rotate
Rod should follow
Slider should move linearly!
📐 Part 9: Technical Drawing
Creating Professional Documentation
Switch to TechDraw workbench
Create a page:
Insert Page
Choose template: A4_Portrait
Add views:
Insert View → Select Crank body
Position the view by dragging
Add dimensions:
Use Dimension tools: Horizontal, Vertical, Radius
Click features to dimension them
Title block:
Double-click text fields
Enter: Part name, material, scale, your name, date
Export:
Right-click page → Export as PDF
You now have professional engineering documentation!
✅ Part 10: Testing Parametric Control
This is the moment of truth! A truly parametric model updates correctly when you change parameters. Let’s verify your design is intelligent and responsive.
Comments