📚 Encyclopedia

3D Printing & CAD · updated 2026-10-13

Designing printable involute gear trains (the orrery case)

gearsinvolutebacklashclearanceorrerymanifold3dmutation-testingfdm

How a printable, hand-cranked orrery (Sun plus Mercury, Venus, Earth, Mars) was designed and checked entirely in code for the Bambu X2D, without being able to print it. The gear math, clearances and the checking method transfer to any printed mechanism. Generator, checker and slicer driver live in ~/dev/justinahampton/tools/orrery/ (Python + numpy + manifold3d); the page is /fun/freetime/orrery/. Nothing has been printed; every fit is a calculated guess.

The gear train

Generating involutes by simulated rack cutting

Cut the tooth space by rolling a rack cutter past the blank and subtracting each position. One pitch of rolling must be combined with copies rotated by every tooth, or the teeth come out lopsided.

Clearances for FDM

Checking what you cannot print

The method that worked, worth repeating for any mechanism: 1. Write the checker alongside the generator and run it on the first parts (it caught a misplaced cluster and overhanging teeth within minutes). 2. Give the files to a mechanical reviewer and the checker to a code reviewer told to break the design on purpose. 3. Turn those deliberate breakages into a permanent mutation test (28 broken designs that the checker must reject). The first run exposed a real flaw: planet gear teeth resting on the cluster's spacers with zero gap, independently confirmed by a second mechanical review. 4. A checker that compares the model with the design's own numbers cannot see a wrong design number. It also needs absolute limits (play between 0.15 and 0.6 mm, minimum wall, every part rests on something), full-turn sweeps rather than one sample pose, and judging solids from the actual STL bytes. Reviews also caught physics the checker did not model: a Sun modeled hovering would drop onto Mercury's tube, arms would droop onto the top plate, and two-position tabs made setting a date impossible.

Slicing results

Standard kit on five plates (fit test 64 min, frame 2 h 09, gears 3 h 28, arms 35 min, planets 25 min): 7 h 41 min and 232 g total via the Bambu CLI (Slicing from the command line with Bambu Studio (flatpak), including two-color prints).

Known weaknesses left in the design

The top plate only sits on its pegs (lifting by an arm pulls it apart); the base is 3 mm thick; no brim on the tall Mercury tube; whether 1 mm dial grooves print legibly is unknown.

See also

Linked from

Sources: justinahampton memory (freetime-orrery, vacation-planet), tldr post #1760, 2026-10-13