Skip to content
You Start with one site
Amounts in Start with one site
Mechanical Engineering & Design · Course

Slider Crank Mechanism

Lesson 1 of 10 26 min read
Made with FreeCAD 1.1checked November 2026Newer version?
Stays the same
  • Sketches, constraints and degrees of freedom
  • Design intent: spreadsheet, sketch, feature, assembly
  • Part Design features: pad, pocket, revolve, fillet
  • Drawings from the model, not drawn by hand
May look different
  • Menu and toolbar places
  • The Assembly workbench, new in 1.0 and growing fast
  • Dialog layouts and default settings

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.

Found this useful?

Every internal combustion engine, every reciprocating compressor, and every hand-operated water pump relies on the same kinematic chain: a crank, a connecting rod, and a slider. Despite its simplicity, the mechanism’s behavior changes significantly when you adjust the crank-to-rod ratio or add an offset, and predicting those changes from a sketch alone is difficult. In this lesson you will build a complete slider-crank mechanism in FreeCAD from scratch, with parametric dimensions that let you explore how link lengths affect stroke, velocity, and mechanical advantage. #FreeCAD #SliderCrank #ReciprocatingMotion #KinematicDesign

Learning Objectives

By the end of this lesson, you will be able to:

  1. Navigate the FreeCAD interface and understand workbenches
  2. Create fully constrained 2D sketches with geometric and dimensional constraints
  3. Build parametric 3D parts controlled by spreadsheet parameters
  4. Assemble multi-part mechanisms with motion constraints
  5. 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:

1. Crank (Link 2)

  • Rotates about fixed pivot (crankshaft)
  • Radius r determines stroke length

2. Connecting Rod (Link 3)

  • Transmits motion between crank and slider
  • Length l affects motion profile

3. Slider (Link 4)

  • Moves linearly along fixed path
  • Provides reciprocating output

4. Frame (Link 1)

  • Fixed reference
  • Provides pivot and guide

What You’ll Build



By completing this lesson, you’ll create:

Parametric Parts

Four fully constrained parts controlled by spreadsheet parameters

Working Assembly

Complete mechanism with motion constraints that actually moves

Technical Drawing

Professional engineering drawing suitable for manufacturing

Parameter Control

Change two values, entire mechanism updates automatically

Part 1: Getting Started with FreeCAD



Installing FreeCAD

  1. Download FreeCAD 0.21 or later

    Download Instructions Software Requirements and Download

    Free & Open Source Cross-Platform

  2. Install and launch

    Follow the installer for your operating system

  3. Verify installation

    You should see the Start Page with recent files and examples

Understanding the Interface

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

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!

This is the power of parametric design.

Design Workflow

  1. Create Spreadsheet - Parameter table

  2. Create Crank - Part 1

  3. Create Connecting Rod - Part 2

  4. Create Slider - Part 3

  5. Create Frame - Part 4

  6. Assemble with constraints

  7. Create technical drawing

  8. Test parametric control

Part 3: Creating the Parameter Spreadsheet



Building Your Parameter Table

  1. Create a new document

    File → New (or Ctrl+N)

    Save it as SliderCrank.FCStd

    File → Save As... → SliderCrank.FCStd
  2. Switch to Spreadsheet workbench

    Use the workbench dropdown at top

  3. Create a spreadsheet

    Spreadsheet → Create Spreadsheet

    A “Spreadsheet” object appears in the left tree

    FreeCAD Spreadsheet Workbench

  4. Double-click to open the spreadsheet

    Click on “Spreadsheet” in the tree

Entering Parameters

In the spreadsheet, create this table:

CellValueMeaning
A1ParameterHeader
B1ValueHeader
C1UnitHeader
A2CrankRadiusParameter name
B230Numeric value
C2mmUnit (documentation)
A3RodLengthParameter name
B3100Numeric value
C3mmUnit

Ctrl+S to Save the spreadsheet and then Close it when done (click the Close button).

Your parameter foundation is ready!

Part 4: Creating the Crank



Design Intent

Crank Requirements

The crank is a rotating disc with:

  • Central hole for the fixed pivot (shaft)
  • Offset hole for the connecting rod pin
  • Parametric control - radius driven by Spreadsheet.CrankRadius

