The method
Build a box around your board
Choose the board, leave some space around it, add the cutouts your cables need and pick a lid. Standoffs land on the board's official mounting holes, and the lid prints flat beside the box.
Boards
Mounting holes used
| Board | Size | Holes |
|---|---|---|
| Raspberry Pi 4 and 5 | 85 × 56 mm | 4 × Ø2.7 mm (M2.5), 58 × 49 mm apart, 3.5 mm from the edges |
| Arduino Uno | 68.6 × 53.3 mm | 4 × Ø3.2 mm (M3), at the positions on the official drawing |
Cutouts
Port cutout sizes
| Port | Cutout | Notes |
|---|---|---|
| USB-C | 10 × 4 mm | Leaves room for the plug’s overmould. |
| Micro-USB | 7 × 2.6 mm | |
| DC barrel jack | Ø8 mm | For panel-mount jacks with a 5/16 inch bushing. |
| 3.5 mm audio | Ø6 mm | Panel jack; use 7 mm for a jack on the board. |
| RJ45 keystone | 14.9 × 19.3 mm | Check against your keystone. |
| USB-A, HDMI | 12.5 × 5, 16 × 7 mm | Approximate: measure your connector. |
Cable plugs are bigger than the sockets they fit, so measure the plug if it is chunky.
Printing
Printing enclosures
- Box open side up, lid flat. Arched and rounded cutouts bridge cleanly.
- Screws: self-tapping screws bite into the pilot holes; brass heat-set inserts last longer if you open it often.
- Material: PETG or ASA near heat sources such as a Raspberry Pi under load; PLA softens around 60 °C.
Questions, answered
Will it fit my board exactly?
The holes follow the official drawings for the Raspberry Pi 4/5 and Arduino Uno. Measure your connectors’ heights, since they vary between boards and revisions.
Can I add more cutouts?
Four cutouts are available. For more, drill them after printing or edit the STL in a CAD program.
Which material should I use?
PETG is a good all-rounder; use ASA or PC for enclosures that get hot or live outdoors.
Sources
Print advice is a starting point drawn from these references, checked on 2026-11-07. Community posts are one maker's experience, not a specification.
- Raspberry Pi 4 mechanical drawing Raspberry Pi
- Raspberry Pi 5 mechanical drawing Raspberry Pi
- Arduino Uno Rev3 datasheet Arduino
- USB connector design guidance OpenAT Design Guide (Makers Making Change)
- 3.5 mm audio jack design guidance OpenAT Design Guide (Makers Making Change)