{
 "version": "2026-10-20",
 "license": "Dimension sheets: CC BY 4.0. Standard and published-size files: CC BY 4.0. Xem Studio's own designs (files_license = Xem Studio Design License): free to use and sell things from, not to redistribute as files — https://xemstudio.com/license/. Other publishers' files: their own license, linked beside them.",
 "slug": "rack-and-pinion-spring-padlock",
 "name": "3D printable rack-and-pinion padlock: spiral-spring gear, rack bolt and zig-zag latch mechanism (STL, STEP)",
 "kind": "hardware",
 "category": "Mechanisms",
 "group": "Gears",
 "year": null,
 "question": "How does a spring-loaded rack-and-pinion padlock mechanism work, and can I 3D print one?",
 "tags": [
  "padlock",
  "rack and pinion",
  "spring gear",
  "spiral spring",
  "latch",
  "zig zag latch",
  "mechanism",
  "toy lock",
  "stl"
 ],
 "aliases": [
  "3d printed padlock mechanism",
  "rack and pinion lock",
  "spring loaded gear",
  "spiral spring gear",
  "zig zag latch",
  "printable lock mechanism"
 ],
 "overall_mm": {
  "length": 100,
  "width": 85,
  "height": 9.7
 },
 "official_cad": false,
 "xem_status": "free-files",
 "les": false,
 "free_files": 5,
 "url": "https://xemstudio.com/objects/rack-and-pinion-spring-padlock/",
 "sheet_txt": "https://xemstudio.com/objects/rack-and-pinion-spring-padlock/sheet.txt",
 "sheet": {
  "basis": "Rack-and-pinion spring padlock: designed for 3D printing, exact nominal mm.",
  "overall_mm": {
   "length": 100,
   "width": 85,
   "height": 9.7
  },
  "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."
  ],
  "table": {
   "columns": [
    "file",
    "what",
    "overall mm"
   ],
   "rows": [
    [
     "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"
    ]
   ]
  }
 },
 "sheet_text": "3D printable rack-and-pinion padlock: spiral-spring gear, rack bolt and zig-zag latch mechanism (STL, STEP) — dimension sheet\nSource: Xem Studio, https://xemstudio.com/objects/rack-and-pinion-spring-padlock/  (sheet CC BY 4.0; files Xem Studio Design License, https://xemstudio.com/license/)\nBasis: Rack-and-pinion spring padlock: designed for 3D printing, exact nominal mm.\nCatalog version: 2026-10-20\n\nOverall (mm): length 100.0, width 85.0, height 9.7\n- 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.\n- 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).\n- 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.\n- 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).\n- Bolt: 12-tooth module-2 rack with 7 sawtooth latch notches (7 mm pitch, 3.5 deep) and a finger tab.\n- Gear sits 0.3 mm farther out than nominal for backlash.\n- Latch: pawl with printed leaf spring; preload it against its post.\n- 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.\n\nfile  what  overall mm\nrack-padlock-assembled  assembled: 4 parts in place  100 × 85 × 9.7\nrack-padlock-base  rack padlock base  100 × 85 × 9.7\nrack-padlock-bolt  rack padlock bolt  87.398 × 18 × 5\nrack-padlock-spiral-spring-gear  rack padlock spring gear  35.975 × 35.975 × 5\nrack-padlock-zigzag-latch  rack padlock latch  35.2 × 17.7 × 5\n\nFiles elsewhere (not hosted by Xem Studio; license as stated by the publisher):\n- Wikipedia: Rack and pinion — web — Publisher's page; dimensions are facts — https://en.wikipedia.org/wiki/Rack_and_pinion\n- Wikipedia: Padlock — web — Publisher's page; dimensions are facts — https://en.wikipedia.org/wiki/Padlock\n\nFree files (Xem Studio Design License, Xem Studio; STEP + STL, 5 parts): https://xemstudio.com/files/mechanisms/rack-and-pinion-spring-padlock/index.json\nAPI: https://xemstudio.com/api/geometry?object=rack-and-pinion-spring-padlock\n",
 "sources": [
  {
   "publisher": "Wikipedia",
   "title": "Rack and pinion",
   "url": "https://en.wikipedia.org/wiki/Rack_and_pinion",
   "formats": [
    "web"
   ],
   "license": "Publisher's page; dimensions are facts",
   "license_verified": true,
   "hosted": false
  },
  {
   "publisher": "Wikipedia",
   "title": "Padlock",
   "url": "https://en.wikipedia.org/wiki/Padlock",
   "formats": [
    "web"
   ],
   "license": "Publisher's page; dimensions are facts",
   "license_verified": true,
   "hosted": false
  }
 ],
 "xem": {
  "status": "free-files",
  "sheet_free": true,
  "mesh_price_usd": null,
  "step_price_usd": null,
  "tolerance_mm": null
 },
 "related": [
  "printable-spur-gears-and-racks-module-2",
  "printable-spiral-torsion-springs",
  "ratchet-wheel-and-pawl"
 ],
 "fits": [],
 "dimensions": "exact (nominal, no tolerance added)",
 "dimension_rule": "All geometry on Xem Studio is exact (nominal, true size) with no tolerance added. Where a part meets another part, the object lists its mating features (feature, exact size, what it mates with, fit class: press, slide, run, socket, clamp or designed). Apply your process's allowance to those features only; 'designed' gaps are part of the design and stay as drawn. Typical accuracy by process and ISO 286 fits: https://xemstudio.com/tolerances/",
 "mating": [
  {
   "feature": "spring gear hub",
   "exact": "5.0 square hole",
   "mates": "4.6 square post",
   "fit": "slide",
   "files": "base"
  },
  {
   "feature": "bolt teeth",
   "exact": "module 2",
   "mates": "16-tooth gear, +0.3 mm centre distance",
   "fit": "designed",
   "files": "gear"
  }
 ],
 "fit_classes": {
  "press": "stays put: pin, tube, bearing or magnet held by interference. ISO 286 equivalent: H7/p6 (locational interference) or tighter.",
  "slide": "assembles by hand and is held by a grub, pinch or clamp: shaft in a hub, rod in a socket, spigot in a bore. ISO 286 equivalent: H7/g6 or H7/h6.",
  "run": "turns or slides in use: pin in a link, rod through a guide. ISO 286 equivalent: H8/f7 (close running).",
  "socket": "large sliding fit: syringe barrel, sleeve, bobbin in a bore. ISO 286 equivalent: H9/d9 (free running) or looser.",
  "clamp": "split part that closes on the mating part with screws: make it at size.",
  "designed": "a gap that is part of the design (piston fit option, displacer gap, air gap): do not change."
 },
 "faq": [
  {
   "q": "What returns the bolt?",
   "a": "The spiral arms inside the gear: pushing the bolt in winds them."
  },
  {
   "q": "How is it held locked?",
   "a": "A spring latch pawl drops into the zig-zag notches on the back of the bolt."
  },
  {
   "q": "Is it secure?",
   "a": "No, it is a demonstration mechanism, not a security lock."
  }
 ],
 "files_license": {
  "name": "Xem Studio Design License",
  "holder": "Xem Studio",
  "url": "https://xemstudio.com/license/",
  "note": "Xem Studio's own design: free to use, print, modify and sell things made from it; not to be republished or redistributed as files."
 },
 "offers": [
  {
   "file": "rack-padlock-assembled",
   "formats": [
    "step",
    "stl"
   ],
   "price_usd": 0,
   "license": "Xem Studio Design License",
   "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",
   "note": "rack padlock assembly"
  },
  {
   "file": "rack-padlock-base",
   "formats": [
    "step",
    "stl"
   ],
   "price_usd": 0,
   "license": "Xem Studio Design License",
   "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",
   "note": "rack padlock base"
  },
  {
   "file": "rack-padlock-bolt",
   "formats": [
    "step",
    "stl"
   ],
   "price_usd": 0,
   "license": "Xem Studio Design License",
   "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",
   "note": "rack padlock bolt"
  },
  {
   "file": "rack-padlock-spiral-spring-gear",
   "formats": [
    "step",
    "stl"
   ],
   "price_usd": 0,
   "license": "Xem Studio Design License",
   "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",
   "note": "rack padlock spring gear"
  },
  {
   "file": "rack-padlock-zigzag-latch",
   "formats": [
    "step",
    "stl"
   ],
   "price_usd": 0,
   "license": "Xem Studio Design License",
   "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",
   "note": "rack padlock latch"
  }
 ],
 "markdown": "https://xemstudio.com/objects/rack-and-pinion-spring-padlock/index.md"
}