Step-by-Step: Crank Part

  1. Create a Body

    • Switch to Part Design workbench
    • Click Create Body button (or Part Design → Create body)
    • A “Body” object appears in the tree
    • Right-click → Rename → type Crank
  2. Create a Sketch

    • Select the “Crank” body in tree
    • Click Create Sketch button (or Sketch → Create Sketch)
    • Dialog asks: Choose a plane
    • Select XY_Plane

    You’re now in Sketcher workbench (automatic switch)

Understanding the Sketcher

The Sketcher is where you create 2D profiles that become 3D parts.

Key Concept: Constraints

A sketch is “fully constrained” when every dimension is defined—zero degrees of freedom (DOF). This is the goal!

Why full constraints matter:

  • ✅ Predictable behavior when parameters change
  • ✅ No unexpected movement or sizing
  • ✅ Professional parametric design

Drawing the Crank Profile

  1. Draw the outer circle

    • Click Circle tool drop down arrow then click Create Circle by Center (or press ‘G’ and then ‘C’ in quick succession)
    • Click at the origin (look for white/yellow dot at center)
    • Move mouse outward and click to complete circle
    • Press Escape
  2. Draw the shaft hole

    • Circle tool again
    • Click at origin
    • Draw a smaller circle inside
    • Press Escape
  3. Draw the rod pin hole

    • Circle tool again
    • Click somewhere to the right of center, at the origin horizontal line
    • Draw a small circle
    • Press Escape

    You now have 3 circles, but they’re not constrained properly yet!

Adding Geometric Constraints

Make shaft hole concentric with origin (if you did not already ‘Click at the origin’ above):

  1. Click Coincident constraint tool
  2. Click the center of the inner small circle
  3. Click the origin point
  4. Press Escape

The shaft hole is now locked to the center!

Adding Dimensions (The Parametric Part!)

  1. Click the outer circle, then press ‘K’ and ‘R’ in quick succession to activate the Radius Constraint Dimensioning Tool (or go to Sketch → Sketcher Constraints → Constrain Radius).
  2. Type 40
  3. Click OK.

Crank disk is now 40mm radius.

Finalizing the Sketch

  1. Check the solver

    Look at “Solver Messages” panel (left side):

    • Should say “Fully constrained”
    • If it says “X degrees of freedom”, you’re missing constraints
  2. Close the sketch

    Click the Close button in the toolbar

    The sketch is now a 2D profile visible in the 3D view

Creating 3D: Pad Operation

Pad Operation

Pad extrudes a 2D sketch into a 3D solid by adding thickness perpendicular to the sketch plane.

Think: “Push the sketch upward to create volume”

Part 5: Creating the Connecting Rod



Design Intent

The connecting rod is a rectangular plate with circular holes at each end for pins.

Rod Requirements

  • Parametric length - Controlled by Spreadsheet.RodLength
  • Holes at both ends - For crank pin and slider pin
  • Rectangular body - Structural beam between holes

Creating the Rod

  1. Create new Body

    • Part Design workbench
    • Create Body
    • Rename: ConnectingRod
    • Select Crank, right-click, then choose Hide Selection to remove the crank obstruction from the next sketch/body
  2. Create Sketch

    • Select ConnectingRod body
    • Create Sketch → XY_Plane

Drawing the Rod Profile

Create the end profiles:

  1. Circle tool (press G, C)

  2. Click anywhere on the left side of the sketch area and draw the first circle

  3. Repeat the process to the right of the first circle (arbitrary distance) to draw the second circle

  4. Press Escape

  5. Select the left circle

  6. Radius constraint: Press K, R

    • Type: 10 mm
    • Enter
  7. Repeat for right circle:

    • K, R → Radius = 8 mm
    • Enter

The two circles define the rod ends. Their spacing will be controlled later using constraints.

Verify and create solid:

  1. Confirm Fully constrained
  2. Close sketch
  3. Pad → Length = 8 mm
  4. OK

