Arcade Wedge

This is the README that comes in the download. The files it names are in the zip.

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/.

assembled

Pi 4 or Pi 5

Pi 4 Pi 5
the Pi 4 case from behind the Pi 5 case from behind

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:

Not checked:

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

  1. 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).
  2. Screw the red bezel onto the front of the shell with the 4 countersunk screws.
  3. 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.
  4. 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.
  5. 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).
  6. Push the power button through the hole in the back of the shell from the outside and tighten its nut on the inside.
  7. 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
  1. 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 microSD opening in the right side, with the Pi 4 inside

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:

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

fan mount

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:

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).

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

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.

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.

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