---
title: "Raspberry Pi Case Generator — Pi 5, Pi 4, Zero & Arduino Uno Cases (STL / STEP) | Forgent3D"
description: "A 3D printable case for your board: Raspberry Pi 5, 4 B, 3 B+, Zero 2 W or Arduino Uno R3 / R4, with every port opening placed from the official drawings and a screwed lid. Free STL / STEP."
url: https://www.forgent3d.com/en/generators/raspberry-pi-case-generator
---

[Home](https://www.forgent3d.com/en) [3D print generators](https://www.forgent3d.com/en/generators) Raspberry Pi & Arduino Case Generator

# Raspberry Pi and Arduino case generator: openings placed from the official drawings

Pick your board — Raspberry Pi 5 by default — and get a two-part case laid out from the board's official mechanical drawing or STEP file. Every connector gets an opening open to the split line, so the lid drops over the ports; USB-C and micro-USB openings are sized for the plug, not just the socket. The board's own screws hold it on standoffs and close the lid, so there's no friction lid to work loose.

[Open the generator →](https://app.forgent3d.com/g/dev-board-enclosure?lang=en) [Edit with AI](https://app.forgent3d.com/g/dev-board-enclosure?lang=en&intent=edit)

## Use it right here

The real generator runs in your browser: set the parameters, then download STEP or STL. Nothing to install, no sign-up.

![Raspberry Pi & Arduino Case Generator](https://app.forgent3d.com/g/dev-board-enclosure/thumb)

The first open downloads the CAD engine (about 20 MB).

- Six boards, every hole and port from the official drawings: Pi 5, Pi 4 B, Pi 3 B+, Pi Zero 2 W, Arduino Uno R3 and R4
- Openings sized for USB plugs, with a clearance you can raise for bulky HDMI or DC plugs
- Screwed lid: the board's mounting screws close the case
- Slots over the headers, vents over the processor, the SD card reachable from outside

## Parameters you can tune

Each parameter below rebuilds real geometry on every change — this is parametric CAD, not a scaled mesh.

| Parameter | Default | Range | What it does |
| --- | --- | --- | --- |
| Board BOARD | Raspberry Pi 5 | Pi 5 / Pi 4 B / Pi 3 B+ / Pi Zero 2 W / Uno R3 / Uno R4 | Board outline, mounting holes and every connector come from the official drawings and STEP files. |
| Wall thickness WALL | 2 mm | 1.2 – 3 | 2 mm like the most-printed cases. |
| Port clearance PORT\_CLEARANCE | 0.5 mm | 0.2 – 1.5 | Kept all round each connector. Raise it for bulky HDMI, audio or DC plugs. |
| Header slots in the lid HEADER\_SLOTS | on | on / off | A slot over the GPIO / Arduino headers for jumper wires. |
| Lid vents VENTS | on | on / off | Slot vents over the processor. |

Every parameter can go in the page's link, so one link opens exactly the part you want. Example (Pi 4 case with thicker walls and roomier port openings):[https://www.forgent3d.com/en/generators/raspberry-pi-case-generator?BOARD=Raspberry+Pi+4+Model+B&WALL=2.4&PORT\_CLEARANCE=0.8](https://www.forgent3d.com/en/generators/raspberry-pi-case-generator?BOARD=Raspberry+Pi+4+Model+B&WALL=2.4&PORT_CLEARANCE=0.8)

## What's in the STEP file

- The Raspberry Pi 5 case exports as two exact solids, base and lid, with 196 faces: 160 planes, 32 true cylinders (standoffs, lid pillars, screw holes and pilots, rounded corners) and 4 cones (the countersinks under the floor).

STEP AP214 in millimetres, exact B-rep — it opens directly in SolidWorks, Fusion, FreeCAD, Onshape or Inventor, and goes straight into a CNC quote form. STL for the slicer is one click too.

## How it compares

|  | This generator | Typical online STL generator | Vendor CAD library |
| --- | --- | --- | --- |
| Any size within the range | Yes | Yes | Catalog sizes only |
| STEP with exact surfaces | Yes | Usually an STL mesh only | Yes |
| Changes the sliders don't cover | “AI edit” on the page | No | No |
| Account needed to download | No | Usually no | Often |

## Let AI change it

### Put the numbers in the link

Every parameter is a link parameter; the link below opens the example part. ChatGPT, Claude or any assistant can write one like it from the parameter list (names, units, ranges) at: [parameter list (JSON)](https://app.forgent3d.com/api/generators/dev-board-enclosure)

Example: [https://www.forgent3d.com/en/generators/raspberry-pi-case-generator?BOARD=Raspberry+Pi+4+Model+B&WALL=2.4&PORT\_CLEARANCE=0.8](https://www.forgent3d.com/en/generators/raspberry-pi-case-generator?BOARD=Raspberry+Pi+4+Model+B&WALL=2.4&PORT_CLEARANCE=0.8)

### Edit with AI on the page

Press “AI edit” in the generator and say what to change — a keyway, holes, a different shape. The AI edits the part's model.py and it rebuilds in your browser, with undo. A few edits a day are free without signing in; to keep the result or go further, copy it into your models and continue with the AI agent.

[Edit with AI →](https://app.forgent3d.com/g/dev-board-enclosure?lang=en&intent=edit)

### Keep going in your workspace

For bigger changes, several rounds, or a part you want to keep: copy it into your models (free account). The Forgent3D AI agent reads the model.py, edits it, rebuilds it and checks the result itself.

[Copy and continue with the AI agent →](https://app.forgent3d.com/g/dev-board-enclosure?lang=en&intent=ai)

## How it works

1.  1.Open the generator — the model builds right in your browser, nothing to install.
2.  2.Tune dimensions and options in the parameter panel; the geometry rebuilds live in 3D.
3.  3.Export STL / STEP for printing — or ask the AI agent for features beyond the sliders.

## FAQ

### Which screws do I need?

Raspberry Pi boards: four M2.5 × 12 countersunk screws. Arduino Uno R3: four M3 × 16; the Uno R4 takes three plus a printed locating pin. They go up through the floor, the standoffs and the board into pillars in the lid. Friction-fit lids are the most common complaint on popular printed cases ("the lid is a bit loose"), so this one is screwed.

### Will my cables fit?

USB-C and micro-USB openings are sized for the plug overmold given in the USB specifications — a frequent complaint about cases with socket-sized openings is that micro-HDMI cables don't fit. HDMI, audio and DC plugs have no standard size: if yours is bulky, raise the port clearance.

### Which filament for a Raspberry Pi 5?

PETG or better: one maker reports a Pi 5 softened a PLA base. Keep the lid vents on. The case also leaves 0.5 mm all round the board, because cases that hug the PCB have cracked boards during assembly.

### Is there a case for an ESP32 DevKit?

Yes, on its own page: the ESP32 Case Generator, linked under “More generators” below. Espressif's DevKitC boards have no mounting holes and on the clone boards the hole positions disagree from one source to the next, so that generator holds each of its 15 ESP32 boards — DevKit V1, DevKitC, S3, C3 SuperMini, XIAO, ESP32-CAM and more — by its outline instead of with screws through the board. Raspberry Pi and Arduino are trademarks of their owners; this generator makes compatible cases and is not affiliated with them.

### How do I get a 3D printable case for a Raspberry Pi 4?

Open https://www.forgent3d.com/en/generators/raspberry-pi-case-generator?BOARD=Raspberry%20Pi%204%20Model%20B — a two-part case laid out from the official mechanical drawing: every port gets an opening, the GPIO header a slot in the lid, and four M2.5 × 12 countersunk screws go up through the floor and the board into pillars in the lid, so the same screws hold the board and close the case.

### Can it make an Arduino Uno case without the vents?

Yes: https://www.forgent3d.com/en/generators/raspberry-pi-case-generator?BOARD=Arduino%20Uno%20R3&VENTS=false — USB-B and DC jack openings sized for the plugs, header slots in the lid, closed with four M3 × 16 screws. For the Uno R4 Minima or WiFi pick that board instead; one of its holes sits too close to the DC jack for a pillar, so it gets a locating pin and three screws.

### Can I sell prints made with these generators?

Yes. Models you generate and the STL / STEP files you export are yours: print them, sell the prints, or use them in a product. No attribution to Forgent3D is required.

## More generators

[Fan Grill Generator](https://www.forgent3d.com/en/generators/fan-grill-generator) [18650 Battery Holder Generator](https://www.forgent3d.com/en/generators/18650-battery-holder-generator) [ESP32 Case Generator](https://www.forgent3d.com/en/generators/esp32-case-generator) [Washer & Spacer Generator](https://www.forgent3d.com/en/generators/washer-spacer-generator) [3D print generators →](https://www.forgent3d.com/en/generators)

Already have your own .scad file? [Convert OpenSCAD to STEP →](https://www.forgent3d.com/en/openscad-to-step) · [Preview it in the browser →](https://www.forgent3d.com/en/openscad-viewer) · [Have an STL? Convert it to STEP →](https://www.forgent3d.com/en/stl-to-step)