The outer rod body is 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

  1. Hide the ConnectingRod by clicking the eye

  2. Body: go to Part Design → Create Body, then rename to Slider

  3. Sketch on XY_Plane:

    • Sketch: Click Slider, then go to Sketch → Create Sketch, click XY-Plane
    • Rectangle: Press G, R, then click an arbitrary location to draw a rectangle, then Escape or right click
    • Symmetric constraints: Click top right corner, then bottom left corner, then click origin, then press S to center the rectangle about X and Y axes
    • Length Dimension: Click the bottom left corner, then the bottom right corner, then press L, then enter Length = 40 mm
    • Height Dimension: Click the bottom left corner, then the top left corner, then press I, then enter Height = 30 mm
  4. Check: Fully constrained, then close the sketch

  5. Pad: Length = 20 mm

  6. Circle: At origin for pin hole

    • Click the pad and select the top face
    • Go to Sketch → Create Sketch
    • Press G, C to draw a circle of an arbitrary radius starting from the origin within the slider block, then right click or Escape
    • Click the circle arc, press K, R, then enter radius 10 mm (arbitrary within the block to achieve a fully constrained sketch), and close the sketch
    • Click the Hole tool, set depth to Through all, and diameter to be 12 mm, then OK
    • Press CRTL + S to save your part design

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

  1. Body: Frame

  2. Sketch on XY_Plane:

    • Rectangle below origin: 160mm × 20mm
    • Circle at origin: radius = 8 mm (crank pivot)
    • Optional: Add slider guide features (rails)
  3. 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

  1. Frame: Fixed (ground link)
  2. Crank: Rotates about fixed pivot at origin
  3. Connecting Rod: Pivots on crank pin and slider pin
  4. Slider: Constrained to linear horizontal motion

Creating the Assembly

  1. Switch to Assembly workbench

    Use workbench dropdown

  2. Create new assembly

    Assembly → Create Assembly

  3. Add parts

    Drag parts from tree or use “Add Part” button:

    • Frame
    • Crank
    • ConnectingRod
    • Slider

Part 9: Technical Drawing



Creating Professional Documentation

  1. Switch to TechDraw workbench

  2. Create a page:

    • Insert Page
    • Choose template: A4_Portrait
  3. Add views:

    • Insert View → Select Crank body
    • Position the view by dragging
  4. Add dimensions:

    • Use Dimension tools: Horizontal, Vertical, Radius
    • Click features to dimension them
  5. Title block:

    • Double-click text fields
    • Enter: Part name, material, scale, your name, date
  6. 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.

Verification Tests

  1. Open Spreadsheet

    Double-click Spreadsheet in tree

  2. Change CrankRadius

    • Click cell B2
    • Type: 40
    • Press Enter
  3. Recompute

    Press Ctrl+R or click Recompute button

  4. Observe changes:

    • Crank pin moves outward!
    • Stroke increases to 80mm!
    • Rod adjusts!
    • Assembly updates!

✅ Success! Your model is parametric!

Learning Outcomes



Congratulations! By completing this lesson, you have:

Navigated FreeCAD

Interface, workbenches, 3D navigation

Created Constrained Sketches

Geometric and dimensional constraints

Built Parametric Parts

Spreadsheet-driven design

Assembled Mechanisms

Motion constraints and testing

Generated Drawings

Professional documentation

Tested Parametric Control

Verified intelligent updates

Most importantly: You’ve designed a complete, functional mechanism from scratch using professional parametric CAD methodology!

Design Verification Checklist



Use this checklist to verify your design:

Extension Challenges



Ready for more? Try these enhancements:

  1. Add fillets

    Use Fillet tool to round sharp edges (3mm radius)

  2. Change materials

    Assign different materials to parts (steel, aluminum)

  3. Add more parameters

    Control crank thickness, rod width, slider size via spreadsheet

Common Issues and Solutions



“Sketch not fully constrained”

“Cannot pad sketch”



Next Steps



In Lesson 2: Four-Bar Linkage Mechanism, you’ll explore:

Master Sketch Approach

Control multiple parts from one kinematic layout

Construction Geometry

Reference-only geometry for design intent

Grashof's Theorem

Link length relationships and motion types

External References

Parts referencing shared geometry

Each lesson builds on these fundamentals while introducing new mechanisms and CAD techniques!



Comments

Loading comments...
© 2021-2026 SiliconWit®. All rights reserved.
Coming here first?

Part 1 starts with installing FreeCAD, and each tool is explained where it is first used. New to FreeCAD? These parts of the hinge lesson show each tool once:

Words used here
  • Kinematics: the geometry of motion, without forces
  • Degrees of freedom: the ways a part or a sketch can still move
  • Pressed in: a pin in a hole of its own size: it turns with the part
  • Clearance: a hole 0.2 mm larger than its pin, so the part turns on it
  • Counterbore: a short, wider hole that sinks a pin head below the face
  • E-clip: a spring clip that snaps into a groove on a pin and holds it in
  • M4 tapping hole: 3.4 mm: the hole an M4 thread is cut in
  • Fit, section, GD&T: used on the drawing at the end. Five minutes each: limits and fits, section views, GD&T basics
Predict first

