Piezo conditioning module and tiles
The per-pad circuit, packaged for printing. References in brackets point to REFERENCES.md.
Piezo module (piezo_module.scad)
A slim printed box, 42 × 24 × 6.8 mm with its lid, holding one pad’s circuit: piezo red → 1 kΩ → 1N4728 zener to GND → 1N4148 → 10 nF ∥ 1 MΩ → SIG out.
- Parts in moulded cradles, joints in small solder wells, and a bare GND bus wire in a groove along one side.
- 4 × M2 holes on a 16 mm square, the grid of the PCB bosses on deepPan’s printed pad mount base [R2]. In stage 3 the module bolts straight onto a printed pad. The same screws hold the lid on and let modules stack vertically.
- A dovetail rail on one side and a slot on the other, so modules also clip together side by side into strips.
- Wire entries: red and black from the piezo at the IN end; SIG, GND and GND-OUT (to daisy-chain ground) at the OUT end.
- The lid is embossed with the pad name, e.g.
C6.
| Assembled (parts shown) | Exploded |
|---|---|
![]() |
![]() |
Printable STLs (the base and all 29 labelled lids) are in print/; see Printing.
Component sizes assumed: ¼ W resistors (6.3 × 2.4 mm), DO-35 1N4148 (4 × 2 mm), DO-41 1N4728 (5.2 × 2.7 mm), and a 5 mm ceramic disc capacitor lying flat. Check them against your parts before printing a batch.
Layout under the mock-up (layout.py)
This places a box module per pad from the real pad positions [R1], with the mux and Pico tray at the centre. It writes renders/layout_modules.png and wire_lengths.csv (cut lengths). The outer ring’s modules sit radially. The central and inner ones would crowd the centre, so they stack in strips beside the mux.
Tessellated tiles (tessellate.py)
The alternative: instead of boxes, give each pad a tile shaped like its own cell of the underside, a Voronoi cell of the 29 pad centres clipped to the rim [R21]. The tiles fit together into the drum’s shape, with the piezo recessed at each tile’s centre and the circuit beside it.

The cells follow the groove areas of the drum (groove_cells.py segments docs/tenor_pan_layout.png and warps it onto the real pad centres; --voronoi gives plain Voronoi cells). On that geometry, 22 of 29 tiles have room for the 36 × 13 mm circuit cavity beside the piezo. The other seven (C5, C10, I0–I4) put the cavity under the piezo instead, as a two-layer tile about 10 mm thick. tiles.json stores each tile’s outline, piezo position and cavity pose, ready for generating printable tiles.
Printable tiles (make_tiles.py)
python make_tiles.py turns tiles.json into one printable tile per pad, print/tiles/tile_<pad>.3mf (29), and a lid for each, print/tiles/lids/lid_<pad>.3mf. The tiles are hot-glued under the cardboard, so there are no bolts.

Sections through two tiles, seen from above. C0 has the cavity beside the piezo; I0 has it under the piezo:

