# 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?

- Category: Mechanisms › Gears
- Kind: Hardware
- Basis: Rack-and-pinion spring padlock: designed for 3D printing, exact nominal mm.
- Page: https://xemstudio.com/objects/rack-and-pinion-spring-padlock/ · JSON: https://xemstudio.com/api/geometry?object=rack-and-pinion-spring-padlock · Plain text: https://xemstudio.com/objects/rack-and-pinion-spring-padlock/sheet.txt
- License: dimension sheet CC BY 4.0 (Xem Studio); files Xem Studio Design License (free to use and sell from, not to redistribute as files: https://xemstudio.com/license/)
- Use in every chat: add https://xemstudio.com/mcp as a connector (https://xemstudio.com/use-with-ai/)

## Overall (mm)

| length | width | height |
|---|---|---|
| 100.0 | 85.0 | 9.7 |

**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.

## 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.

## Mating features (exact size; open press / slide / run / socket by your process clearance, leave designed and clamp 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* |

## Sizes

| 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 |

## Where the files are

- Wikipedia: [Rack and pinion](https://en.wikipedia.org/wiki/Rack_and_pinion) — web — Publisher's page; dimensions are facts
- Wikipedia: [Padlock](https://en.wikipedia.org/wiki/Padlock) — web — Publisher's page; dimensions are facts

## Free STEP/STL (5 parts, Xem Studio Design License, Xem Studio)

Index: https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/index.json · license: https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/LICENSE.md

- rack-padlock-assembled: [STEP](https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/rack-padlock-assembled.step) · [STL](https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/rack-padlock-assembled.stl) — rack padlock assembly
- rack-padlock-base: [STEP](https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/rack-padlock-base.step) · [STL](https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/rack-padlock-base.stl) — rack padlock base
- rack-padlock-bolt: [STEP](https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/rack-padlock-bolt.step) · [STL](https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/rack-padlock-bolt.stl) — rack padlock bolt
- rack-padlock-spiral-spring-gear: [STEP](https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/rack-padlock-spiral-spring-gear.step) · [STL](https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/rack-padlock-spiral-spring-gear.stl) — rack padlock spring gear
- rack-padlock-zigzag-latch: [STEP](https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/rack-padlock-zigzag-latch.step) · [STL](https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/rack-padlock-zigzag-latch.stl) — rack padlock latch

## 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.

## Fits with

- [3D printable spur gears and racks, module 2: 10–40 teeth involute gears and gear racks (STL, STEP)](https://xemstudio.com/objects/printable-spur-gears-and-racks-module-2/)
- [3D printable spiral torsion springs: flat clock springs with square-key hub and lever version (STL, STEP)](https://xemstudio.com/objects/printable-spiral-torsion-springs/)
- [3D printable ratchet wheel and pawl: one-way sawtooth wheel, plain and spring pawl (STL, STEP)](https://xemstudio.com/objects/ratchet-wheel-and-pawl/)
