# 3D-printed parts

Built with SolidCraft 0.44 from one parametric script. `params.json` holds every dimension you may
need to change; `python3 build_cad.py` regenerates everything in `out/` and the copper-box template.
The script writes SolidCraft command scripts to `build/` and runs them through `solidcraft-cli`
(the engine behind SolidCraft's MCP server), so the same scripts can be replayed from the app.

![section](out/images/cell_section.png)

**Rev B (19 Nov 2026).** After the bill-of-materials check the case was enlarged (heat-spreader plate
58 x 118 mm, room for a deeper key switch), the mains inlet cut-out and wall were set for a snap-in
IEC module, a barrier was added between the mains inlet and the isolated-side parts, the toroid bolt
became M6, the AC/DC toggle hole became 12.2 mm, the fuse-holder hole gained its flat and moved to the
right wall, and the cap's link-wire hole became 4 mm. `params_revA.json.bak` and `build_cad_revA.py.bak`
are the previous version. Rev B1 (same day): the inlet moved 7 mm inboard and 4 mm up because its
body ran into the rear-right lid post, and the rotary switch's anti-rotation peg hole was restored. The Blender renders, the 3D web models and the films were all redone for Rev B on 19 and 20 Nov 2026.

## Parts

| File (`out/`) | Part | Print as exported | Notes |
|---|---|---|---|
| `CapBody.stl` | Cap: plate, wiring cavity, wire guide tube, vent chimney | plate down | No supports. The chimney roof and vent windows are short bridges. |
| `ClipFrame.stl` | Frame with six sprung fingers that grip the glass | flat | Screws under the cap plate. Fingers are in-plane so they do not snap along layer lines. |
| `CapLid.stl` | Cavity lid with the wire-clamp tower | lid down | Labels BOX +, WIRE -, VENT. |
| `WireHood.stl` | Red hood over the clamp tower | open end up | Print in a warning colour. |
| `BoxCarrier.stl` | Hangs the copper box under the cap; rails with end stops, anode stud hole, level pointer | on its back | Its length depends on the vessel height. |
| `CaseBase.stl`, `CaseLid.stl` | Pulse-unit enclosure 206 x 206 x 96 mm (Rev B) | base upright, lid face down | Needs a 250 x 250 mm bed. Lid labels are debossed. |

The STL files are already laid on their print faces. STEP files are in assembly position.
All the STEP files can be opened and reviewed in SolidCraft, the open-source modeller the parts were designed in
(https://github.com/tangency-labs/solidcraft).
`cell_assembly.sc` and `case_assembly.sc` open in SolidCraft with the vessel, electrolyte, copper box
and wire included as reference bodies.

**Material:** PETG, or ASA/ABS. Not PLA: it softens near the ballast and is attacked by alkali.
0.2 mm layers, 4 perimeters, 30 % infill or more.

## The vessel

Default: rectangular glass staining trough 105 x 85 x 80 mm outside (soda-lime, sold with a glass
lid by lab suppliers; Hecht Assistent 42480010 is the one the cap is drawn for), 4 mm wall assumed.
The school buys this vessel; it is not in the kit. Measure yours and set `vessel` in `params.json`. The cap
layout needs an opening of at least 95 x 80 mm outside and a height of at least 60 mm; the script
stops with a message otherwise. `glass_clearance` (0.75 mm) and `finger_interference` (0.9 mm) set
how firmly the cap grips.

## Hardware for the cell

- All screws into printed parts are thread-forming (for plastics), stainless.
- 4 x M3 x 10 pan-head thread-forming screws: clip frame to cap plate, from above
- 4 x M3 x 8: lid to cavity posts; 2 x M3 x 8: carrier flange, from inside the cavity
- 1 x M3 x 12 stainless cap screw, plain nut and knurled thumb nut: anode stud through the carrier spine, head in the front recess, thread pointing to the back
- 2 x M2 x 12 screws with nuts: microswitch on the front cavity wall (slotted, so its height adjusts)
- 2 x 4 mm shrouded safety sockets (12.2 mm holes, 19 mm apart), 1 x 3.5 mm mono jack (6.2 mm hole)
- Brass insert from a 15 A screw terminal strip (about 6 mm square, two screws): drops into the tower pocket from the top with both screws fitted; the slot in the tower is open at the top and 0.6 mm wider than the screw heads. Solder a short link wire to it for the black socket. Set `barrel_pocket` and `barrel_screw_head` to suit your insert.
- EPDM foam strip under the cap plate where it meets the glass rim (optional)
- Anode link: 0.5 mm2 silicone-insulated wire through the 4 mm hole in the cap plate; crimp the ring tag after threading
- Copper sheet 0.2 mm (C101) for the boxes, the thickness Matsumoto gives for his copper plates; witness strips 58 x 9 mm from the same sheet
- Case: 6 x M3 x 12 thread-forming lid screws; 4 stick-on rubber feet 5 mm tall; M6 toroid bolt about 55 mm long (a 50 mm kit bolt may not reach the captive nut, a 60 mm one stands 4 mm below the floor); relay socket on an M3 x 16 screw with its head underneath and the nut inside, so nothing stands lower than the feet

The full list is in `../BOM/`.

## Assembly notes

1. Drill the wire guide bore (printed 1.4 mm) to your wire diameter plus 0.2 mm, in the cap tube and in the carrier web.
2. Screw the clip frame under the cap plate. Check the cap pushes onto the vessel and lifts off with a light pull.
3. Fit sockets, jack and microswitch; wire them; fit the carrier; run the red socket's wire down through the 4 mm hole to a ring tag on the anode stud under the first nut. The stud's thread points to the back of the carrier; the copper box's strap goes on after the plain nut and is held by the thumb nut.
4. Adjust the microswitch in its slots so it clicks just before the cap is fully seated.
5. Drop the brass barrel, with its screws in, into the tower from the top, screws facing the slot and its link wire down the bore, and screw the lid down.

## Using the pointer

The carrier's pointer tip is 10 mm above the box floor (`liquid_above_box_floor`). Fill until the
liquid just touches it. Set the wire so its tip is level with the pointer tip. Both then agree
without measuring anything.

## What the build checks

`build_cad.py` asks SolidCraft to confirm every body is a closed solid and reports clashes between
bodies. Two are expected and intended: the clip fingers overlap the glass by their preload, and the
reference electrolyte surrounds the box. Anything else means a parameter change has broken the fit.

Not checked: the fit of bought-in parts (sockets, relay socket, 12 V module, inlet; the four parts on the 58 x 118 mm plate fit with about 1 mm to spare, so lay them out 1:1 before drilling; the inlet body and its receptacles must be no deeper than 41 mm to clear the barrier). Compare them
with the holes and pockets before printing the case; the sizes are in `params.json` under `case`.
