# Printing the parts yourself

The files, material, print settings, screws and checks for printing the case, the cradle and the socket guide yourself, and how to build the files.

What to print, how, and what it takes to fit [the case](/wiki/case), [the cradle](/wiki/cradle) and the socket guide.

## The files

Each printed part is in the repository as a STEP and an STL, as it prints: the case's base, deck, plunger and socket guide in `hardware/case/parts/`, the cradle's frame and lid in `hardware/cradle/parts/`. For Probes, print the base, the deck, two plungers and the cradle's frame and lid. For Sockets, print the base, the deck, two plungers and the socket guide.

To build the files again from the models, see [Building the files](#building-the-files).

## Material and settings

Print everything in PETG with a 0.4 mm nozzle, no supports.

> [!WARNING]
> Do not print the cradle in PLA. It creeps under a constant load, more so when the bench is warm, and the probes press on the cradle all the time.

| Part | File | On the bed | Settings |
|---|---|---|---|
| Case base | `base.stl` | as it stands | 0.2 mm layers, 4 walls, 20 % infill |
| Case deck | `deck.stl` | upside down, its top on the bed | 0.2 mm layers, 4 walls, 20 % infill |
| Plunger, two of them | `plunger.stl` | flange on the bed | 0.2 mm layers, 100 % infill |
| Cradle frame | `frame.stl` | as it sits on the board | 0.2 mm layers, 4 walls, 40 % infill |
| Cradle lid | `lid.stl` | upside down, its top on the bed | 0.2 mm layers, 4 walls, 40 % infill |
| Socket guide, Sockets only | `guide.stl` | as it stands, its foot on the bed | 0.2 mm layers, 4 walls, 40 % infill |

A smooth bed gives the deck's top its finish. Two colours suit the case: the base dark, the deck light, as in the pictures.

The holes that matter are drawn at their final size. Check them after printing: the deck's plunger holes (4.4 mm, the stems must drop through freely) and insert holes (4.0 mm), the cradle's hinge axle holes (2.8 mm) and screw pilot holes (2.2 mm), and the socket guide's pilot holes (2.2 mm).

## Screws and hardware

| Qty | Part | Where |
|---|---|---|
| 4 | M3 heat-set insert, 5.7 mm long, for a 4.0 mm hole | the case deck's posts, pressed in with a soldering iron |
| 4 | M3 x 20 socket head screw, ISO 4762 | the case, from below, through the base and the board into the inserts |
| 4 | M2.5 x 6 button head screw, ISO 7380-1 | cradle frame to the board, from below; they cut their own thread in the frame |
| 2 | M2.5 x 6 button head screw, ISO 7380-1 | the cradle lid's hinge axles, from outside |
| 4 | M2.5 x 6 button head screw, ISO 7380-1 | Sockets only, instead of the cradle's six: socket guide to the board, from below |

Check the insert maker's hole size before printing the deck.

Without the case, the board needs legs: the probe sleeves reach 13.3 mm below it. Use four 20 mm M3 female-female standoffs in the corner holes, with eight M3 x 6 button head screws.

## Check before printing

These are assumed in the models and worth checking on the real parts:

- The height of the Dabao's USB-C receptacle (3.26 mm assumed) and how far its shell legs stand out below the Dabao (0.9 mm assumed).
- The probes' height: their tips should stand 6.54 ± 0.3 mm above the board's top face.
- The fit of the pocket: a Dabao should drop in and be pushed onto the left wall and the front stops. The springs and ribs can be eased with a file.
- That the latch holds the lid with the pads on the Dabao, and lets go with a thumb.
- The height and travel of `BOOT` and `RST` (2.5 mm and 0.25 mm assumed), and how deep a JST SH plug sits in its header (1.5 mm assumed).
- That a 20 mm screw reaches 5 mm into the insert, and that the cradle's lid opens fully in the bay before the case's screws are tightened.
- Sockets: the sockets' height (8.38 mm, from Samtec's drawing) and the headers' spacer (2.5 mm), which set the Dabao's height; and that a Dabao with its headers drops into the guide.

## Building the files

The parts are modelled in TypeScript with [replicad](https://replicad.xyz), each from one file of dimensions: `hardware/case/dimensions.ts` and `hardware/cradle/dimensions.ts` in the repository. Every run reads the bench link board's layout file and checks the parts against it: clearances to the board's parts, the Dabao, the probes, the sockets, the plugs and the cradle lid's swing. The case is also checked against the cradle's own model. A run stops if anything fails.

The case and the cradle are one Bun workspace in `hardware/`. With [Bun](https://bun.sh), in `hardware/case` or `hardware/cradle`:

```sh
bun install --frozen-lockfile --ignore-scripts
bun run build
```

`bun run build` runs the check, then writes a STEP and an STL of each printed part, as it prints, to that folder's `parts/`. `bun run check` runs the check alone.