Grashof's Theorem
The behavior depends critically on link length relationships.
Where:
- S = shortest link length
- L = longest link length
- P, Q = intermediate link lengths
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.
A single rotating shaft can drive a windshield wiper, a rocking sprinkler, or a walking robot leg, all with the same basic mechanism: four rigid links and four pin joints. The difference between a smooth, reliable motion and a mechanism that locks up mid-cycle comes down to link length ratios, which is exactly what Grashof’s Theorem predicts. In this lesson you will design a four-bar linkage in FreeCAD using master sketch techniques and expression-driven dimensions, then verify Grashof’s condition to guarantee full rotation of the input crank. #FreeCAD #FourBarLinkage #GrashofTheorem #MasterSketch
By the end of this lesson, you will be able to:
The four-bar linkage is one of the simplest yet most versatile planar mechanisms in mechanical engineering. It forms the backbone of countless mechanical systems, from vehicle suspensions to robotic arms, and understanding its design is fundamental to mechanism synthesis.
The four-bar linkage appears in countless engineering applications:
Design Challenge: Given four rigid links connected by revolute joints with one link fixed, how do we create controlled motion transformation with predictable path characteristics and full rotation capability?
A four-bar linkage consists of four elements working together:
1. Ground Link (Link 1)
2. Input Link/Crank (Link 2)
3. Coupler (Link 3)
4. Output Link/Follower (Link 4)
Grashof's Theorem
The behavior depends critically on link length relationships.
Where:
If the inequality holds (Grashof linkage):
Which link is ground determines behavior:
If inequality doesn’t hold (Non-Grashof):
For this lesson, we’ll use:
| Link | Length | Role |
|---|---|---|
| Link 1 (ground) | 100 mm | Fixed base |
| Link 2 (crank) | 40 mm | Input rotator |
| Link 3 (coupler) | 80 mm | Connector |
| Link 4 (follower) | 70 mm | Output oscillator |
Grashof Check:
By completing this lesson, you’ll create:
Master Sketch Layout
One kinematic sketch controlling all four parts simultaneously
Parametric Linkage
Four interacting parts driven by spreadsheet parameters
Working Assembly
Pin-jointed mechanism demonstrating Grashof’s Theorem
Technical Drawing
Professional documentation for manufacturing linkage plates
We’ll use a master sketch approach: defining the complete kinematic layout once, then referencing it from all parts. This is how professionals design mechanisms where geometric relationships between parts are more critical than individual part dimensions.
Master Sketch Philosophy
We’ll control the entire four-bar mechanism with one master sketch plus four length parameters:
Link1 = 100 mm Link2 = 40 mm Link3 = 80 mm Link4 = 70 mm
Change the master sketch → all parts update automatically!
This is the power of kinematic-first parametric design.
Create Spreadsheet (parameter table)
Create Master Sketch (kinematic layout)
Create Link 1 - Ground (reference master)
Create Link 2 - Crank (reference master)
Create Link 3 - Coupler (reference master)
Create Link 4 - Follower (reference master)
Assemble with pin joints
Create technical drawing
Test Grashof configurations
Create a new document
File → New (or Ctrl+N)Save it as FourBarLinkage.FCStd
Switch to Part Design workbench
Use the workbench dropdown at top
Insert a spreadsheet
Insert → SpreadsheetA “Spreadsheet” object appears in the left tree
Double-click to open the spreadsheet
Click on “Spreadsheet” in the tree
In the spreadsheet, create this table:
| Cell | Value | Meaning |
|---|---|---|
| A1 | Parameter | Header |
| B1 | Value | Header |
| C1 | Unit | Header |
| A2 | Link1 | Ground link length |
| B2 | 100 | Numeric value |
| C2 | mm | Unit (documentation) |
| A3 | Link2 | Crank length |
| B3 | 40 | Numeric value |
| C3 | mm | Unit |
| A4 | Link3 | Coupler length |
| B4 | 80 | Numeric value |
| C4 | mm | Unit |
| A5 | Link4 | Follower length |
| B5 | 70 | Numeric value |
| C5 | mm | Unit |
| A6 | LinkWidth | Link plate width |
| B6 | 20 | Numeric value |
| C6 | mm | Unit |
| A7 | LinkThickness | Link plate thickness |
| B7 | 8 | Numeric value |
| C7 | mm | Unit |
| A8 | PinRadius | Pin hole radius |
| B8 | 4 | Numeric value |
| C8 | mm | Unit |
Why Aliases?
Aliases let you reference cells by name instead of “B2”, making formulas readable and meaningful.
Create aliases:
Click cell B2
Right-click → Properties
In “Alias” field, type: Link1
Click OK
Repeat for all parameter cells (B2 through B8):
Link1Link2Link3Link4LinkWidthLinkThicknessPinRadiusNow you can use Spreadsheet.Link1 anywhere in your model!
Close the spreadsheet when done (click the Close button).
Your parameter foundation is ready!
Master Sketch Concept
A master sketch defines the kinematic layout: where joints are located and how links connect. All parts reference this sketch geometry as their positional truth.
Key Benefits:
Ensure you’re in Part Design workbench
Create new sketch on XY_Plane
This sketch won’t belong to a body; it’s standalone reference geometry!
Draw a horizontal line:
Line tool (press L)
Click at origin (0, 0)
Move horizontally to the right
Click to place endpoint
Press Escape
Make it horizontal:
Fix the start point:
Dimension the link:
Spreadsheet.Link1Draw a line from point A:
Line tool (L)
Start at the left endpoint of Link 1 (point A)
Draw at an angle upward-right
Click to place endpoint
Press Escape
Constrain the link:
Dimension the length:
Spreadsheet.Link2This is the crank, connecting joints A and C.
Draw a line from point B:
Line tool (L)
Start at right endpoint of Link 1 (point B)
Draw upward at an angle
Click to place endpoint
Press Escape
Constrain:
Spreadsheet.Link4This is the follower, connecting joints B and D.
Draw a line connecting the free ends:
Line tool (L)
Start at free end of Link 2 (point C)
End at free end of Link 4 (point D)
Press Escape
Constrain:
Spreadsheet.Link3Make sketch reference-only:
Select all four lines
Toggle construction geometry
Why Construction Geometry?
Construction geometry is reference only:
This is the key to master sketch workflows!
Check and close:
Check constraints:
The sketch should be fully constrained. Verify:
Optional: Add angle dimension
If under-constrained, add angle to Link 2:
30 degreesClose the sketch
Click Close button in toolbar
Link 1 Requirements
Link 1 is a rectangular plate with:
Create a Body
Link1_GroundCreate a Sketch
Reference master sketch geometry:
External geometry tool (press E)
Click the master sketch in the tree
Select joint A endpoint (origin)
Select joint B endpoint (right end of Link 1)
Press Escape
Draw circles at both joints:
Circle tool (C)
Draw circle centered at origin (joint A)
Press Escape
Circle tool again
Draw circle at joint B reference point
Press Escape
Constrain both circles:
Dimension the holes:
Spreadsheet.PinRadiusCreate the connecting plate:
Rectangle tool
Draw rectangle connecting the two circles
Press Escape
Symmetric constraint:
Dimension width:
Spreadsheet.LinkWidthComplete the sketch:
Verify fully constrained
Check solver messages panel
Close sketch
Click Close button
Pad the link
Spreadsheet.LinkThicknessCreate Body → Rename to Link2_Crank
Create Sketch on XY_Plane
Reference Master Sketch Geometry:
Draw the Link:
Spreadsheet.PinRadiusSpreadsheet.PinRadiusSpreadsheet.LinkWidthVerify fully constrained and Close sketch
Pad:
Spreadsheet.LinkThicknessLink 2 complete!
Body: Create and rename to Link3_Coupler
Sketch on XY_Plane
Reference points C and D from master sketch (External geometry tool)
Draw the link:
Pad with thickness parameter
Link 3 complete!
Body: Create and rename to Link4_Follower
Sketch on XY_Plane
Reference points B and D from master sketch
Draw the link:
Pad with thickness parameter
Assembly is where your individual linkage plates come together as a functioning mechanism. By applying pin joint constraints, you’ll see Grashof’s Theorem in action as the crank rotates and the follower oscillates!
Constraint Plan
All joints use Axial Align constraints to allow rotation!
Switch to Assembly workbench
Use workbench dropdown
Create new assembly
Assembly → Create Assembly
Add all four parts
Drag from tree or use “Add Part” button:
Select Link1_Ground in assembly tree
Click Fixed constraint button
Link 1 is now locked in place (ground reference)
Apply Axial Align constraints at all four joints:
Joint A (Link 1 - Link 2):
Joint B (Link 1 - Link 4):
Joint C (Link 2 - Link 3):
Joint D (Link 3 - Link 4):
Test the mechanism:
Drag Link 2 (the crank) in the assembly view
Observe motion:
Troubleshooting:
Switch to TechDraw workbench
Create a page:
Add views:
Add dimensions:
Title block:
Export:
This is the moment of truth! A truly parametric mechanism updates correctly when you change parameters. Let’s verify your design is intelligent, test Grashof’s Theorem, and explore different linkage configurations.
Open Spreadsheet
Double-click Spreadsheet in tree
Change Link2 to 50mm
50Recompute
Press Ctrl+R or click Recompute button
Observe changes:
✅ Success! Your mechanism is parametric!
Try these link length configurations:
Configuration 1: Crank-Rocker (original)
Link1 = 100, Link2 = 40, Link3 = 80, Link4 = 70
Configuration 2: Double-Rocker
Link1 = 40, Link2 = 100, Link3 = 80, Link4 = 70
Configuration 3: Non-Grashof
Link1 = 100, Link2 = 20, Link3 = 80, Link4 = 70
Push the limits:
Set Link2 = 60, Link3 = 120
Recompute
Entire mechanism scales up!
Try different ratios:
Everything should update cleanly!
Congratulations! By completing this lesson, you have:
Master Sketch Technique
Created kinematic layout controlling multiple parts
Construction Geometry
Used reference-only geometry for design intent
External References
Referenced geometry across multiple sketches
Grashof's Theorem
Applied link length theory in practice
Pin-Jointed Assembly
Assembled four-link mechanism with motion
Parametric Mechanism
Built intelligent, reconfigurable design
Most importantly: You’ve designed a complete four-bar linkage mechanism using professional kinematic-first methodology!
Use this checklist to verify your design:
Ready for more? Try these enhancements:
Add fillets
Use Fillet tool to round sharp edges (2mm radius)
Add more parameters
Control all dimensions via spreadsheet (currently some are hardcoded)
Create drawings for all four links
Generate complete documentation set
Design connecting pins
Create separate pin parts for each joint
Add a coupler point
Place a marker on Link 3, observe its path
Create assembly drawing
Show full mechanism with dimensions
Plot coupler curves
Use Python to trace coupler point paths
Motion study
Create animation showing one complete cycle
Design straight-line mechanism
Find link ratios that create approximate straight-line motion (Chebyshev linkage)
Add velocity analysis
Calculate and plot link angular velocities
“Parts don’t align in assembly”
“Mechanism is locked/won’t move”
“Master sketch is under-constrained”
“External geometry not updating”
“Parts don’t update with spreadsheet”
In Lesson 3: Scissor Lift Mechanism, you’ll explore:
Repeating Linkages
Create arrays of identical four-bar units
Symmetric Design
Mirror constraints and balanced mechanisms
Motion Amplification
How cascading linkages multiply displacement
Load Path Analysis
Understanding forces in pin-jointed structures
Each lesson builds on the parametric CAD fundamentals while introducing new mechanism types and advanced design techniques!
This lesson assumes four skills. Each link opens the part that teaches it:
Four bars are joined by pins into a closed loop. Their lengths are 100, 40, 80 and 70 mm. The 100 mm bar is fixed to the table. A motor drives the 40 mm bar. Can the motor turn that bar through a full circle?
The start values are the lesson's: 100, 40, 80 and 70 mm, with the crank at the 30° of the master sketch. The joints have the lesson's names: A and B are fixed, C is the end of the crank and D is the end of the follower. All three angles are measured from the ground line A to B, counterclockwise. The marker P sits at the middle of the coupler, and the last slider moves it off the line of the coupler. A loop of four bars can be closed in two ways. This figure shows the one with D above the line from C to B, which is the one you sketch in the lesson. Set link 2 to 60 mm, as in the lesson's third test, and the crank can no longer go round.
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. In the lesson's linkage (100, 40, 80, 70 mm) the crank makes one full turn. What does link 4, the follower, do in that time?
2. You change link 2 from 40 mm to 60 mm, as in the lesson's third test. The other links stay at 100, 80 and 70 mm. What can the crank do now?
3. You keep the same four lengths but fix a different link: now link 1, the ground, is 40 mm and link 2 is 100 mm. Links 3 and 4 stay at 80 and 70 mm. S + L is still 140 mm and P + Q is still 150 mm. How does the linkage move?
One spreadsheet and one master sketch drive eight parts and an assembly you can turn by hand.
| Part | Job |
|---|---|
| Base | Link 1, the ground: a plate with the pivots A and B that screws to a bench |
| Crank, coupler, follower | Links 2, 3 and 4, rounded plates |
| Four pins | Two pivot pins (one part, used twice), the crank pin with a knob to turn it, and pin D |
Each moving part has its own layer, 0.5 mm clear of the next, so nothing rubs or collides.
Older version: a video of the first design of this lesson, before the base, the pins and FreeCAD 1.1.
FourBarLinkage.FCStd.Spreadsheet appears in the model tree on the left.Spreadsheet in the tree. A grid opens in its own tab.Type this table: names in column A, values in B, units in C (C is a note for you). The four link lengths set the motion. The rest are sizes for strength and fit.
| A (name) | B | What it is |
|---|---|---|
Link1 to Link4 | 100, 40, 80, 70 | the link lengths, mm |
LinkWidth | 20 | plate width |
LinkThickness | 8 | plate thickness |
PinRadius | 4 | pins 8 mm across |
Clearance | 0.2 | added to a hole a pin turns in |
CrankAngle | 30 | the angle the parts are drawn at, deg |
An alias gives a cell a name, so a sketch can ask for Spreadsheet.Link1 instead of B2.
Link1, press Enter. (Or right-click B2, Properties, Alias tab.)An alias may not be a unit name, such as mm or deg: FreeCAD would read it as a unit.
ƒx fills a dimension from the spreadsheet: in the box that asks for a value, click the small ƒx icon at its right end (or type =), type the name, press Enter.
Spreadsheet.Link1.Spreadsheet.Link2.Spreadsheet.Link4.Spreadsheet.Link3. Check: the Tasks panel says 1 degree of freedom.Spreadsheet.CrankAngle. Check: Fully constrained, and the lines turn green.MasterSketch.More than 1 freedom at step 6? An end did not snap. Select the two ends, Constrain coincident (C). D below the line from C to B? Drag D up before step 7: the loop can close two ways, and the solver keeps the one you drew.
Check it: hover each corner. A (0, 0), B (100, 0), C (34.64, 20.00), D (97.14, 69.94). Leave the four lines as normal lines, not construction lines: the parts can only copy normal lines.
Link 1 never moves, so make it the base: a plate that carries pivots A and B and screws to a bench. Its sketches take A and B from the master sketch, so the pivots move when Link1 changes.
A sketch in a body may only use geometry from that body (FreeCAD 1.1 says "not allowed as external geometry"). A Sub-Shape Binder is a live copy of the master sketch placed inside the body.
Base.MasterSketch in the tree, then Sub-Shape Binder (Part Design toolbar, with the datum tools). Check: a Binder appears inside Base.MasterSketch, press Space to hide it, so the next clicks pick the binder.Base, Create sketch, XY_Plane, OK.60, then Constrain vertical distance (I) 60.20.90.8 mm. Check: a plate 180 × 150 × 8.12 on each.6 mm. Check: two round bosses.8, Depth 12, Drill point Flat, OK. Check: a blind bore in each boss.4.5, Through all.1 mm.
Base: Pad, Pad, Hole, Hole, Chamfer, no red marks. Bosses 100 mm apart, centre to centre. The pins in front come in Part 8.A rounded plate, 20 mm wide and 8 thick, with its two hole centres on A and C.
PinRadius + Clearance = 4.2: the crank turns on the pivot pin with 0.2 mm to spare.PinRadius = 4: the crank pin is pressed in and turns with the crank.Link2_Crank. Select MasterSketch, Sub-Shape Binder. Hide Base (Space).Spreadsheet.LinkWidth / 2. Both ends follow: the slot keeps them equal.Spreadsheet.PinRadius + Spreadsheet.Clearance.Spreadsheet.PinRadius. Check: Fully constrained.Spreadsheet.LinkThickness.7. Close.3 mm.Why the Slot tool: trimming circles by hand here goes wrong in FreeCAD 1.1, because the purple line crosses each circle and Trim cuts at it too.
The same plate on C and D. Both holes are running holes: the coupler turns on both pins.
Link3_Coupler, Sub-Shape Binder of MasterSketch. Hide the crank.Spreadsheet.LinkWidth / 2.Spreadsheet.PinRadius + Spreadsheet.Clearance. Check: Fully constrained.Spreadsheet.LinkThickness. No counterbore.
The crank's steps again on B and D: a running hole with a counterbore at B, a pressed hole at D for pin D.
Link4_Follower, Sub-Shape Binder. Hide the coupler.Spreadsheet.LinkWidth / 2.Spreadsheet.PinRadius + Spreadsheet.Clearance. Circle on D, ƒx Spreadsheet.PinRadius.Spreadsheet.LinkThickness.7. Pocket 3.
A pin is round, so draw half its outline and turn it a full circle. For each pin:
360.| Body | Points (radius, height), mm | Job |
|---|---|---|
PivotPin | 0,0 · 3.6,0 · 4,0.4 · 4,17.2 · 6.5,17.2 · 6.5,19.5 · 0,19.5 | used twice, at A and B |
CrankPin | 0,0 · 3.6,0 · 4,0.4 · 4,17 · 8,17 · 8,29 · 0,29; then Fillet 2 on the top edge | the knob turns the crank |
PinD | 0,0 · 3.6,0 · 4,0.4 · 4,17 · 3.4,17 · 3.4,17.8 · 4,17.8 · 4,19 · 3.5,19.5 · 0,19.5 | the groove takes an e-clip |
The 0.4 mm step at the bottom of each pin is a chamfer, so it starts straight into its hole.
| Layer | Height above the table, mm |
|---|---|
| Base plate, bosses | 0 to 8, bosses to 14 |
| Crank and follower (on the bosses) | 14 to 22 |
| Pivot pin heads (in the counterbores) | 19.2 to 21.5 |
| Coupler (0.5 above both) | 22.5 to 30.5 |
| Crank pin knob | 31 to 43 |
The crank and the follower share a layer. Their centre lines stay at least 40 mm apart over a full turn, so the 20 mm plates never meet.
A pin pressed into a part moves with it: a Fixed joint. A part that turns on a pin: a Revolute joint. The last pin of the loop is Cylindrical, because a fourth Revolute repeats what the other three hold and the solver can fail.
Count: crank, coupler and follower have 3 freedoms each in the plane, 9 in all. Four pin joints remove 2 each: 9 − 8 = 1, the crank angle.
These steps use the Assembly workbench built into FreeCAD 1.0 and later.
Assembly with Joints inside, in the tree.0.5 mm, the running gap.A part in the wrong layer: change the sign of that joint's Offset. FreeCAD 1.1 measures it along the first part picked. The follower on the wrong side of the line from C to B: drag it across; the loop closes two ways.
Drag the crank by its knob and compare with the calculation:
Check it: Measure between the hole edges at C and D: 80 mm in every position. We turned this model a full turn in FreeCAD 1.1, 1° at a time: every joint closes, no two parts touch, and the coupler clears the crank and the follower by 0.5 mm.
Ours, to compare with yours. Open Parts and hide the coupler to see the pins it turns on.
Open it to compare with yours, or start from it.
Checked in FreeCAD 1.1: every value above rebuilds this model with all joints following. Past the limit of a rocking crank, FreeCAD may pull a pin out of its hole instead of stopping; if a part jumps, undo (Ctrl+Z). In the double rocker (crank 80) and the double crank (ground 40) the crank and the follower meet in their shared layer: watch those two in the master sketch, by changing CrankAngle.
A workshop cannot make the linkage from the 3D model alone. It needs one sheet with the sizes, the limits on the sizes that matter, and a cut through the joints. Here is that sheet for this linkage, and the TechDraw steps to make it.
A3_Landscape_ISO5457_advanced.svg. Fill the title block: the title, the scale 1 : 1, your name.Diagonal4), the crank and the follower the other way (Diagonal5). Leave the pins plain: a pin cut along its axis is not hatched.ItemList (Item, Qty, Name, Material, Note), then Insert Spreadsheet View. Insert Balloon Annotation for items 1 to 8.⌀8 H7/p6 to the pin in the base, and ⌀8.4 H8 to the crank's hole.Symbols/gd-and-t for the two frames below, and datum A on the underside of the base. Then Export Page as PDF.
Every pin is pressed into one part and turns in another. The model's turning holes are 8.4 mm, from the Clearance of 0.2 mm on the radius. That gap is needed: each pin passes through its link before it reaches its bore, so the link's hole must let the pressed size through.
| Where | Fit | Hole, mm | Pin, mm | Gap, mm |
|---|---|---|---|---|
| Pin in base, crank at C, follower at D | ⌀8 H7/p6, pressed | 8.000 to 8.015 | 8.015 to 8.024 | −0.024 to 0 (interference) |
| Link on its pin | ⌀8.4 H8 on ⌀8 p6, turning | 8.400 to 8.422 | 8.015 to 8.024 | 0.376 to 0.407 (clearance) |
| Frame | On | Why |
|---|---|---|
| Datum A | underside of the base | the face the linkage stands on |
| ⌖ ⌀0.05 | A | the two bores, 100 apart (boxed) | the ground link is 100 mm and both pins stand square, so the motion is the one you designed |
| ∥ 0.05 | A | the two boss tops | the crank and the follower ride on them, so they must not rock |
Check: the section has arrows and the letter A at both ends of its line; the base is hatched one way and the links the other; the pins are plain; the eight balloons match the item list.
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