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 →Edit with AI

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

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

Parameters you can tune

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

ParameterDefaultRangeWhat it does
BoardBOARDRaspberry Pi 5Pi 5 / Pi 4 B / Pi 3 B+ / Pi Zero 2 W / Uno R3 / Uno R4Board outline, mounting holes and every connector come from the official drawings and STEP files.
Wall thicknessWALL2 mm1.2 – 32 mm like the most-printed cases.
Port clearancePORT_CLEARANCE0.5 mm0.2 – 1.5Kept all round each connector. Raise it for bulky HDMI, audio or DC plugs.
Header slots in the lidHEADER_SLOTSonon / offA slot over the GPIO / Arduino headers for jumper wires.
Lid ventsVENTSonon / offSlot 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

What's in the STEP file

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 generatorTypical online STL generatorVendor CAD library
Any size within the rangeYesYesCatalog sizes only
STEP with exact surfacesYesUsually an STL mesh onlyYes
Changes the sliders don't cover“AI edit” on the pageNoNo
Account needed to downloadNoUsually noOften

Let AI change it

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 →

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 →

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.

Why isn't the ESP32 DevKit in the list?

Espressif's DevKitC boards have no mounting holes, and the many clone boards have no official drawing to work from. Pick the closest board and use “AI edit” to change it. 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

Already have your own .scad file? Convert OpenSCAD to STEP → · Preview it in the browser →