A crank with a radius of 30 mm drives a slider through a connecting rod 100 mm long. The slider travels 60 mm. You fit a longer rod, 150 mm, and change nothing else. What is the travel of the slider now?

rod 100 mm:stroke 60 mmrod 150 mm:stroke 60 mm
rod 60 mm: leans 30°rod 100 mm: leans 17.5° side push 0.58 × Fside push 0.31 × F
See it: two lengths decide the motion

Stroke = 2 × r
Largest rod angle
Ratio l / r
Slider position x now
Rod angle φ now
Slider travels between

The start values are the lesson's: a crank radius of 30 mm and a rod of 100 mm. The slider position x is measured from the crank pivot to the slider pin, and the rod angle φ from the line of travel. Move the rod length and watch the stroke stay still while the largest rod angle changes. Then move the crank radius: the stroke follows it. The sideways push in the note is for a rod without weight and a guide without friction.

Check yourself

Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.

1. A hand pump needs a piston travel of 90 mm. In the store there is a connecting rod with 100 mm between its holes. Which crank radius do you need, and can you use this rod?

2. In the lesson's mechanism (crank radius 30 mm, rod 100 mm) the slider pin moves between 70 mm and 130 mm from the pivot. The crank stands at 90° to the line of travel. How far is the slider pin from the pivot?

3. A student sketches a bracket with one hole. The Sketcher reports 1 degree of freedom, but the shape looks right and Pad makes the solid without an error. Months later the plate width in the spreadsheet is changed. What is the risk?

Watch it build: the crank, from rough circles to a part
9 freedoms3 circles: x, y, radius 4 freedomscentres on the origin,pin hole level ƒx 30 R 4.2, R 4ƒx CrankRadius = 30ƒx CrankRadius + 10 = 40 Fully constrained2 + 2 + 1 + 3 + 1 = 9 Pad 10 mma disc with two holes
  1. Three circles clicked at rough sizes. Each has a centre (x, y) and a radius: 9 freedoms.
  2. Both centres on the origin (2 + 2) and the pin hole level with it (1): 4 freedoms left.
  3. The hole radii, 4.2 and 4 mm, are typed. The pin distance (30 mm) and the disc radius (40 mm) come from the spreadsheet.
  4. 2 + 2 + 1 + 3 + 1 = 9 removed: the solver reports fully constrained.
  5. Pad 10 mm: a crank disc with a shaft hole and a pin hole 30 mm out.
Slider farthest: the crank points at the sliderpivot Opinrodsliderr = 30 mml = 100 mmx = l + r = 130 mmSlider nearest: the crank points awaypivot Opinrodsliderr = 30 mmx = l − r = 70 mmstroke S = 2r = 60 mm
The two ends of the stroke, to scale for r = 30 mm and l = 100 mm. In both the crank and the rod lie on one line.
Spreadsheetr = 30, l = 100 mmnamevalueCrankRadius30RodLength100Sketchoutline + rulesrR 40PartsolidpaddedAssemblyparts + jointsthree pins, one guide
Each step reads from the one before it, so a new value in the spreadsheet reaches every part and the assembly.

Eight parts and an assembly that turns, all driven by two values in a spreadsheet.

PartJob
Crank, rod, sliderThe moving links
Base, guideThe frame: a plate with the pivot, and a channel bolted to it
Three pinsThe crank turns on one, the rod on the other two

Each moving part sits in its own layer, 0.5 mm clear of the next, so nothing rubs or collides.

SpreadsheetABC1ParameterValueUnit2CrankRadius30mmalias CrankRadius3RodLength100mmalias RodLengthModel treeSliderCrankSpreadsheetB2 and B3 now have namesa sketch can use
What you should have after this part: two named cells and a Spreadsheet object in the tree. Menus can move between versions; this result does not.

Older version: a video of the first design of this lesson, before the pins, the guide and FreeCAD 1.1.

The crank is a disc 10 mm thick with two holes. One dimension sets the motion: the centre to pin hole distance, Spreadsheet.CrankRadius. The rest are for fit:

  • Centre hole radius 4.2 mm: the 8 mm pivot pin turns in it with 0.2 mm to spare.
  • Pin hole radius 4 mm: the crank pin is pressed in and turns with the crank.
  • Disc radius CrankRadius + 10, so the pin hole never breaks out of the rim.
  • A counterbore 14 mm wide and 3 mm deep sinks the pivot pin's head below the top face, where the rod passes over it.
  1. Hole radii: select the centre circle, Constrain radius (K, R), type 4.2. The pin hole circle: 4.
  2. Disc radius: select the outer circle, K, R, click ƒx and type Spreadsheet.CrankRadius + 10. It shows 40 mm.
  3. Pin distance: the origin, then the pin hole centre, Constrain horizontal distance (L), ƒx, Spreadsheet.CrankRadius. It shows 30 mm.

