Toddler Tunes - A Digital Music Box · Part 4 of 5

Assembled: what the printed parts got wrong

The nylon parts, printed once with no test run, fit almost perfectly. Assembly found four problems: a speaker mounted upside down, a gap under the knob, a shutter held only by gravity, and a button pinned against its switch by a tolerance stack. A sanded stem and a spring fixed the button.

  • Published
  • Worked Nov 2 – 3, 2026
  • Claude Sonnet 5.5, Claude Opus 5.5
  • 3d-printingmjfenclosuretolerance-stackassembly

First fit

The PA11 parts arrived on November 2. The owner had ordered them with no test print, so this was the first time any printed part met the board.

Me

The parts for the enclosure have arrived. Can you remind me which screws go where?

Claude

There are three sets. Four 30 mm pan-head self-tapping screws go up through the base standoffs and the board’s mounting holes into the lid posts, clamping the board. Two 10 mm countersunk self-tappers hold the battery door. Four M3 × 12 countersunk machine screws with nyloc nuts hold the speaker’s flange to the lid. The pot needs no screws: its own nut and washer hold it through the lid.

Me

The first fit was very nearly perfect, apart from the problems below, and the photo of the assembled player shows it. The space for the speaker wiring was tight, especially with the spade connectors I used. With long enough cables, the screw terminals were easy to use.

The assembled rev 0 puck on a wooden table: matte black nylon, the fluted knob and the round button on top beside the grille, four speaker screw heads, and the USB-C shutter in its track across the lid-base seam

The battery door's inside face on the JLC3DP shipping box: ribs across the panel, and an ear with a screw hole at each end

A speaker mounted upside down

Me

I see an error. The speaker is designed to be mounted from the top. Mounting it under the grille causes part of the cone to be pressed up against the grille. As a temporary fix, what size nylon spacers would I need to get a few millimetres of clearance?

Claude

That error is mine: the enclosure clamps the DMA58-8’s flange to the underside of the lid, so the cone sits against the grille. Use M3 nylon spacers, 2 mm long, between the lid and the flange. That’s the most that fits, because lowering the speaker 3 mm would run it into the XIAO’s USB-C rim, where the model leaves only about 2 mm. The screws will need to be longer. I hadn’t checked how far the cone sits below the flange face, so dry-fit one spacer first. The permanent fix belongs in enclosure.py, and I can make it now.

The next day, Dayton’s own 3D model of the speaker confirmed it. The gasket is on the back of the flange, so the speaker is made to mount from the top.

Me

No, just take a note that we’ll need to fix that in the next revision of the enclosure. The M3 × 12 screws were too short with the spacers; I had M3 × 16 on hand, and those fit. The spacers cleared the cone, and it sounds right.

Claude

I started TODO.md for the next revision with the speaker fix and the spacer stopgap. I also carried over three board items from the project notes: holes for the switch’s locating pegs, a durable fixing for the battery holder, and the XIAO footprint’s parity cleanup.

The knob gap and the shutter

Me

The volume knob leaves a gap between its bottom and the surface of the lid. The lid needs a recess so there’s no gap for little fingers to shove something into. The knob also needs securing, either with a grub screw or by gluing it in place.

The printed volume knob on the JLC3DP shipping box: a fluted black cylinder with a domed top

Claude

Recorded: a recess in the lid round the pot, so the knob’s skirt sits in it with no gap. A recess thins the 4 mm lid plate, so the wall check has to run again. Grub screw or glue, the knob must not be able to come off as a small part.

Me

The USB shutter needs a way to keep it closed, like a small spring, or a flexible notch on the lid that has to be pressed in before the shutter can lift.

The USB-C shutter on the JLC3DP shipping box: a small black plate with three raised finger ridges

Claude

Recorded too, with its constraints: walls of 1.0 mm or more, and the shutter’s slid-up position kept in the fit check.

The button: a tolerance stack

The next morning, November 3.

Me

I found another issue after final assembly. The button isn’t “clicky” anymore, and it’s very finicky: a shake can trigger it. We’ll need to change the switch itself, perhaps to a keyboard switch, or give the button a spring that keeps it off the switch’s plunger unless it’s pressed deliberately.

Claude

Probably the cap rather than the switch. The cap is a loose 5.8 g plunger on a 38 mm stem, with 1 mm of designed play above an Omron switch that travels only about 0.25–0.3 mm. Two causes would fit what you’re seeing. Either the cap is pinned and pressing the switch at rest, or it’s free and rattles onto it in a shake. Lift the cap by its edge: about 1 mm of play means it’s free, and none means it’s pinned.

Me

The issue is the first one. After screwing the lid and base together, the button is held right against the stem of the switch without any remaining play.

The button cap on the JLC3DP shipping box: a wide round cap with a flange, and the long stem that reaches down to the switch

Claude

Then the error is in my design. I gave the cap 1.0 mm of play, and the printing tolerances between the lid and the switch add up to more than that: 1.3–1.5 mm in the worst case. With the cap holding the switch’s dome near its snap point, there’s no click, and a small knock tips it over. My README even said the cap “doesn’t depend on print tolerances”, which is only true downward. No rigid cap can work here, with 0.3 mm of switch travel under a stack that varies by about ±0.75 mm.

Where did 1 mm of play go?

The cap’s stop is set by a loop of dimensions, and each printed part can be off by ±0.3 mm, JLC3DP’s MJF tolerance:

  • the lid, from the cap’s seat to the bottom of its guide: 22.85 mm
  • the base, from its shoulder to the tops of the standoffs: 12.00 mm
  • the cap, from its stem tip to the top of its flange: 24.94 mm
  • the board (1.6 mm) plus the switch’s height (7.3 mm), together ±0.2–0.3 mm
  • the lid posts, which end 0.2 mm short of the board, so tightening the screws pulls the lid down by up to 0.2 mm

In the worst case that adds up to 1.3–1.5 mm, against 1.0 mm of play. The switch wasn’t held fully on, or the player would have treated it as a held button and turned itself off after 2 s. So the cap sat between first contact and about 0.2 mm past it.

Me

As a temporary patch, could I sand down the end of the button stem and add a spring?

Claude

Yes, and a spring makes a better patch than sanding alone. Slid over the stem and resting on the switch’s body, never its plunger, it holds the cap up against its stop, so the cap can’t rattle. Sanding about 1 mm off the stem then gives a definite bit of travel before the click. The spring needs a 7.5–8.5 mm bore, about 41.5 mm fitted length and 0.5–1 N. An Uxcell 9 × 0.5 × 50 mm spring fits, at about 0.5–0.8 N by calculation. Measure the printed stem first: it’s designed at 7.0 mm, and MJF can print it up to about 7.3.

Me

Sanding the stem and fitting the Uxcell spring worked perfectly. Before the fix, shaking the player would trigger the button at random.

That same morning, planning for rev 1 began, with these lessons on the list. That is the next post.