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
| file | what | overall mm |
|---|---|---|
| rack-padlock-assembled | assembled: 4 parts in place | 100 × 85 × 9.7 |
| rack-padlock-base | rack padlock base | 100 × 85 × 9.7 |
| rack-padlock-bolt | rack padlock bolt | 87.398 × 18 × 5 |
| rack-padlock-spiral-spring-gear | rack padlock spring gear | 35.975 × 35.975 × 5 |
| rack-padlock-zigzag-latch | rack padlock latch | 35.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.
| feature | exact | mates with | fit | files |
|---|---|---|---|---|
| spring gear hub | 5.0 square hole | 4.6 square post | slide | base* |
| bolt teeth | module 2 | 16-tooth gear, +0.3 mm centre distance | designed | gear* |
Where the files are
Other publishers' files are linked, not hosted. "verify" = check the license at the link before commercial use.
| Wikipedia | Rack and pinion | web | Publisher's page; dimensions are facts |
| Wikipedia | Padlock | web | Publisher'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- Claude: Add to Claude
- ChatGPT (Plus or higher): open Connectors → Advanced → turn on Developer mode → Create → paste the address, no authentication → Create.
- Cursor: install with one click. VS Code: install with one click.
| rack-padlock-assembled | rack padlock assembly | STEP · STL |
| rack-padlock-base | rack padlock base | STEP · STL |
| rack-padlock-bolt | rack padlock bolt | STEP · STL |
| rack-padlock-spiral-spring-gear | rack padlock spring gear | STEP · STL |
| rack-padlock-zigzag-latch | rack padlock latch | STEP · STL |
https://xemstudio.com/mcp (free, no account). Your AI can then look up exact sizes, mating fits and free STEP/STL from every chat.Plain text: sheet.txt · JSON: /api/geometry?object=rack-and-pinion-spring-padlock

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.