Counterbore for the pivot pin head

  1. Click the top face of the disc, New Sketch. A circle at the origin, radius 7. Close.
  2. Pocket, Type: Dimension, Length 3 mm.
The finished crank: a teal disc with a counterbored centre hole and a smaller pin hole near the rim.
Check it. One body, Crank: Pad and Pocket, no red marks. Outer radius 40 mm, pin hole 30 mm out with ƒx on its dimension.

Design intent

A flat bar 8 mm thick with two round ends of radius 10 mm and a hole of radius 4.2 mm in each, RodLength apart. Both ends are the same size, so the edges are parallel and the rod turns on two 8 mm pins with 0.2 mm to spare.

Steps

Workbench: Part Design. The sketch tools are on the Sketcher toolbar once a sketch is open; the letters in brackets are the keys.

  1. In the model tree, click Crank and press Space. It hides, so you can see the new sketch.
  2. New Body (Part Design toolbar). In the tree, right-click Body, Rename, type ConnectingRod.
  3. New Sketch. In the list, pick XY_Plane, OK. Check: you look straight down at the red X and green Y axes.
  4. Circle (G, C): click on the origin for the centre (it snaps there and shows a small coincident mark), then click again for any radius.
  5. Circle again, about 100 mm to the right of the first.
  6. Line (G, L): click above the left circle, then above the right circle, a little higher or lower so the line slants. Right-click to end the tool.
  7. Line again, below both circles, also on a slant.
  8. Click the top line, then the left circle. Constrain tangent (T). Check: the line now touches the circle.
  9. Do the same three more times: top line and right circle, bottom line and left circle, bottom line and right circle. Check: both lines touch both circles.
  10. Trim (G, T): click each piece of line that sticks out past a circle. Then click the inner half of each circle, between the lines. Right-click to end. Check: one closed outline, like a running track.
  11. Click the left arc. Constrain radius (K, R), type 10 mm.
  12. Click the left arc, then the right arc. Constrain equal (E). Check: both ends are radius 10.
  13. Click the two arc centres. Constrain horizontal (H). Check: the rod lies level along the X axis.
  14. Click the two arc centres again. Constrain horizontal distance (L). In the box, click ƒx, type Spreadsheet.RodLength, OK. Check: 100 mm.
  15. Circle: click the left arc's centre (the cursor snaps to it), then click for any radius. Constrain radius 4.2 mm.
  16. The same on the right arc's centre: a circle, radius 4.2 mm. Check: the sketch turns green and the task panel says Fully constrained.
  17. Close. Then Pad (Part Design toolbar), Length 8 mm, OK.

Redundant constraints in any sketch: delete the dimension you just added. Polyline and Rectangle add Horizontal and Vertical marks to level and upright lines by themselves, and a mark already holds that line. Why the rod's lines slant: a line drawn level gets a Horizontal rule by itself, and with the tangents it is one rule too many. If FreeCAD says so, delete the small Horizontal mark on the line.

The finished connecting rod: a gold flat bar with rounded ends and a hole in each end.
Check it. Body ConnectingRod: one Pad. 120 mm over the ends (10 + 100 + 10), holes 8.4 mm across and 100 mm apart.

Design intent

A block 40 by 30 mm and 20 mm tall that runs in the guide channel. The wrist pin is pressed into an 8 mm hole at its centre. A small chamfer (a cut corner) on the bottom edges helps it into the channel.

Steps

  1. Click ConnectingRod in the tree, press Space to hide it.
  2. New Body, rename it Slider. New Sketch on XY_Plane.
  3. Rectangle (G, R): click a corner up and right of the origin, then a corner down and left of it.
  4. Click the top right corner, then the bottom left corner, then the origin. Constrain symmetric (S). Check: the rectangle is centred on the origin.
  5. Click the top edge. Constrain horizontal distance (L), 40 mm.
  6. Click the right edge. Constrain vertical distance (I), 30 mm. Check: Fully constrained.
  7. Close. Pad, Length 20 mm, OK. Check: a block 40 × 30 × 20 mm.
  8. Click the top face of the block. New Sketch.
  9. Circle: centre on the origin, any radius. It only marks where the hole goes. Close.
  10. Hole (Part Design toolbar): Diameter 8 mm, Depth type Through all, OK. Check: a hole right through the block.
  11. Turn the view to see the bottom (View → Standard views → Bottom, or key 5). Ctrl+click the four bottom edges.
  12. Chamfer (Part Design toolbar), Size 0.8 mm, OK.
