Toddler Tunes - A Digital Music Box · Part 5 · latest

Rev 1 on paper: the concept model and light pipes

Planning rev 1 turned the owner's brainstorm into requirements, spikes and test parts in one day. A parametric concept model then changed shape at each of the owner's instructions: a pouch cell, a wider puck, the speaker set into the top, and light pipes instead of a band. An LED test board and a pipe jig followed.

  • Published
  • Worked Nov 3 – 4, 2026
  • Claude Opus 5.5
  • build123denclosureconcept-designlight-pipesopenspec

From a brainstorm to requirements

Rev 0 worked, and the button’s spring was its last fix. A few minutes later, on the morning of November 3, planning for rev 1 began.

Me

I want to prepare for the next revision of Toddler Tunes, and I want to start by discussing the desired capabilities.

Claude

First: who is this revision for? And one tension to keep in view. Anything that runs while the toy is “off” undoes rev 0’s near-zero drain, which comes from its latch cutting the power completely.

Me

A few units as gifts for family. I know the capabilities I want added; they’re in my brainstorming capture, docs/rev-1-planning.md. They include an addressable light ring, a recessed volume knob, a flat top and bottom so nothing is pressed if it falls, and a recessed power switch. Also a bright, saturated colour, a rechargeable non-removable battery charged over USB-C, Wi-Fi and Bluetooth, a microSD card, and updates over the air.

Claude

The chip choice comes first. An ESP32-S3 module with PSRAM has Wi-Fi and Bluetooth on one chip. The alternative, an RP2350 with a CYW43439 radio, needs 224 KB of radio firmware alone, by my measurement in the local pico-sdk. I lean to the ESP32-S3. One principle: the toy works fully with no Wi-Fi. And two doubts. A microSD card reachable from outside is a choking-size part. And MJF nylon isn’t translucent, so a translucent ring needs another material.

Me

Bluetooth is for phone setup, a parent remote and Wi-Fi configuration, not music streaming. Music loads over USB and local Wi-Fi, and eventually from an online service. A master switch fully disconnects power, save for the RTC’s battery. The volume wheel should be tall and chunky for little hands. The button is recessed, so the toy can be placed upside down without it being pressed. The base is weighted for stability, as the speaker at the top will weigh much more than the battery.

Claude

I was wrong earlier when I said a side wheel needs a thumbwheel pot. A drum about 22 mm across, on a vertical shaft and poking out through a window in the side, works. The ballast should be steel, never lead. The RTC gets a soldered rechargeable backup cell instead of a coin cell, citing Reese’s Law.

Me

Off means standby: the MCU sleeps, the LED ring is disconnected, and later it wakes on a schedule to check in with the online service. An encoder for the wheel, for cost. Play time of 30 minutes at most, but anything above 10 minutes is fine for this revision. On a shelf in standby, a few days to a week is fine.

Claude

Standby replaces rev 0’s latch, so sleep current becomes a design target: under about 50 µA. Playing draws 150–300 mA, so the cell is sized for peak current and wear rather than play time. I added one requirement of my own: “A forgotten gift must not drain its own cell.” Then I wrote it all up as an OpenSpec change: 11 specs, 68 requirements and 109 scenarios. I listed the details I had filled in myself for you to check.

What is an OpenSpec change?

OpenSpec keeps each planned change in its own folder under openspec/changes/. Each holds a proposal saying why, a design saying how, and specs made of requirements, each with scenarios. openspec validate --strict checks that the change is well formed.

The spikes use a custom workflow with a proposal, a design and a task list but no specs, because OpenSpec’s standard workflow won’t produce tasks for a change that alters no specs.

Me

I want to add a step in between 1 and 2 for a spike on the enclosure design. I want to get a rough idea of the design before designing the boards. Then, after the boards are complete, we’ll do a final enclosure design pass.

Claude

The build order became seven steps: spikes, the enclosure concept, the schematic, the firmware port, board layout and bring-up, a final enclosure pass, and connectivity. It reverses rev 0, where the board came first: now the enclosure sets the board’s shape.

Spikes, and test parts ordered the same afternoon

Claude

The first spike asks five questions, in order. Can this Mac flash an ESP32-S3 and read its logs? What material and diffusion suit the light band? Which encoder and drum? Which cell? And where does the antenna go?

Me

