Arcade Wedge — Raspberry Pi 4 or 5 + camera case
110 W × 100 D × 75 H mm (plus feet). Four printed parts, no supports needed. The base and the shell are drawn once for a Raspberry Pi 4 Model B and once for a Raspberry Pi 5. The bezel and the front panel fit both.
More cases for the same parts: the 16-Bit Mini in 16bit_mini/, and two without the camera: the Midnight Grimoire, a spell book, in grimoire/, and the Fossil Rib Cage in ribcage/.

Pi 4 or Pi 5
| Pi 4 | Pi 5 |
|---|---|
![]() |
![]() |
The two boards are the same size and have the same four holes, so what holds the board is the same. Their sockets are in different places, and so, by 0.3 mm, is the microSD card. The two bases and the two shells differ by that alone. Print the pair for your board.
| Pi 4 | Pi 5 | |
|---|---|---|
| Left side, from the back | USB, USB, Ethernet | Ethernet, USB, USB |
| Back | USB-C, two micro-HDMI, audio | USB-C, two micro-HDMI (0.2 and 0.3 mm nearer the USB-C). No audio socket, so no hole |
| Slots in the floor | under the processor | under the processor, which is 10 mm nearer the back |
| Power button | header pins 5 and 6, and a line in config.txt |
soldered to the board's J2 pads, with no setting: Power button |
| Camera's ribbon | 15 pins at both ends | a Standard-Mini cable, 15 pins to 22: Hardware |
| Fan's wires | pins 4 and 9 | pins 4 and 6: Fan |
| microSD card | its end 18.6 mm in from the right side | 19.3 mm in, as it stands out 1.7 mm past the board, not 2.4: microSD card |
| Printed | yes, before the fan's arms were redrawn and the microSD opening was cut | no |
What has been checked for the Pi 5
The Pi 5's base and shell have not been printed, and no Pi 5 has been in the case. Checked without either:
- The Pi 4's parts did not change when the Pi 5's were added. Its base is the same file byte for byte, and its shell has every point where it was. The microSD opening came after, cut the same way in both boards' parts.
- In CAD, a Pi 5 drawn from Raspberry Pi's mechanical drawing, with its card and its own power button, touches neither part, seated or as the shell comes down over it. Each socket has the room in its opening that the Pi 4's has: 0.9 mm each side of a USB stack, 0.4 mm each side of the Ethernet socket.
print_check.pymarks nothing on either part, and reads the Pi 5's shell as it reads the Pi 4's, which printed. The walls between the openings are 3.0 and 2.9 mm (3.0 and 2.85 on the Pi 4's), and on the back 1.8 and 2.3 mm (1.9 and 2.5).- No new overhangs: the faces that hang have the same area on both, to a tenth of a square millimetre.
- Bambu Studio 2.9 slices the Pi 5's plate with no warning. With 3 walls it is 3 h 59 min and 140 g, as the Pi 4's is.
Not checked:
- Whether the sockets of a real Pi 5 meet their openings. Raspberry Pi calls its drawing's figures approximate.
- The processor's place, which the drawing shows but gives no figure for. It was measured off the picture, and only the slots in the floor follow it.
- The places of the microSD card and the board's own power button, which the drawing also shows without figures. They were measured off the picture too, and only the microSD opening follows them.
- A plug on a header at J2, 0.4 mm from the back wall: Power button.
- How warm a Pi 5 runs in this case: A Pi 5 and heat.
- The run of the Standard-Mini cable. In a straight line the camera's socket is 68 mm from the nearer of the Pi 5's two, and 65 mm from the Pi 4's.
- The console's software, which has run on a Pi 4 only.
Files
Everything is in arcade_wedge/.
| File | What it is |
|---|---|
arcade_wedge_case_pi4_plate.3mf, arcade_wedge_case_pi5_plate.3mf |
All four parts on one plate, already in print orientation, for each board |
stl/base_pi4.stl, shell_pi4.stl, base_pi5.stl, shell_pi5.stl |
The base and the shell for each board |
stl/bezel.stl, front_panel.stl |
The two parts that fit both (with the above, the parts to print one colour at a time) |
fan_mount_test.3mf, stl/fan_mount_test.stl |
The fan mount alone, cut out of the shell's top: a short print to try the fan in first (see "Fan"). The same for both boards |
step/arcade_wedge_case_pi4_assembly.step, arcade_wedge_case_pi5_assembly.step |
Assembled CAD model incl. a reference Pi and camera, for Fusion / FreeCAD / Onshape |
arcade_wedge_case.py |
Parametric source. uv run arcade_wedge_case.py regenerates everything, for both boards |
preview/ |
Renders: assembled, each board's case from behind, exploded, print plate, the microSD opening, fan mount, camera mount |
Printing
| Part | Colour | Orientation (as exported) | Size on bed |
|---|---|---|---|
| base | black | floor down | 110 × 100 × 11.5 |
| shell | black | upside-down, top face on the bed | 110 × 94 × 72 |
| bezel | red | back face down (rounded front edge up) | 110 × 68 × 6.4 |
| front_panel | teal | face down (camera mount pointing up) | 98 × 63 × 20.5 |
0.4 mm nozzle, 0.2 mm layers, 3+ walls, 15–20 % infill. PETG is the safer choice next to a Pi, and more so a Pi 5, which has more heat to lose; PLA works if the case is not in the sun. Sliced for the P2S with the 0.20 mm Standard profile, 3 walls and PLA, either board's plate is 4 h and 140 g, and the shell alone 2 h 19 min and 79 g.
The STLs are already rotated — don't let the slicer "auto-orient" them. If the 3MF asks whether it is a multi-part object, answer no.
Hardware
| Qty | Screw | Where |
|---|---|---|
| 4 | M3 × 8 pan head | base → shell (2 front, 1 each side) |
| 4 | M3 × 8 countersunk | bezel → shell (hidden behind the teal panel) |
| 4 | M2.5 × 6 | Pi → base standoffs |
| 4 | M2 × 6 (optional) | camera → front panel posts; the camera snaps in, so these are only a backup |
| 4 | 12 mm stick-on rubber feet | recesses under the base |
| 1 | 12 mm momentary push button, panel mount (M12 thread) | power button, back of the shell |
| 1 | CanaKit Raspberry Pi Fan (RSP-FAN, 30 × 30 mm) | under the top vents |
| 1 | Pi 5 only: Raspberry Pi Camera Cable, Standard-Mini, 200 mm | camera → Pi. A Pi 5's camera sockets are the small 22-pin kind. A Pi 4's ribbon, with 15 pins at both ends, does not fit them |
| 1 | Pi 5 only: 2-pin header | soldered to the board's J2 pads, for the power button's plug |
All screws thread straight into the plastic (pilot holes are sized for that).
A Pi 5 wants Raspberry Pi's 27 W supply. On a 3 A one it shares 600 mA between its USB sockets, where the larger gives them 1.6 A.
For the button, the easy choice is a 12 mm "PC power button" that comes pre-wired with a 2-pin motherboard plug: it pushes straight onto the Pi's header, no soldering. A bare button with solder lugs needs two female jumper wires soldered on. It must be momentary (springs back), not latching.
Assembly
- Screw the Pi to the base. USB/Ethernet point left, USB-C/HDMI point back (a Pi 4's audio socket too). A Pi 5 gets its J2 header soldered on first (see "Power button" below).
- Screw the red bezel onto the front of the shell with the 4 countersunk screws.
- Snap the camera onto the back of the teal panel, ribbon edge down, lens through the hole (see "Camera mount" below). Plug the ribbon into the camera.
- Lay the panel into the bezel a few mm low, then slide it up so its two top tabs go into the pockets in the bezel.
- With the shell upside-down, lower the fan between the four guides inside the top, label side facing you and its lead leaving to the left or the right, and press on its front and back edges until both arms click over it (see "Fan" below).
- Push the power button through the hole in the back of the shell from the outside and tighten its nut on the inside.
- Plug in the ribbon, the button and the fan, where the table says ("Power button" and "Fan" below have how to find each pin). Lower the shell onto the base (the base lip catches the bottom of the panel), and fit the 4 base screws.
| Pi 4 | Pi 5 | |
|---|---|---|
| Ribbon | the CAMERA connector | either CAM/DISP socket, the pair between the HDMI sockets and the Ethernet socket |
| Button's plug | header pins 5 and 6 | the J2 header |
| Fan's two wires | pins 4 and 9 | pins 4 and 6 |
- Focus by turning the lens from the outside.
The microSD card goes in and comes out with the case closed, through the opening low in the right side: see microSD card.
microSD card

The card is changed with the case closed, through the opening low in the right side. The opening is 20 mm wide and runs from the floor of the base to 24 mm up, across the seam between the base and the shell.
The card is under the edge of the board, and its end is 18.6 mm in from the outside (19.3 mm on a Pi 5). That is too deep for a slot with a notch for a fingernail, so the opening is made for a finger: one 16 mm wide and 13 mm thick reaches the card's end through it, with 2 mm to spare each side.
To take the card out, shut the Pi down and unplug it. Put a finger in, palm up, and press its nail on the top of the card where it stands out past the board (2.4 mm of it on a Pi 4, 1.7 mm on a Pi 5). Then draw it out. Tweezers also work.
To put one in, hold it by its end, label down and the end with the contacts first, and slide it in under the edge of the board until it enters the socket. Push its end with a fingertip until it stops, standing out past the board as before.
On a Pi 5, the board's own power button is just inside the opening as well: 8 mm behind the card (toward the back of the case), on top of the board, and 1.3 mm further in than the card's end. A finger on the back corner of the card can press it, and a press starts a Pi 5 that is plugged in. Unplug it first.
What has been checked, in CAD, for both boards:
- The opening takes away nothing but the right wall of the base and of the shell.
- A straight path 14 mm wide, from 1 mm under the card to the underside of the board, is clear from the outside to the card. So are two fingers drawn as boxes 16 mm wide and 13 mm thick: one lying on the floor with its tip 0.5 mm from the card's end, and one lying on the card, nail down, with its tip at the edge of the board.
- Between the opening and the pad for the right-hand base screw, 2.8 mm of wall is left (2.5 mm on the Pi 5's base). It is 3.8 mm (3.5) to the shell's tab for that screw, and 5.5 mm up to the side vents.
- The base and the shell still do not overlap, and neither touches either board, seated or as the shell comes down. The bezel, the front panel and the fan test piece are unchanged.
print_check.pyreads both parts as it did before the opening: each starts on the bed as one piece, and nothing new stands alone. The opening is open at the top of the base and at the bottom of the shell, which is its top as printed, so neither part bridges it, and the faces that hang have the same area as before.- Bambu Studio slices both plates with no warning. The opening takes 1.2 g off a plate.
Nothing with the opening has been printed, and no card has been taken out or put in through it. No real finger has been tried either: the fingers above are boxes. Where the card sits under a Pi 4 is from this script's model of the board, not measured on one, and good to about a millimetre; under a Pi 5 it was measured off Raspberry Pi's drawing. The case already printed has no opening: its card is changed with the 4 base screws out, as before.
Power button
Pi 4
The button connects pin 5 (GPIO3) to pin 6 (GND) on the 40-pin header. With the base in front of you, the header runs along the front edge of the Pi and pin 1 is at its right-hand end (the microSD end). Pins 5 and 6 are the third pair from the right, one behind the other. Polarity does not matter.
Count carefully: the first two pins of the front row (pins 2 and 4) carry 5 V. Bridging 5 V to a GPIO pin can damage the Pi.
Add this line to /boot/firmware/config.txt (/boot/config.txt on older Raspberry Pi
OS releases) and reboot:
dtoverlay=gpio-shutdown
Pressing the button then shuts the Pi down cleanly, and pressing it again starts it. The Pi stays plugged in and draws a small standby current while off. GPIO3 is also the I2C clock line, so this button cannot share the header with an I2C device on pins 3/5.
Pi 5
A Pi 5 has a power button of its own, on the microSD end of the board. It is 20 mm inside the case, beside the microSD opening: a finger can reach it, but not easily (microSD card). The board also has two pads for wiring another, marked J2. They are at the back edge, between the USB-C socket and the HDMI socket next to it, behind the small battery socket. By Raspberry Pi's documentation, a momentary switch across them does all that the board's own button does.
Solder the 2-pin header to the pads before the Pi goes into the base, and push the button's plug onto it. Or solder the button's two wires to the pads. Polarity does not matter.
There is no line to add to config.txt. On Raspberry Pi OS Lite, which the console
runs, one press shuts the Pi down cleanly and the next starts it. Held down, it cuts
the power. The Pi stays plugged in and draws a small standby current while off.
Do not wire a Pi 5 the Pi 4's way. Tried on a Pi 5: a button on pins 5 and 6, with
dtoverlay=gpio-shutdown in config.txt, shut it down cleanly, and the next press did
not start it. A button left on pins 5 and 6 can be a standby switch instead, which
the console's software sets up with one line in config.txt
(A power button). Moved to J2, it leaves pins 5
and 6 free: the fan has pin 6 back.
Not checked: the spacing of the pads, and whether a plug standing on a header there clears the back wall. The wall's inner face is 0.4 mm from the board's edge, and the pads are within 3 mm of that edge. If the plug does not clear it, bend the header's pins toward the front of the case before soldering, or solder the wires.
Fan

The fan snaps onto a collar under the top vents, above the Pi's processor: 5 mm from the middle of a Pi 4's, 10 mm from a Pi 5's. No screws: two spring arms (front and back) hold it. Four guides, two beside each arm, and two lips (left and right) keep it centred. With the label side facing away from the top (toward the Pi), it pulls air in through the vents and blows it down onto the board. Flip it to exhaust instead.
To fit it: turn the fan so its lead leaves to the left or the right (the guides stand at the front and back), lower it flat between the guides, and press on its front and back edges until both arms click. Don't hook one edge under an arm and lever the other in: a tilted fan can reach an arm before a guide, and then only the rib behind the arm limits how far it bends.
To remove it: pull both arms back until they meet the ribs behind them, one with each thumb, and take the fan out. One at a time also works: free one edge, let it come out 2 mm, then free the other.
If an arm ever breaks, the collar also has four screw holes 24 mm apart, so a fan with corner holes can be fixed with four M3 × 12 screws instead. They go through the fan from the Pi's side and bite 4 to 5 mm into the collar.
Why the arms look the way they do
The first clips both snapped off as the fan went in. Any arm printed upright bends across its layers, the weak way, and a thicker arm bent the same distance is strained more, not less. So these are drawn to bend less sharply:
| First clips | Arms now | |
|---|---|---|
| Length, root to hook | 14 mm | 22 mm |
| Thickness | 1.2 mm | 2.0 mm at the root, 1.0 mm at the catch |
| Root | sharp corner | 2 mm radius |
| Bend as the fan passes | 0.85 to 1.05 mm | 0.61 to 0.81 mm |
| Strain where it is greatest | 0.85 to 1.05 % | 0.26 to 0.35 % |
| Bent too far | nothing stops it | a rib stops it 0.3 mm further on, at 0.48 % |
| Fan off centre | lands on a clip | meets a guide first |
The strain is a beam-bending sum. It compares the two shapes; it does not promise that the new one survives.
The collar is 14 mm tall instead of 6, which is where the arms get their length. The fan sits 8 mm lower than before, and the mount is still 27 mm from the nearest part of either Pi.
Try it before printing the shell
These arms have not been printed. fan_mount_test.3mf is the fan mount alone, on
a piece of the shell's top: 47 min and 16 g, against 2 h 19 min and 79 g for the
shell. Print it as it is, in the filament the shell will be, and fit the fan. If an
arm cracks there, the shell's will too: hold the fan with the four screws instead.
What has been checked without printing:
print_check.pymarks nothing on the shell or the test piece. Each arm stands alone for 24.6 mm and gives 0.34 mm for each newton pushed on its tip; the shell's grille bars give 0.47 and printed.- No new overhangs. The mount crosses the vent slots on 3.5 mm bridges, as before.
- In CAD, a fan 7, 7.5 or 8 mm thick touches nothing but the arms, seated or on its way in. A fan arriving flat and up to 2.4 mm off centre meets a guide before an arm; one tilted 12 degrees can meet an arm first. The camera, the button and the panel are 10 mm or more from the mount.
- Bambu Studio slices the shell, the test piece and the whole plate with no warning.
The mount is the same on both boards' shells, and so is the test piece.
Not checked: whether the arms survive, how firm the click is, and how tight a 7 mm fan sits. The catch is steep, so a fan with rounded edges may hang a few tenths of a millimetre below the collar's rim.
Wiring
The header is in the same place on both boards: along the front edge of the Pi, with pin 1 at its right-hand end (the microSD end).
- red → pin 4 (5 V): front row, second from the right
- black, on a Pi 4 → pin 9 (ground): back row, fifth from the right. Pin 6, the usual ground for this fan, is taken by the power button.
- black, on a Pi 5 → pin 6 (ground): front row, third from the right, beside the red. The Pi 5's button is not on the header.
Owners report the fan runs slower and quieter with red on pin 1 (3.3 V) instead; CanaKit does not document that.
A Pi 5 also has a socket marked FAN, for a fan it can slow and stop. This fan's plug does not fit it.
The 5 V pin is live whenever the Pi is plugged in, so the fan keeps spinning after you shut down with the power button. Unplug the supply to stop it.
If the fan's wires don't reach the header with the shell lifted, extend them with two male-to-female jumper wires.
A Pi 5 and heat
Raspberry Pi gives a Pi 5's typical current as 800 mA and a Pi 4's as 600 mA, so a
Pi 5 has about a third more heat to lose. No Pi 5's temperature has been measured
in this case. Read it over SSH while a game runs, with vcgencmd measure_temp: a
Pi slows itself down from 80 °C.
If this fan is not enough, Raspberry Pi's Active Cooler is a heatsink and blower that clips onto a Pi 5 and plugs into its FAN socket. It is 13.7 mm tall and fits under everything here, with the case's fan or without: in CAD the camera, the button and the fan are each 23 mm or more from a block of its size on the board. Plug the camera's cable into the Pi before the cooler goes on. Raspberry Pi's documentation says the sockets are awkward to reach after.
Camera mount

The camera snaps onto the back of the teal panel, no screws. Four corner guides centre the board over the standoffs, and two spring arms (left and right) click over its back.
To fit it: hold the board square, connector edge toward the bottom of the panel (the end with the vent slots), put the lens through the hole and press on the left and right edges of the board until both arms click.
To remove it: push one arm outward with a fingernail and lift that side of the board. A rib behind each arm stops it after 0.7 mm; don't lever against the rib.
Why the arms look the way they do: the first fan clips were 1.2 mm thick with a sharp corner at the root, had to bend 0.85 mm, and snapped. These arms are 1.6 mm thick and 14 mm wide, have a rounded root, and only bend 0.4 mm. A thicker arm bent the same distance is under more strain, not less, so the smaller bend matters as much as the thickness. They are still printed upright, which is the weak direction for any printed part: PETG is tougher than PLA here.
These were drawn before the fan's arms were redrawn, and have not been changed. By the same sum as the table under "Fan", they are strained 0.47 to 0.65 % as the board goes in and 0.83 % against the rib: less than the clips that snapped, more than the fan's arms now.
If an arm ever breaks, the standoffs still have their screw holes: four M2 × 6 screws hold the camera exactly as before.
Check before printing the shell
The fan mount is made for a fan 30 × 30 mm square and 7 to 8 mm thick. CanaKit publishes the 30 × 30 mm size but not the thickness; 7 mm is the figure usually quoted for this fan. Measure yours.
- Size: the guides are 30.4 mm apart. A wider fan needs a larger
FAN_FIT. - Thickness: anywhere from 7 to 8 mm needs no change. If you know it, set
FAN_T_MINto your measurement andFAN_T_MAXto 0.5 mm more, and re-run the script: the narrower the range, the less the arms bend (0.43 to 0.63 mm for 7.0 to 7.5). Do the same for a fan thinner than 7 mm or thicker than 8.
Then print the test piece first: see "Try it before printing the shell" above.
Check before printing the front panel
The snap-in mount is made for a board 39 × 39 mm square and about 1.6 mm thick.
- Size: 39 × 39 mm is InnoMaker's published figure. The guides allow up to 39.6 mm.
- Thickness: not published; 1.6 mm is the standard circuit-board thickness, about
the same as a US penny. Anything from 1.0 to 1.9 mm is held, but a thin board has
some play (0.5 mm for a 1.2 mm board). For a snug fit set
CAM_PCB_Tto your board's thickness and re-run the script. - Hole spacing: the standoffs assume 34.0 × 34.0 mm, measured from InnoMaker's
board photos. It only matters if you use the backup screws; if yours differs,
change
CAM_HOLE_PITCH.
Only front_panel changes when you re-run the script with new camera values.
Parameters worth knowing (top of arcade_wedge_case.py)
| Name | Default | Effect |
|---|---|---|
CAM_HOLE_PITCH |
34.0 | camera mounting hole spacing |
CAM_SNAP |
True | snap-in camera mount (False = plain standoffs and screws) |
CAM_PCB_T |
1.6 | camera board thickness the snap arms are set for |
CAM_ARM_T, CAM_ARM_W |
1.6 / 14 | snap arm thickness / width |
CAM_HOOK |
0.55 | how far each hook reaches in (more = firmer hold, more bending) |
CAM_STANDOFF_H |
13.0 | how far the camera sits behind the panel (lens sticks out ~7 mm) |
LENS_HOLE_D |
17.5 | lens opening |
A_FRONT |
12 | lean of the front face = upward tilt of the camera, in degrees |
FIT |
0.25 | clearance between printed parts; raise it if your printer runs tight |
SWITCH_HOLE_D |
12.4 | power button hole in the back wall (16.4 for a 16 mm button, 0 for no hole) |
SWITCH_X, SWITCH_Z |
32 / 55 | position of the button on the back wall |
SD_HOLE_W |
20.0 | width of the microSD opening in the right wall, centred on the card (0 for no opening) |
SD_HOLE_TOP |
24.0 | height of its top edge above the underside of the base; it runs down to the floor |
FAN_T_MIN, FAN_T_MAX |
7.0 / 8.0 | range of fan thickness the arms hold (narrower = less bend) |
FAN_HOLE_PITCH |
24.0 | spacing of the optional fan screw holes (0 removes the whole fan mount) |
FAN_GAP |
14.0 | height of the fan collar, and most of the arms' length: a shorter collar strains them more |
FAN_ARM_T, FAN_ARM_TIP_T |
2.0 / 1.0 | arm thickness at the root / at the catch |
FAN_CATCH_ANGLE |
70 | steepness of the catch (steeper = less bend, a softer hold) |
FAN_STOP_GAP |
0.3 | how far past its working bend the rib behind each arm lets it go |
FAN_FIT |
0.2 | clearance each side of the fan, between the guides |
M3_PILOT, PI_SCREW_PILOT, CAM_SCREW_PILOT |
2.8 / 2.15 / 1.7 | self-tapping hole sizes |
PI_BOARDS |
Pi 4 and Pi 5 | where each board's sockets, processor and microSD card are. The script writes a base and a shell for every board listed |
Where the dimensions come from
- Raspberry Pi 4 Model B: official mechanical drawing (https://datasheets.raspberrypi.com/rpi4/raspberry-pi-4-mechanical-drawing.pdf) — 85 × 56 mm board, M2.5 holes on a 58 × 49 mm pattern, port centres and heights.
- Raspberry Pi 5: official mechanical drawing (https://datasheets.raspberrypi.com/rpi5/raspberry-pi-5-mechanical-drawing.pdf) — the same board and holes, USB-C at 11.2 mm, micro-HDMI at 25.8 and 39.2, Ethernet at 10.2, USB at 29.1 and 47. Its J2 pads, its camera cable, the typical currents and the supply's USB limit are from Raspberry Pi's documentation (https://www.raspberrypi.com/documentation/computers/raspberry-pi.html), and the Active Cooler's size from its product brief (https://datasheets.raspberrypi.com/cooling/raspberry-pi-active-cooler-product-brief.pdf).
- Camera: InnoMaker CAM-OV5647 manual and repo (https://github.com/INNO-MAKER/CAM-OV5647) — 39 × 39 mm board, 4 × Ø2.2 mm holes, M12 lens in a 22 mm-pitch holder.
- Fan: CanaKit Raspberry Pi Fan product page (https://www.canakit.com/raspberry-pi-fan.html) — 30 × 30 mm, held without screws in CanaKit's own case. The 7–8 mm thickness and the 24 mm screw spacing are the usual values for 30 mm fans, not CanaKit figures.