The finished slider: a blue block with a hole through its centre.
Check it. Body Slider: Pad, Hole, Chamfer. The hole is 8 mm and in the middle: 20 mm from each end.

Design intent

The frame is two parts: a base plate with the pivot boss (a raised round pad), and a guide channel bolted to it. Three 8 mm pins join the moving parts. Every height follows from one rule: each moving layer clears the next by 0.5 mm.

LayerHeight above the table (mm)
Base plate, boss0 to 8, boss to 22
Guide floor, walls8 to 12, walls to 22
Slider (on the floor)12 to 32
Crank (on the boss)22 to 32
Rod (0.5 above both)32.5 to 40.5

Base

  1. Hide the slider (click it, Space). New Body, rename it Base. New Sketch on XY_Plane.
  2. Rectangle (G, R) round the origin, wider than it is tall, more of it to the right.
  3. Click the bottom left corner, then the origin. Constrain horizontal distance (L), 40 mm. Then Constrain vertical distance (I), 40 mm. The numbers are distances: the side comes from where you drew the corner.
  4. Click the top edge, L, 215 mm. Click the right edge, I, 80 mm. Check: Fully constrained, the plate from 40 mm left of the origin to 175 mm right of it.
  5. Close. Pad 8 mm.
  6. Click the plate's top face, New Sketch. Circle centred on the origin, Constrain radius 14 mm. Close.
  7. Pad 14 mm. Check: a round boss, its top 22 mm above the table.
  8. Click the top of the boss, New Sketch. Circle on the origin, any radius. Close.
  9. Hole: Diameter 8 mm, Depth type Dimension, Depth 12 mm, Drill point Flat, OK. The pivot pin will be pressed in here.
  10. Click the plate's top face, New Sketch. Four Circles, any radius, near (50, 27), (50, −27), (150, 27) and (150, −27).
  11. Fix each centre: click it and the origin, L with its x (50 or 150), then I 27 mm. Check: the four centres sit on a 100 × 54 mm rectangle. Close.
  12. Hole: Diameter 3.4 mm, Through all. These are tapping holes: an M4 thread is cut into a 3.4 mm hole.

Guide

  1. Hide the base. New Body, rename it Guide. New Sketch on XY_Plane. (The guide is drawn where it will sit; the assembly lifts it onto the base.)
  2. Rectangle to the right of the origin, across the X axis.
  3. Place it: click its bottom left corner and the origin, L 40 mm, then I 32.5 mm.
  4. Size it: top edge L 120 mm, right edge I 65 mm.
  5. Four Circles at the same four places as the base holes, each Constrain radius 2.25 mm: bolt holes 4.5 mm across, so an M4 screw passes through.
  6. Fix the four centres with L and I from the origin, as in the base. Check: Fully constrained. Close.
  7. Pad 4 mm. Check: a floor 120 × 65 mm with four holes.
  8. Click the floor's top face, New Sketch. Draw a Rectangle above the X axis: the back wall.
  9. Place it: click its bottom left corner and the origin, L 40 mm, then I 15.5 mm.
  10. Size it: its top edge L 120 mm, its right edge I 6 mm.
  11. Draw a second Rectangle below the X axis: the front wall.
  12. Place it: click its top left corner and the origin, L 40 mm, then I 15.5 mm.
  13. Size it the same: top edge L 120 mm, right edge I 6 mm. Check: Fully constrained. Close.
  14. Pad 10 mm. Check: two walls, 31 mm apart inside, for a 30 mm slider.

Pins

A pin is round, so draw half its outline and turn it about its axis. For each pin:

  1. New Body, rename it (PivotPin, CrankPin or WristPin).
  2. New Sketch on XZ_Plane. You now look from the front: X to the right, Z up.
  3. Polyline (G, M): start on the origin (it snaps), click the points of the table below in order, then click the origin again. The shape only needs to be close.
  4. Fix each point: click it and the origin, L with its x, I with its height. The last point is on the vertical axis: click it and the axis, Constrain point onto object (O). If FreeCAD says Redundant constraints, delete the dimension you just added: Polyline already marked that line level or upright. Check: Fully constrained. Close.
  5. Revolve (Part Design toolbar; Revolution before FreeCAD 1.1): Axis Vertical sketch axis, Angle 360°, OK. Check: a round pin.