For measurements I have an oscilloscope, which I’ll use across 0.1 Ω shunts, a bench power supply, a multimeter and a USB meter. I have no 3D printer at home. The gifts will be delivered by hand.

Claude

So every test part comes from JLC3DP, in one order. I wrote them as scripts: band coupons, an LED diffusion jig and fixture, and twelve drums on a test block. I also wrote bench firmware for the ESP32-S3 dev board. One research finding shaped the band: MJF is opaque, so the candidates were white SLS nylon, translucent TPU and a clear resin.

Me

Can you zip up the STEP files so I can upload a single zip to JLC3DP?

The TPU panel parts are too small, and JLC rejects them.

Claude

That one is mine. The research had flagged JLC3DP’s minimum TPU build size, about 30 × 30 × 15 mm, and I missed it: each panel was 60 × 5 × 15 mm. I joined the three panels into one part with tabs to cut flush, widened every arc to 120°, and added a minimum-size check per material to the script.

Me

OK, I’ve ordered those parts. Now what?

The concept model, steered sentence by sentence

Me

While we’re waiting on parts to arrive, I’d like to work on the enclosure concept.

Claude

The concept model is concept.py. From adjustable parameters it produces the board outlines, part positions, height limits and the antenna’s zone, so the boards can be designed against it. I need one number from you: the speaker’s weight.

Me

The weight is 0.3 lb.

Claude

That’s about 136 g, heavier than my 80 g guess. With the speaker at the top, the centre of mass rises, so the base needs ballast.

Me

For rev 1 I’ll solder directly to the speaker’s tabs and insulate them with heat-shrink; the spade connectors weren’t worth the trouble. I don’t want to buy tooling to crimp connectors. Any through-hole parts can come from Mouser, Digi-Key or LCSC, since it’s cheaper for me to assemble them than to pay JLCPCB’s assembly fees.

Claude

My first pass mounted the speaker from the top on a support layer, with the band above it. I recommended an 18650 cell through a slot in the board, giving a 69.3 mm puck, and dropping Layout B, the single ring-shaped board.

Me

I want to use a pouch instead. The steel should be an optional floor disk made with JLC’s sheet-metal cutting. The battery pouch can rest on top of it. The main PCB can either have a circular cutout for the bottom of the speaker, or it needs a vertical clearance keep-out. Make those changes and give me a new concept drawing.

Claude

Both board options are modelled: 59.0 mm tall with the cutout, 62.6 mm with the keep-out. The disc is 304 stainless, 2.5 mm thick and about 110 g, cut away under the antenna. With it, the centre of mass sits at 36% of the height.

Me

Drop layout B. The speaker can be shifted off-centre a bit. The light ring PCB can be expanded to fill the space around the speaker flange, minus a small clearance, so there’s room for LEDs all the way around and the button can be moved. Keep in mind that there needs to be room for travel of the button. We do want a nice tactile feel.

Claude

The ring board now fills the space round the flange, 0.5 mm clear, with all 24 LEDs. Moving the speaker 4 mm back makes room for a 28 mm button inside the ring, and the switch gets 8.4 mm of height for travel. The fit check flagged an overlap between the speaker and the new board. Dayton’s model couldn’t be compared reliably, so the check now uses a stand-in built from the measured sizes.

Me

Widen the entire enclosure, so that the LED ring board doesn’t have overly narrow sections at the corners of the speaker cutout.

What if the LED ring sat above the speaker and had a circular cutout? Would that impact the sound?

Claude

The puck’s diameter now follows from a 5 mm minimum ring width: 114 mm. Checking your question, I found a flaw in my own concept. There’s about 100 cm³ of open air in front of the cone, venting through the grille, with a resonance around 1–1.5 kHz. Rev 0 never had this, because its flange pressed against the lid.

Me

If the top plate has to sit in the right position to minimise unwanted resonance, then the speaker and its mounting layer need to be above the light ring. We could ditch the separate top plate altogether and inset the speaker directly in the top, with space for a small grille cover that screws in through the flange holes, so it serves as part of the speaker mounting.

Claude

Rewritten to your stack. The speaker drops into a pocket in the top piece from above, under a flush grille cover that screws through the flange into bosses below. The ring board sits underneath with a round cutout, and the button switch gets 14.5 mm of height. The puck is 115 × 57 mm, 12 mm lower than rev 0 and 7 mm wider. The air in front of the cone drops from about 100 cm³ to about 10.

