Library › Mechanisms › Gears ·

3D printable rack-and-pinion padlock: spiral-spring gear, rack bolt and zig-zag latch mechanism (STL, STEP)

How does a spring-loaded rack-and-pinion padlock mechanism work, and can I 3D print one? · Hardware · basis: Rack-and-pinion spring padlock: designed for 3D printing, exact nominal mm.

Also called: 3d printed padlock mechanism, rack and pinion lock, spring loaded gear, spiral spring gear, zig zag latch, printable lock mechanism

Exact dimensions. Every file is drawn at true size with no tolerance added. The holes and pins that meet another part are listed below under Mating features, with the fit each joint needs; open those by your process's clearance before making the part. Mating features

length
100.0 mm
width
85.0 mm
height
9.7 mm

Notes

  • Resize: multiply every length by one factor k and the motion stays identical: angles, ratios, timing and the formulas below do not change, because a mechanism's motion depends only on the ratios of its lengths. Here, stays the same: rack-padlock-assembled; step to the nearest standard size (and redraw the hole or pocket it fits): rack-padlock-bolt, rack-padlock-spiral-spring-gear.
  • Resize: Gears scale by the module m (pitch Ø = m·z, centre distance = m·(z₁ + z₂)/2): keep the tooth counts so the ratio stays, and choose a standard module (0.5, 0.8, 1, 1.25, 1.5, 2, 2.5, 3).
  • Resize: fit clearances stay in mm (a slide fit is the same gap at any size); keep every printed wall and pin at least two nozzle widths; mass grows with k³ but part strength only with k², so at k = 2 parts are about 8× heavier and 4× stronger: check pins and thin links when scaling up.
  • Gear: module 2, 16 teeth; rim on two spiral arms (0.9 mm) to a hub that keys on a 5 mm square post (4.6 mm post).
  • Bolt: 12-tooth module-2 rack with 7 sawtooth latch notches (7 mm pitch, 3.5 deep) and a finger tab.
  • Gear sits 0.3 mm farther out than nominal for backlash.
  • Latch: pawl with printed leaf spring; preload it against its post.
  • Kit: the base plate carries 5 mm pins (parts have 5.4 mm bores, 0.2 mm per side); every part prints flat on its own, and the assembled file shows them in place with 0.2 mm gaps, each part its own solid.

3D printable rack-and-pinion padlock: spiral-spring gear, rack bolt… size chart

filewhatoverall mm
rack-padlock-assembledassembled: 4 parts in place100 × 85 × 9.7
rack-padlock-baserack padlock base100 × 85 × 9.7
rack-padlock-boltrack padlock bolt87.398 × 18 × 5
rack-padlock-spiral-spring-gearrack padlock spring gear35.975 × 35.975 × 5
rack-padlock-zigzag-latchrack padlock latch35.2 × 17.7 × 5

Mating features

Drawn at the exact size. Open press, slide, run and socket features by your process's clearance (tolerances by process); leave designed gaps and clamp fits as drawn.

featureexactmates withfitfiles
spring gear hub5.0 square hole4.6 square postslidebase*
bolt teethmodule 216-tooth gear, +0.3 mm centre distancedesignedgear*

Where the files are

Other publishers' files are linked, not hosted. "verify" = check the license at the link before commercial use.

WikipediaRack and pinionwebPublisher's page; dimensions are facts
WikipediaPadlockwebPublisher's page; dimensions are facts

Free files

★ Free files 5 parts. Xem Studio design: free to use, print and sell things from; not to be republished as files. Xem Studio Design License. index.json

Use this part in your AI. Your AI gets the exact sizes and files straight from Xem and can design a mount, case or adapter around it. Direct downloads here are limited to one file every 10 minutes; through your AI they are unlimited.

Connect Xem to your AI (free, no account, about a minute)
https://xemstudio.com/mcp
  1. Claude: Add to Claude
  2. ChatGPT (Plus or higher): open Connectors → Advanced → turn on Developer mode → Create → paste the address, no authentication → Create.
  3. Cursor: install with one click. VS Code: install with one click.
Other apps and full steps
rack-padlock-assembledrack padlock assemblySTEP · STL
rack-padlock-baserack padlock baseSTEP · STL
rack-padlock-boltrack padlock boltSTEP · STL
rack-padlock-spiral-spring-gearrack padlock spring gearSTEP · STL
rack-padlock-zigzag-latchrack padlock latchSTEP · STL
Let your AI pull this. Claude: add Xem in one click. ChatGPT, Cursor or any MCP client: add https://xemstudio.com/mcp (free, no account). Your AI can then look up exact sizes, mating fits and free STEP/STL from every chat.
Set it up →

Plain text: sheet.txt · JSON: /api/geometry?object=rack-and-pinion-spring-padlock

3D printable rack-and-pinion padlock: spiral-spring gear, rack bolt and zig-zag latch mechanism (STL, STEP), isometric render of a generated part
Render of rack-padlock-assembled from the free STEP; not to scale.

Fits with

Questions

What returns the bolt?

The spiral arms inside the gear: pushing the bolt in winds them.

How is it held locked?

A spring latch pawl drops into the zig-zag notches on the back of the bolt.

Is it secure?

No, it is a demonstration mechanism, not a security lock.