PinPoints x, height (mm), in order
PivotPin0,0 · 3.6,0 · 4,0.4 · 4,19.2 · 6.5,19.2 · 6.5,21.5 · 0,21.5
CrankPin0,0 · 3.6,0 · 4,0.4 · 4,19 · 8,19 · 8,31 · 0,31
WristPin0,0 · 3.6,0 · 4,0.4 · 4,29 · 3.4,29 · 3.4,29.8 · 4,29.8 · 4,31 · 3.5,31.5 · 0,31.5
  • The step from 3.6,0 to 4,0.4 is a 0.4 mm chamfer at the bottom, so each pin starts straight into its hole.
  • PivotPin: the 13 mm head sits in the crank's counterbore, below the rod.
  • CrankPin: the knob, 16 mm across, is the handle. Click its top round edge, Fillet (Part Design toolbar), Radius 2 mm.
  • WristPin: the narrow part from 29 to 29.8 is a groove for an e-clip, a spring clip that holds the rod on.
The base plate with its round pivot boss and the guide channel bolted on, and the three pins standing in front: the pivot pin with a thin head, the crank pin with a dark knob, and the grooved wrist pin.
Check it. Five bodies: Base (Pad, Pad, Hole, Hole), Guide (Pad, Pad) and the three pins (Revolution; the crank pin also a Fillet). The bore in the boss is 12 mm deep; the guide holes line up with the base holes.

An assembly joins the parts with joints, so you can turn the crank and see whether the slider moves as calculated. These steps use FreeCAD's own Assembly workbench (1.0 and later).

Strategy

A pin pressed into a part moves with it: that is a Fixed joint. A pin a part turns on is a Revolute joint. Count the freedoms in the plane: crank, rod and slider have 3 each, 9 in all. Three pin joints remove 2 each and the guide removes 2: 9 − 6 − 2 = 1, the crank angle.

The last pin of the loop is a Cylindrical joint (it lets the part turn and slide along the pin). A Revolute there would repeat what the other joints already hold, and the solver can fail or tilt a part.

Steps

Each joint: click the command, then click the two edges or faces in the 3D view in the order given, then OK. To pick an edge inside a hole, turn the view until you see it; the edge lights up under the cursor.

  1. Show all the bodies again (select them, Space). In the workbench list on the toolbar, pick Assembly.
  2. New Assembly (A). Check: Assembly appears in the tree, with a Joints folder.
  3. Insert Component (I): click each of the eight bodies in the list, then OK.
  4. Click Base in the tree. Toggle Grounded (G). Check: Base can no longer move; everything else is placed from it.
  5. Fixed Joint (F): the top edge of one bolt hole in the base, then the bottom edge of the matching hole in the guide. Check: the guide sits on the plate, holes in line.
  6. Fixed Joint: the bottom edge of the bore in the boss, then the bottom end edge of the pivot pin. Check: the pin stands in the boss.
  7. Revolute Joint (R): the top edge of the bore in the boss, then the bottom edge of the crank's centre hole. Check: the crank lies on the boss, the pin head in its counterbore.
  8. Fixed Joint: the bottom edge of the crank's pin hole, then the bottom end edge of the crank pin. Check: the knob stands above the crank.
  9. Revolute Joint: the bottom edge of the rod's left hole, then the top edge of the crank's pin hole. In the panel set Offset 0.5 mm. Check: the rod lies 0.5 mm above the crank, on the crank pin.
  10. Fixed Joint: the bottom edge of the slider's hole, then the bottom end edge of the wrist pin.
  11. Distance Joint (D): the top face of the guide floor, then the slider's bottom face. Distance 0 mm. Check: the slider stands on the floor.
  12. Distance Joint: the slider's back side face, then the inner face of the back wall. Distance −0.5 mm. Check: the slider sits between the walls, 0.5 mm from each.
  13. Cylindrical Joint (C): the bottom edge of the rod's right hole, then the round edge at the top of the wrist pin's shaft, just under its chamfer. Check: the rod rests on both pins; drag the knob and everything moves together.

If a part lands in the wrong layer (the rod in the crank, the slider in the wall), double-click that joint in the tree and change the sign of its Offset or Distance. FreeCAD 1.1 measures it along the first face picked.