The rev 1 concept exploded: the grille cover and speaker above the top shell, the green LED ring board with its round cutout, the band, the sleeve, the main board, the blue pouch cell and the grey steel disc in the base

A front-to-back section through the button: the speaker in its pocket under the grille cover, the ring board below it, the main board with its cutout under the speaker, the pouch cell and the steel disc at the bottom

Each of those instructions came back as a re-run model with fresh numbers within about two minutes: at 16:03 and 16:04, 16:17 and 16:19, 16:38 and 16:38, and 16:50 and 16:52.

Light pipes instead of a band

Me

I want to mock up what it would look like to forgo the translucent light ring and instead use more common ALEDs set in a ring, minus a few for the button clearance, with light pipes going through the top plate. The pipes would be pressed in with a little superglue rather than held by VCC’s retainers.

Claude

The pipes went in as a switch in the same model: 21 VCC pipes on a 50.3 mm radius round the grille cover, about 13 mm apart, with 3 positions skipped at the button. Each stops 0.94 mm above its LED, inside VCC’s 1.27 mm limit. A units slip of mine: I read VCC’s length code as thousandths of an inch, but it’s hundredths (050 is 0.500″), so no length matched until I fixed it.

The rev 1 concept with a translucent band round its side, under the square grille cover

The same puck with 21 light pipes in a ring round the grille cover instead of the band

Me

I think I like the light pipes. Let’s go with that as the primary plan; I can cancel the test print orders. I’d also like a new jig to test a few different light-pipe lengths and ALED packages, to determine which give the best visual effect.

Claude

The jig puts four pipe lengths against four LED packages at the ring’s 13.2 mm spacing, all under one flat plate, so a single photo compares them. Washers step the LED-to-pipe gap, and a fit coupon tests the holes. It includes a no-glue row, because superglue can crack stressed acrylic. The wall check caught thin spots in my geometry, which I thickened. One requirement changed: pipes flush in a flat top can’t be seen edge-on, so the ring is now “visible from above and down to about 20°”.

The light-pipe jig: a black base holding the LED test boards, pipes of four lengths lifted above it, and the flat plate on top

Me

I accept the 20° requirement. I cancelled the band parts from the first order and ordered the jig separately.

An LED test board, and JLC’s assembly classes

Me

Yes, create the test board in KiCad. Set it up so that it can be a single PCB with V-cuts to separate.

Claude

I generated the schematic and board by script, with new footprints for two LEDs that KiCad lacks, and built a V-cut panel of five. V-cut panels force JLC’s Standard assembly, which has a higher setup fee.

Me

Then let’s drop the panelling ourselves and let JLC do it. We’ll just order 5 of the single boards and have 4 of them assembled.

Claude

Done. A single board can use the cheaper Economic assembly, which takes boards from 10 × 10 mm up.

Me

How sure are you that the protocol works similarly enough between the different ALED families on the board? To be safe, can you add bypass solder jumpers on the bottom of the board?

Claude

Your question sent me back to the datasheets, and my earlier note that one timing “suits every candidate” was wrong. Each LED re-times the data before passing it on, so a mismatch between neighbours can’t be fixed in firmware. The XL-1615 wants a “1” pulse of at least 900 ns, and the bench firmware sent 700 ns. The new timing, 350 and 950 ns, sits inside all four datasheets. Each LED now has a SKIP jumper after it on the back.

The LED test board: 5050, 3535, 2020 and 1615 LEDs in a chain between IN and OUT headers, each with its capacitor

Me

The small board size is forcing the Standard assembly class. Can you make it a panel using mouse bites? No V-cut.

Claude

A two-board mouse-bite panel, with 6 mm rails and tabs to file flush.

Me

The issue was that the surface finish needed to be HASL, but then the components themselves forced Standard assembly anyway. So we’ll order bare boards and a stencil, and I’ll reflow them on my hot plate.

Claude

My claim that the single board could use Economic assembly didn’t hold. All four LEDs are “Standard Only” at JLC, and so were the two alternates I checked, so no LED swap would help. The plan is bare panels and a stencil from JLC, the parts from LCSC, and your hot plate.

By the afternoon of November 4, the jig and the test boards were on order, and the concept had settled on light pipes. What came after, the ESP32-S3 toolchain spike, the bench rig and the power rig, will appear in later posts.