- The piezo sits in the hub. A seat 0.2 mm deep (disc + 0.6 mm) at the cardboard face locates the brass rim. A hole under the ceramic (ceramic + 2 mm) leaves it free to flex, and a notch takes the black wire’s solder joint on the rim. Gluing the tile down pinches the rim between the hub and the cardboard. A dab of glue on the rim holds the disc in place while you assemble.
- Printed flipped (4 Dec): the skin face goes on the bed and the cavity opens upward, so the cavity has no bridge (the first ePLA-LW tile, printed the other way, sagged there). The spokes and cavity box therefore run full height to the skin face, and the skin is located by 2 loose 3 × 6 mm dowels in holes, not printed pins.
- Tiles are 2 mm apart and never touch, so a hit isn’t carried into the next pad’s tile. Don’t glue tiles to each other.
- The circuit cavity (36 × 13 × 4.4 mm) opens downward. Its ceiling has the same layout as
piezo_module.scad: troughs for R1 (1k), D1 (1N4148), Z1 (1N4728) and R2 (1M), a seat for C1 (10 nF), 3 mm solder wells at every joint, a signal-row lead groove and a GND bus groove for a bare tinned wire. Turn the tile over, lay the parts in, solder, then push the lid in. - Wires in:
- Cavity beside the piezo (22 tiles): the leads drop out of the ceramic hole and run in a channel (3.2 mm wide, open on the underside) to the cavity’s IN end, splitting round a strain-relief post: red to the signal row, black to the GND bus.
- Cavity under the piezo (C5, C10, I0–I4): the leads go straight down through a 3.5 mm hole in the floor, placed clear of the parts.
- Wires out: two exits in the OUT end wall, one on the signal row (SIG to the mux) and a wider one on the bus row (GND in and GND-OUT, daisy-chained). They’re slots open on the underside, so you lay the wires in; the lid closes them into holes.
- Labels: each lid has the pad name engraved, readable from below (the tiles’ underside name tab was dropped: printed flipped it would hang in the air).
- Heights: 6.0 mm (cavity beside), 8.0 mm (cavity under). Outer tiles are about 130 × 125 mm, one per plate or nested. Total about 375 cm³: 465 g in solid PLA, roughly half in foaming PLA.
- Disc sizes come from the two lines at the top of
piezo_mount.scad. Each tile takes the 27 mm disc wherever its seat fits (at least 1 mm inside the rim, moved up to 4 mm off the pad centre if that helps), otherwise the 20 mm: 27 pads take 27 mm discs (I1 is 2.1 mm off centre); I2 and I4 take 20 mm discs (I4 1.1 mm off centre). The script warns if a seat or cavity then cuts into a rim. - Flat, for the cardboard mock-up. The tile outlines are the drum’s pad layout seen from above, projected onto a plane. For the printed bowl (stage 3), the same outlines would get a top face shaped to the bowl’s underside from the stage 3 surface data. That’s not done yet.
Material: foaming PLA (LW-PLA, Bambu PLA Aero) is the better choice here. It’s lighter and absorbs more vibration than solid PLA, so less of a hit travels through the tile. Use its own filament profile (Bambu’s “PLA Aero” system preset sets the foaming temperature and reduced flow), at 0.2 mm layers, without supports, with the open side down on the plate, exactly as exported. The engraved labels come out rougher but stay readable. Hot glue sticks well to it; a low-temperature gun is kinder to thin parts.
Test first: print O3, its neighbour C3 and I1 (with their lids). Glue them under scrap cardboard with their piezos, build one circuit, and tap: check the signal, and how much a tap on O3 shows on C3, before printing the rest.
Piezo mount for bare discs (piezo_mount.scad)
Both sensor sizes are bare brass discs. Each one goes brass side up against the cardboard, held by a printed clamp ring underneath that presses only the brass rim (the ceramic sits free in the centre hole). Three M2 screws (or pins) go up through the cardboard into a 1 mm top plate, which the pad sticker covers.
- Ring 2.6 mm thick, plate 1.0 mm: thin, but solid PLA at 4 walls, so stiff.
- 0.2 mm clamp recess for the brass rim, a notch for the black wire’s solder joint, a side slot for the wires, and M2 nut traps on the back.
- Two presets:
large(27 mm disc, 20 mm ceramic) andsmall(14 mm disc, 10 mm ceramic). These are placeholders: measure your discs. Printpiezo_gauge.stlfirst (pockets for 12–35 mm discs); the pocket your disc drops into givesdisc_d. Edit the two lines at the top of the file and re-runmake_print.sh.
| Mounted (cardboard, plate, disc, ring) | Ring, back face |
|---|---|
![]() |
![]() |
Mux boxes (mux_box.scad)
One CD74HC4067 per ring, each on its own Pico ADC input, select lines S0–S3 shared:
| Box | Pads | Channels | Pico |
|---|---|---|---|
| OUTER | O0–O11 | 0–11 | GP26 / ADC0 (pin 31) |
| CENTRAL | C0–C11 | 0–11 | GP27 / ADC1 (pin 32) |
| INNER | I0–I4 | 0–4 | GP28 / ADC2 (pin 34) |
Where they go: stacked at the centre of the pan, under the tile layer, with the Pico on top. Four M3 bolts through the common hole grid hold the stack. The inner wires are then a few cm, the outer ones run radially (about 20 cm at most, see wire_lengths.csv), and the select bus stays short.
- Fits the common “16-Channel Analog Multiplexer” breakout (sold in panels, e.g. TS-YM-305: snap the boards apart). C0–C15 run along one long edge; GND, VCC, EN, S0–S3 and SIG along the other, opposite C4–C11; two 3 mm mounting holes at the ends of the control side. Board about 41 × 18.5 mm, read from a photo: check with calipers and edit the board block at the top of
mux_box.scad. - 61 × 35.5 × 9.4 mm base. The board sits on 2 posts at its mounting holes (M2.5 or M2 self-tapper) and 2 rests under the C edge, 3 mm up to clear solder tails.
- Input wall: 16 numbered holes, each directly opposite its C pin, for the SIG wire from each pad, plus 2 larger holes at the ends for the bundled pad grounds. Solder the wires straight into the board (no headers): in from the top, soldered underneath, before fitting.
- Output wall: one slot opposite the control pins for the 7-wire lead to the Pico (GND, 3V3 to VCC, S0–S3, SIG). Jumper EN to GND on the board, and fit a 100 nF across VCC–GND.
- Lid embossed with the ring, its ADC pin and the pad-to-channel map.

Printing
./make_print.sh rebuilds everything in print/ (OpenSCAD 2021+). Every part is already oriented flat for printing; lids print top face down, so the lettering comes out on the smooth bed side.
| File | Notes | |
|---|---|---|
piezo_gauge.stl |
1 | Print first: measure your disc sizes |
piezo_mount_ring_large/small.stl |
1 per pad | After setting the disc sizes |
piezo_mount_plate_large/small.stl |
1 per pad | Goes on top, under the sticker |
piezo_module_base.stl |
1 per pad (29) | Circuit box |
piezo_module_lids/lid_<pad>.stl |
1 each | Labelled O0–I4 |
mux_box_base.stl |
3 | |
mux_box_lid_OUTER/CENTRAL/INNER.stl |
1 each |
Bambu P1S, 0.4 mm nozzle, ordinary PLA (Bambu PLA Basic or generic PLA, textured PEI plate):
| Setting | Value | Why |
|---|---|---|
| Process base | 0.16 mm Optimal | Small lettering and 0.2 mm clamp recess |
| Wall loops | 4 | Thin parts (≤ 2.6 mm) print fully solid: stiff without bulk |
| Top / bottom shells | 6 / 5 | |
| Infill | 40 % gyroid | Only the boxes have any infill |
| Supports | off | None needed |
| Brim | none | |
| Elephant-foot compensation | 0.15 mm | Keeps the bed-side recess and holes true |
| Hole compensation (XY) | 0.1 mm | M2/M3 holes clear without drilling |
| Filament | PLA, 220 °C nozzle, 55 °C bed | Printer defaults are fine |
print/deepPan_P1S_PLA_0.4.json holds these as a Bambu Studio process preset: File → Import → Import Configs, then pick “deepPan stage2 PLA 0.16 stiff @P1S 0.4” with the P1S 0.4 printer and a PLA filament. If Bambu Studio rejects it (preset names change between versions), select “0.16mm Optimal” and set the rows above by hand. Use the Fill bed / copies option to print 29 module bases in a few plates.