Testing

Drag the crank by its knob and compare with the calculation:

  • The crank turns a full circle.
  • The slider pin moves between 70 and 130 mm from the pivot, a stroke of 60 mm.
  • The rod leans most, 17.5°, with the crank at 90° to the guide.

Check it: Measure (Tools menu) from the pivot axis to the wrist pin axis: 130 mm with the crank pointing at the slider, 70 mm pointing away, 95.4 mm at 90°. We turned this model through a full turn in FreeCAD 1.1.4: every joint closes and no part touches another.

The finished slider crank: the teal crank on its boss with a dark knob, the gold rod over it, and the blue slider in the grey guide channel on the base plate.
Check it. The assembly: eight parts, nine joints, one ground. Only the crank angle is free.

Ours, to compare with yours. Open Parts and hide the guide to see the slider and the wrist pin.

The slider crank: eight parts. Drag to turn, pinch or scroll to zoom. Open in the full viewer.

Make it buildable: the drawing

A workshop cannot make the slider crank from the 3D model alone. It needs one sheet with the sizes, the limits on the sizes that matter, and a cut along the line the slider runs on. Here is that sheet, and the TechDraw steps to make it.

  1. Page. Workbench TechDraw, Insert Page using Template, A3_Landscape_ISO5457_advanced.svg. Fill the title block: the title, the scale 1 : 1, your name.
  2. Plan. Select the assembly, Insert View, direction Top, scale 1. Looking down shows the whole motion, so this view carries the item balloons.
  3. Section A-A. Select the plan, Insert Section View, plane along the line of stroke (Y 0), through the crank axis and the wrist pin, arrows pointing up, symbol A. Place it above the plan: in first angle, this is the front view.
  4. Hatching. Set Cut Surface Display to Hide and hatch each cut part with Apply Geometric Hatch to Face. Parts that touch get different directions: the base one way, the guide and the crank the other, the slider the first way again. Leave the three pins plain: a pin cut along its axis is not hatched.
  5. Item list and balloons. A spreadsheet ItemList (Item, Qty, Name, Material, Note), then Insert Spreadsheet View. Insert Balloon Annotation for items 1 to 10. The e-clip and the screws are bought, so they have rows but no model.
  6. Fits. At the crank pivot, a leader with ⌀8 H7/p6 to the pin in the base and ⌀8.4 H8 to the crank's hole. In the plan, Slider 30 h7 in channel 31.
  7. Frames. Insert SVG Symbol from Symbols/gd-and-t for the two frames below, and datum A on the underside of the base. Then Export Page as PDF.
The A3 assembly drawing of the slider crank. Top left: section A-A along the line of stroke, with the base, the guide, the crank, the slider and the rod each hatched, the pins plain, the callouts diameter 8 H7/p6 and diameter 8.4 H8, a perpendicularity frame on the pivot bore, a parallelism frame on the guide floor and datum A under the base. Below it the plan with the cutting line A-A, balloons 1 to 10, the overall 215 by 80 and the note slider 30 h7 in channel 31. Right: a pictorial view at 1 to 2, the item list of ten items, the GD&T notes and the ISO title block.
The finished drawing (click for the PDF). Made in FreeCAD.

Every pin is pressed into one part and turns in another. The turning holes are 8.4 mm, from the model's 0.2 mm on the radius. That gap is needed: each pin passes through the part that turns on it before it reaches its bore, so that hole must let the pressed size through.

WhereFitHole, mmShaft, mmGap, mm
Pin in base, crank, slider⌀8 H7/p6, pressed8.000 to 8.0158.015 to 8.024−0.024 to 0 (interference)
Crank and rod on their pins⌀8.4 H8 on ⌀8 p6, turning8.400 to 8.4228.015 to 8.0240.376 to 0.407 (clearance)
Slider in the channel30 h7 in 31 (ISO 2768-m), sliding30.7 to 31.329.979 to 30.0000.700 to 1.321 (clearance)
FrameOnWhy
Datum Aunderside of the basethe face the machine stands on
⊥ ⌀0.05 | Athe pivot bore, ⌀8 H7the pivot pin stands square, so the crank turns flat on the boss
∥ 0.05 | Athe guide floor, after assemblythe slider runs level with the crank, so the rod does not twist

Check: the cut runs through the crank axis and the wrist pin; parts that touch are hatched in different directions; the pins are plain; the ten balloons match the item list.

Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.