Fits Raspberry Pi 5 — Raspberry Pi case generator (3D print model)Generate a 3D-printable vented case for Raspberry Pi 5, Pi 4, or Zero 2 W with official hole patterns, fan clearance, GPIO slot, and wall or VESA mounts.
Features
- Official mechanical-drawing presets for Raspberry Pi 5, Pi 4, and Zero 2 W
- Vented lid with optional 30 mm or 40 mm fan opening and GPIO slot
- Wall keyhole ears, VESA 75/100 mm mounting tabs, or desk feet
- Board-specific port cut-outs with editable cable clearance
- PETG default with thermal warning for PLA (55 C HDT)
- A colour to match your filament or your room
- A lid in a colour of its own: a two-colour case from two filaments, with no nozzle change
What people make with it
- House a Raspberry Pi 5 with active cooler clearance and generous top vents
- Mount a Pi 4 behind a monitor using 75 mm or 100 mm VESA tabs
- Print a slim snap-lid enclosure for Raspberry Pi Zero 2 W with GPIO access
- Build a custom SBC box from your own measured PCB dimensions
How to use
- Pick your Raspberry Pi board preset or measure your own SBC.
- Choose internal height for a bare board, active cooler, or HAT.
- Select mounting style (desk, wall keyholes, or VESA 75/100 mm) and vents.
- Print base and lid flat in PETG, no supports.
Materials
- PETG: recommended — HDT 68 C (Prusament TDS) — recommended for Pi 5/4 thermal loads.
- ASA: works — High heat resistance for warm cabinets.
- PLA: works — HDT 55 C — may soften near hot SoC without active cooling.
Preset dimensions
Presets
- Measure your own board — Generic SBC enclosure: enter your own measured PCB length, width, hole pattern, and cooler height.
- Fits Raspberry Pi 5 — Exact 85×56 mm PCB, 58×49 mm Ø2.7 mm holes (3.5 mm inset) from the official Raspberry Pi 5 mechanical drawing. 26 mm internal height clears the official Active Cooler. Not affiliated with or endorsed by Raspberry Pi.
- Fits Raspberry Pi 4 Model B — Exact 85×56 mm PCB, 58×49 mm Ø2.7 mm holes, R3 corners, USB Z 16.0 mm and RJ45 Z 13.5 mm from the official Raspberry Pi 4 mechanical drawing. Not affiliated with or endorsed by Raspberry Pi.
- Fits Raspberry Pi Zero 2 W — Exact 65×30 mm PCB, 58×23 mm Ø2.7 mm holes (3.5 mm inset) from the official Raspberry Pi Zero 2 W mechanical drawing. Not affiliated with or endorsed by Raspberry Pi.
Frequently asked questions
Why does this case default to PETG instead of PLA?
Raspberry Pi 5 operates up to 70 C ambient while PLA softens around 55 C (Prusament TDS). PETG (68 C HDT) handles sustained SoC heat much better.
Will the official Raspberry Pi 5 Active Cooler fit?
Yes — set internal height to 24 mm or more and enable lid vents for unobstructed intake.
How is the board held, and how do I get it out?
The board is pushed onto four pins, one in each mounting hole. Each pin is 0.5 mm thinner than the hole you enter, 2.2 mm for the 2.7 mm holes of a Raspberry Pi, so the board goes on and stays by itself. To take it out, lift one corner of the board gently. The pins are 4 mm long.
How is the lid held on?
By a lip all round: the lid has a rim that drops into the opening of the base, with a little play. There are no screws and no snap hooks. Print both parts flat and try the lid before you put the board in. If it is tight, sand the rim lightly.
Which way round are the ports?
With the microSD side on the left: on a Pi 4 or Pi 5 the power and micro-HDMI are on the front long side, and the USB and Ethernet on the right short side. On a Zero 2 W the mini-HDMI and both micro-USB are on the front long side. The lid goes on top, with the GPIO slot over the long side opposite the ports.
Can I use a HAT or a heatsink?
Yes, as long as it is not taller than the internal height. Set the height to the tallest part on top of the board, plus a millimetre. A HAT that is fixed with the four mounting screws does not fit: the standoffs end in pins, not in screw holes.
What do I need for the fan?
A 30 mm or 40 mm fan and four self-tapping screws: the holes in the lid are 3.3 mm. The opening is 3 mm smaller than the fan. The screw holes are 24 mm apart for a 30 mm fan and 32 mm apart for a 40 mm fan.
Related generators
3D printing guides
Version 1.3.0 · For AI agents and developers: API v1, schema.json, index.md. Open-source licences