Skip to content
Back to skills

Mechanisms

ASecurity

Design printed mechanisms that move or flex: clasps and latches (the lunchbox clasp), snap fits, pin and print-in-place hinges, detents, living hinges, magnet catches. Covers exact motion checks (swing sweeps, stops, the click), stiffness and strain estimates, strain limits for PLA and PETG, and why a printed coupon, not the model, settles the force. Use when someone wants a lid to latch, clip, snap, hinge, click or fold, or says a clasp is too stiff, too weak or won't stay shut.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspythongo

Works with

  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add alexnodeland/fabrication --skill mechanisms --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mechanisms?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mechanisms
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexnodeland-mechanisms/badge)](https://www.skillsdirectory.com/skills/alexnodeland-mechanisms)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mechanisms
description: "Design printed mechanisms that move or flex: clasps and latches (the lunchbox clasp), snap fits, pin and print-in-place hinges, detents, living hinges, magnet catches. Covers exact motion checks (swing sweeps, stops, the click), stiffness and strain estimates, strain limits for PLA and PETG, and why a printed coupon, not the model, settles the force. Use when someone wants a lid to latch, clip, snap, hinge, click or fold, or says a clasp is too stiff, too weak or won't stay shut."
---

# Mechanisms: clasps, snaps, hinges, detents

A printed mechanism has two kinds of numbers. **Geometry** (does it swing clear, does it click, does it stop) can be
checked exactly in the build. **Force** (how hard it clicks, how hard it holds) can only be estimated: the print
decides it. Check the first exactly, estimate the second honestly, and print a coupon of the whole mechanism.

## Pick the mechanism

| Need | Use | Reference |
|------|-----|-----------|
| A lid clamped shut, opened often | lunchbox clasp on dowel pins | `references/lunchbox-clasp.md` |
| A permanent or rare snap | cantilever snap arm | `references/snap-fits-and-hinges.md` |
| A hinge with hardware | dowel pin: press in one side, free in the other | same |
| A hinge without hardware | print-in-place, 45° cone pins | same |
| Indexed positions, a click | detent: a bump that climbs | same |
| A fold in a thin part | living hinge, PETG or TPU, never PLA | same |
| A gentle latch | magnets, or magnet and steel disc | same |

Prefer hardware where a printed feature would be weak or print badly: a 5 mm dowel pin is a better catch than a
printed hook facing down.

## The lunchbox clasp (pcie-box)

The clasp hangs on a dowel-pin hinge on the cover; its plate is bowed 2 mm outward. Closing, the nub on its foot
passes under a catch pin held in two ears on the base, which stretches the clasp (the bow straightens a little); then
the nub rises into the pin's inner side. That's the click, and opening needs the same climb. A toe on the foot lands
on the base's end face and fixes the shut position; shut, the clasp stays stretched and keeps pulling the cover down.

Its numbers: 5 mm dowels, 5.1 press holes in the knuckles and ears, 5.4 free hole in the clasp, plate 2.2 thick and
16 wide, preload 0.4. Click climb 0.32 mm; stretch shut 0.20 mm after the hinge's play. Estimated: about 23 N/mm,
a 12 N click, a 5 N hold per clasp, 0.21 % strain.

**The lesson: an eccentric pull bends the arm.** The catch pulls along the line from the hinge to the nub, and that
line runs inside the bowed plate, so the pull bends it. Estimate the stiffness as `k = 1 / ∫ d² / (E I) ds`, with d
each point's distance from the line of pull. The first model treated the bow as stretching along its length and
overstated the stiffness about five times. Derivation and gates: `references/lunchbox-clasp.md`; the math
runs on its own in `templates/clasp_math.py` (`python3 -I`, no CAD).

## Check the motion exactly

Write these into the build (`freecad-build`), with the mechanism in its assembled position:

1. **The click:** sweep the closing motion in small steps (0.02°) and find the stretch needed at each angle. The climb
   (peak minus shut) must be at least 0.25 mm, or the print's roughness eats it.
2. **The stop:** half a degree past shut must interfere with the stop face. And without the stop the part must lose
   its hold (the pcie-box clasp's stretch drops from 0.40 to 0 three degrees further in), which proves the stop matters.
3. **The swing:** rotate the moving part from shut to fully open in 2° steps; it may meet only what it's meant to.
4. **Parking:** an open clasp must sit clear of whatever moves next (the pcie-box clasp first touches the cover at 180°).
5. **Hardware:** pins and knuckles fit the pin length; the moving part's hole is the free size.

## Estimate the force, and say it's an estimate

- Model the flexing member as beams: bending from `M = F·d` along it, `I = w·t³/12`.
- Gate the estimates loosely: pcie-box asks for a hold of at least 3 N, a click of 8 to 30 N (firm, thumb-closable),
  strain at most 1 %, and the foot at least 1 mm off the table.
- Report them as "model estimates, not measurements" everywhere they appear.

## Strain limits (rules of thumb, along the layers)

| Material | E, printed | Repeated flexing | One-time snap |
|----------|-----------|------------------|---------------|
| PLA | ≈ 3000 MPa | ≤ 1 % | ≈ 2 % |
| PETG | ≈ 2000 MPa | ≈ 2 % | ≈ 3 to 4 % |

Across the layers, far less. PLA creeps under a held strain and softens around 55 to 60 °C, so a clasp held shut
slowly loses its pull; keep the held strain small. Choosing and setting the material: the `materials-and-plates` skill. Print flexing parts so they bend within their layers (the clasp
prints on its side).

## Why a model can't stand in for a coupon

- Printed stiffness varies widely with walls, infill, orientation, layer bonding and temperature; `E_PLA` 3000 is a
  round number, not a measurement of this printer.
- The beam formula leaves out the hinge's play, the pin's contact, and the knuckles and ears flexing on a thin wall.
- A model can be wrong in kind, not only in degree: the axial-bow model was 5× off and looked plausible.
- So the model ranks options and catches order-of-magnitude mistakes; the coupon sets the numbers.

**The coupon is the whole mechanism:** pcie-box prints 50 mm slices of the base and cover ends with their ears and
knuckles, plus a clasp and two pins. Tell the person what to feel for, and which knob to turn:

| Feel | Knob |
|------|------|
| Too stiff or too soft | `CLASP_T`: force goes with its cube (2.0 is about 25 % softer than 2.2, 2.4 about 30 % stiffer) |
| Click too light or too firm | `CLASP_PRELOAD`: 0.3 lighter, 0.5 firmer |
| Pin won't press in | `PIN_PRESS` 5.2, or ream with a 5 mm drill |

Expect one more round on the real part: the coupon's slices are free-edged, the real knuckles sit mid-panel on a
1.2 mm wall.

Related: `fits-and-tolerances` (pin and hinge clearances), `design-for-fdm` (gussets, orientation),
`boxes-and-enclosures` (where clasps go on a box), `render-and-review` (a section through the mechanism).

Files in this skill

  • SKILL.md6.1 KB
  • references/lunchbox-clasp.md6.8 KB
  • references/snap-fits-and-hinges.md4.8 KB
  • templates/clasp_math.py4.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.