Star Dart — Raspberry Pi 4 case as a purple dart
195 L × 100 W × 50 H mm (plus feet). Twelve printed parts in five colours, none needs supports.

A purple dart with two cream stripes down its back, a gold flash on one side, a black louvre each side of its nose, and a blue button in an eye-shaped hollow. The Pi lies across the tail, under the tall block. The fan stands just in front of it and blows air from the nose over the board. The blue button is the power button. This case has no camera.
Files
| File | What it is |
|---|---|
3mf/plate_1_purple.3mf |
base, nose, block and the button's plate, in print orientation |
3mf/plate_2_cream.3mf |
the four stripes |
3mf/plate_3_gold.3mf |
the flash |
3mf/plate_4_black.3mf |
the two louvres |
3mf/plate_5_blue.3mf |
the button's cap |
stl/ |
the same twelve parts one by one |
step/dart_assembly.step |
assembled CAD model incl. a reference Pi, fan and button, for Fusion / FreeCAD / Onshape |
dart_case.py |
parametric source. uv run dart_case.py regenerates everything above |
preview/ |
renders: assembled, side, rear, top, exploded, inside, print plates |
Printing

One plate per filament colour.
| Plate | Colour | Parts | Time | Filament |
|---|---|---|---|---|
| 1 | purple | base, nose, block, button plate | 3 h 25 min | 123 g |
| 2 | cream | 4 stripes | 12 min | 5 g |
| 3 | gold | flash | 3 min | 1 g |
| 4 | black | 2 louvres | 9 min | 3 g |
| 5 | blue | cap | 4 min | 1 g |
Times and weights are Bambu Studio's own estimates for the P2S, 0.4 mm nozzle, "0.20mm Standard" with 3 walls, Bambu PLA Basic.
In Bambu Studio, for each plate:
- File → Import → Import 3MF/STL/STEP… and pick the plate file. It will say the file was not made by Bambu Studio and only the geometry is loaded: that is expected. If it asks whether to load it as one object with multiple parts, answer no.
- Process "0.20mm Standard". Under Strength set Wall loops to 3. Leave supports off.
- Choose the filament, Slice plate, Print plate.
The parts are already turned the right way up. Don't auto-orient them, and don't auto-arrange the purple plate: it uses 239 × 234 mm of the 256 mm bed.
| Part | How it lies on the bed |
|---|---|
| base, button plate | as they stand |
| block | upside-down, standing on its flat top |
| nose | upside-down and tipped 13.6°, so that its sloped top lies flat on the bed |
| stripes, flash | face down, pegs up |
| louvres | lying flat, outer face down |
| cap | top down |
The block and the nose have to be upside-down. The block's socket openings (and the microSD card's) and the nose's two louvre openings run down to the lower edge, so as they stand their walls would start as separate pieces with bridges laid across them, which is how the Fossil Rib Cage's first shell failed. Upside-down each starts as one flat sheet, the top, and the facets round it lean out at 45°.
The nose's top slopes, so the nose is tipped until that top is flat. Its walls then stand about 4° off upright, its rear wall leans 13.6°, and its lower edge ends the print as a slope, in steps 0.8 mm long. That edge sits on the base.
The beds for the stripes are cut into the faces that lie on the bed. Each bed's floor is printed as a bridge 9 mm across, 1.2 mm up.
PETG is the safer choice next to a Pi 4, at least for the block.
Hardware
| Qty | Screw | Where |
|---|---|---|
| 3 | M3 × 8 pan head | base → block, from underneath |
| 3 | M3 × 8 pan head | base → nose, from underneath |
| 2 | M3 × 8 pan head | button plate → nose, inside the nose |
| 4 | M2.5 × 6 | Pi → base posts |
| 9 | M2.5 × 6 | block and nose → the four stripes, from inside: 2, 2, 3 and 2 |
| 2 | M2.5 × 6 | nose → flash, from inside |
| 4 | 12 mm stick-on rubber feet | recesses under the base |
| 1 | 12 mm momentary push button, panel mount (M12 thread) | under the blue cap |
| 1 | CanaKit Raspberry Pi Fan (RSP-FAN, 30 × 30 mm) | in the cradle on the base |
That is 8 M3 × 8 and 15 M2.5 × 6. All screws thread straight into the plastic (pilot holes are sized for that). The button, fan and feet are the same ones the other cases use.
Assembly

The "tail" is the end the cables leave from, the "nose" the pointed end.
- Screw the Pi to the four posts in the base: USB and Ethernet over the sill at the side, USB-C and HDMI over the lowered part of the rim at the tail. The microSD card can go in now or once the case is closed (see below).
- Stand each louvre in its groove beside the nose end of the base, its tall end toward the Pi. The two are mirror images. On its own side a louvre's blades slope down toward the outside; if they slope up, it is the other side's.
- Drop the fan into its cradle in front of the Pi, label toward the Pi.
- Press the two long stripes into their beds on the nose and the flash into its bed on the nose's side, pegs into the holes. Turn the nose over and fit 1 M2.5 screw into each peg from inside: 5 for the stripes, 2 for the flash.
- With the nose still upside-down, drop the cap into its hole from inside, top first. Push the button through the plate and tighten its nut on the other side. Lay the plate on the tube round the cap, the button's rim inside the tube, and fit 2 M3 screws. Bring the plate in from the pointed end: lying on its top, the nose's rear wall leans over the place.
- Press the two short stripes into the block's top and fit 4 M2.5 screws from inside.
- Hold the nose over the base. Plug the button onto pins 5 and 6 and the fan's two wires onto pins 4 and 9 (see "Wiring" below).
- Lower the nose straight down over the fan and the louvres, laying the leads in the notch in its rear wall as it comes down.
- Lower the block straight down over the Pi. Its socket openings are slots open at the bottom, so they pass the sockets, and its front edge goes over the rear end of the nose.
- Hold the three together, turn the case over, fit the 6 base screws, and stick on the feet.
The microSD card goes in and out with the case closed, through the opening low in the side opposite the USB sockets (on your left with the tail toward you). The card's end sits 9 mm in from that side, standing 2.4 mm out from under the board, 3 mm above the floor.
- To put a card in, hold it label down, contacts up, slide it in along the floor of the opening and into its slot under the board, and push its end home with a fingertip.
- To take it out, put a fingertip or a fingernail on the end that stands out from under the board and draw it toward you. The slot holds the card by friction: pressing it does not make it spring out.
The opening is 20 mm wide and runs from the floor to 20 mm above the underside of the base. It is drawn to let in a fingertip 15 mm wide and 12 mm thick, lying on the floor or with its pad on the card. Nobody has tried a finger or a card in it yet.
The rest of the inside is reached by taking out the block's 3 screws (two beside the joint, one at a tail corner) and lifting the block off. The nose stays on.
Wiring
With the tail toward you, USB and Ethernet are on your right and the 40-pin header runs along the far edge of the Pi. Pin 1 is at its left-hand end (the microSD end). The far row holds the even pins, the near row the odd ones.
- Button → pins 5 and 6: the third pair from the left, one behind the other. Either wire on either pin.
- Fan red → pin 4 (5 V): far row, second from the left.
- Fan black → pin 9 (ground): near row, fifth from the left.
Count carefully: the first two pins of the far row (pins 2 and 4) carry 5 V. Bridging
5 V to a GPIO pin can damage the Pi. The fan runs whenever the Pi has power.
The Arcade Wedge's README has the dtoverlay=gpio-shutdown line
the button needs and what to expect from it.
Fan and button

Fan. It stands on the floor in a cradle 12 mm tall, against the nose's rear wall, which has an opening 28 mm wide behind it. Two ridges in the cradle pinch its sides, and a fin under the nose's top stops 0.5 mm above it. Nothing clips.
With its label toward the Pi the fan draws air in through the two louvres and through eight slots in the floor under the nose (4.9 cm²), and blows it over the board. The air leaves through seven slots in the tail (2.7 cm²) and round the sockets. A low wall on the base and the nose's rear wall close the way round the fan, apart from the notch for the leads.
Button. The real button is fixed in a plate that screws to a tube under the nose's top. The blue cap moves in that tube and rests on the button's plunger. A 45° shoulder on the cap, under the same on the nose, keeps the cap in. Pressing the cap presses the plunger; the button's own spring lifts both.
Check before printing
- Button height. Measure how far the top of your button's plunger stands above the
underside of its rim, and set
BTN_HEADto that (2.6 mm as drawn). The cap is made to that figure, and it is a 4-minute print. - A plunger up to 1 mm taller than
BTN_HEADonly lifts the cap. - Taller than that, the nose holds the cap down on it and the button stays pressed.
- Shorter, the cap sits lower: it stands 1.6 mm out of the nose as drawn.
- Button length. From the underside of its rim to the floor there is 31 mm, and a hollow in the floor gives the leads 1.4 mm more to turn in. The button drawn is 27 mm long with its terminals.
- Button width. A rim up to 20 mm across and a nut up to 19 mm across its corners.
- No button. Set
SWITCH_HOLE_Dto 0. The plate is then made without a hole and with a stub for the cap to rest on. - Fan: the cradle takes a fan 30 × 30 mm square and up to 7.6 mm thick.
CanaKit publishes 30 × 30 mm but not the thickness; 7 mm is the figure usually
quoted. If yours is thicker, set
FAN_T_MAXto its thickness and re-run the script.
What differs from the concept picture
- It is the picture seen in a mirror. Looking along it from the nose, the picture has the USB sockets, the flash and the button on the right and the stripes on the left. This case has them the other way round. A Pi laid across the tail with its USB sockets on the picture's side would have its power and HDMI sockets facing the nose, inside the case. Mirrored, they are at the tail.
- The body is two shells with a real joint. The picture's line across the back is the joint between block and nose here. The block stands about 3 mm proud of the nose all round, with a chamfered edge.
- The block's top is level. Only the nose slopes. In the picture the top slopes from tail to tip.
- It is taller and blunter: 50 mm at the block and 17 mm at the tip.
- The sides are upright, with a 45° facet above them. The picture's sides lean.
- The eye is two hollows, one each side of a ring round the cap, not one hollow. The ring is what lets the nose print with its top on the bed.
- A louvre on both sides. The picture shows one side. The blades run level.
- The flash is on one side only, as far as the picture shows. Its three bars are joined to it by a strip that lies hidden under the block's front edge.
- The stripes are straight from tail to tip but stop either side of the joint, and they sit further from the edge at the tail.
- One opening for USB and Ethernet, with a sill on the base under the sockets.
- Slots in the tail and in the floor, which the picture does not show, and a fan.
- An opening for the microSD card, 20 mm wide, low in the side opposite the USB sockets and the flash: the side the picture does not show.
- The feet are stick-on rubber ones in recesses, not printed.
What has been checked
- Nothing here has been printed, and no microSD card or finger has been tried in the card's opening.
- Both checks of
../print_check.py(uv run ../print_check.py stl/*.stl), which the Fossil Rib Cage's two failed prints were missing: - Every part starts on the bed as one piece, and no piece starts apart from the rest higher up.
- No piece leans far while it stands alone. The pieces that do stand alone are in the block: the wall between the USB opening and the front edge (3.2 × 16.7 mm, 19 mm tall), the six strips between the tail's slots (2.4 × 7 mm, 13 mm tall) and a post between the back openings (1.9 × 2.4 mm, 8 mm tall). Worked out as beams, the post moves 0.04 mm at the top for each newton pushed sideways, and none of them sinks. The grille bars of the Arcade Wedge's shell, which printed, move 0.47 and sink 0.03; the rib cage's legs that failed sank 0.09. The microSD card's opening adds one more: the block's side wall between the opening and its front edge (3.3 × 36 mm, 14 mm tall, with a screw block on it). It moves 0.003 mm, too stiff for the check to list it.
- Undersides, by scanning the print-orientation STL files for faces that lean more than 45°. An earlier drawing failed this: the lower edges of the flash's bed leaned 48°. They are steeper now. What it still finds are bridges and the tops of holes:
- block: the floors of the two stripe beds (9 mm bridges, 64 mm long) and the ends of the tail's slots (3 mm).
- nose: the floors of the two stripe beds (9 mm bridges, up to 118 mm long), the floors of the eye's two hollows (41 mm² together, each a bridge from side to side), and the tops of the two holes for the flash's pegs, which lie sideways (4.9 mm).
- base: the roofs of the feet's recesses (12 mm) and the screw heads' (7 mm), as the other cases' bases have.
- stripes, flash, louvres, cap, plate: nothing.
- The microSD card's opening adds nothing: in the block it is open at the lower edge and in the base at the top, both up as they print.
- In CAD: no part overlaps another, or the reference Pi, a fan 7 or 7.6 mm thick, the button, any screw head, or jumper plugs standing on header pins 4, 5, 6 and 9. The one exception is meant: the cradle's two ridges press 0.05 mm into the fan's sides.
- The microSD card, in CAD. Its end is 9 mm inside the block's side, 3.1 mm above the floor. Nothing touches:
- the card's way in, 14 mm wide, from 1 mm under the card up to the board, from outside the case to the far end of its slot;
- a fingertip drawn as a block 15 mm wide and 12 mm thick, lying on the floor and reaching to 1 mm short of the card's end, or with its pad on the card's top face and reaching to the board's edge.
The opening takes away only the block's side wall, the base's side wall and the lip
on it (the new parts subtracted from the old). It is 11 mm from the block's tail
screw, 19 mm from its side screw and 11 mm from the nearest Pi post. The card's
place is from the Pi's drawing, good to about a millimetre, and the fingertip is a
block, not a finger.
- These moves were stepped through with nothing touching:
- the block with its stripes up off the base, the Pi, the plugs and the nose's end;
- the nose with button, plate, stripes and flash up off the base, over the fan and
both louvres;
- the thickest fan up out of its cradle, apart from the ridges;
- a louvre up out of its groove;
- the plate with the button on it straight down out of the nose, as the nose
stands. Along the tube's own line, which leans, it is free for 7 mm and then its
end meets the nose's rear wall;
- each stripe and the flash straight out of its bed.
- The cap: pressed 1.5 mm it touches nothing but the plunger. Lifted 0.9 mm it is
free, and lifted 1.2 mm it is stopped by the nose, which is what keeps it in.
- Gaps as drawn: 0.3 mm between the block's front edge and the nose, 0.2 mm between a
louvre and the nose's wall, 0.3 mm round the cap, 6 mm between the drawn button's
tail and the floor.
- In the slicer: the five plates slice in Bambu Studio with the P2S profile, no
supports, no warnings. Both of the Rib Cage's failed plates passed this too, so it
says little. The purple plate was sliced again with the microSD card's opening:
no warnings, 1 g lighter.
- What to look at on the first print:
- The stripe beds' floors are bridges and will sag a little, so the stripes may
stand a tenth or two proud. As drawn they are flush.
- The ring round the cap is 1.2 mm wide where it lies on the bed.
- The nose's lower edge, printed as a slope.
- The louvres' blades are 0.9 mm thick and 52 mm long, held at both ends and by one
bar in the middle.
- Whether a fingertip reaches the microSD card's end through its opening and draws
the card out. If not, SD_TOP makes the opening taller; tweezers on the card's
end need no change.
- What depends on the printer and has no check here: the stripes and the flash in
their beds (0.15 mm a side), the cap in its hole, the louvres in their grooves, the
block's edge over the nose (SEAM), and the screws biting. The weakest is the M2.5
into each peg, with 2.7 mm of thread.
- What depends on parts I have not measured: the button's plunger height and length
(see "Check before printing"), where the fan's lead leaves it, and whether the
ridges hold the fan still.
- What I have not worked out: how much air gets through. Each louvre's opening is
50 mm long and 14.5 mm tall at one end, 3.9 mm at the other, and the slanted blades
leave about a third of that free.
Parameters worth knowing (top of dart_case.py)
| Name | Default | Effect |
|---|---|---|
HL, WS, H_B |
50.2 / 34.5 / 50 | the block: half-width, how far its tail face is behind the drawing's origin, its height |
FAC_B, FAC_TAIL, CORNER |
10 / 6 / 3 | the facets along the block's sides and tail, and its cut-off tail corners |
Y_K, OVER, SEAM |
36 / 3 / 0.3 | where the nose begins, how far the block's edge reaches over it, and the gap between them |
Y_T, W_T, H_T |
160 / 9 / 17 | the tip: where it is, its half-width, its height |
P_T, F_T |
4.5 / 4.5 | half-width of the flat top at the tip, and the facet across the tip |
Z_RIM, Z_DIP |
6 / 4.2 | height of the base, and of its rim under the back sockets. The Pi's board is PI_LIFT (1 mm) above Z_RIM |
FIT |
0.25 | clearance between printed parts; raise it if your printer runs tight |
SLOTS_Y, VENT_X, VENT_Z |
see file | the slots in the floor under the nose, and in the tail |
SD_W, SD_TOP, SD_R |
20 / 20 / 4 | the microSD card's opening in the side: its width (0 for none), its top above the underside of the base, and the radius of its two upper corners. It runs down to the floor, centred on the card |
FAN_T_MAX, FAN_X, FAN_GRIP |
7.6 / -8 / 0.25 | thickest fan the cradle takes, where its middle is, how hard the ridges pinch |
SWITCH_HOLE_D, BTN_X, BTN_Y |
12.4 / 20.5 / 59 | the button's hole in its plate (0 for none) and where the button is |
BTN_HEAD, BTN_SEAT |
2.6 / 7.4 | top of the plunger above the underside of the button's rim, and how far under the nose's top that rim sits |
CAP_D, CAP_UP, CAP_RISE |
17.2 / 1.6 / 1.0 | the cap: diameter, how far it stands out, how far it can lift |
EYE_L, EYE_W, EYE_DEPTH, BEZEL |
17 / 9.6 / 1.4 / 1.2 | the eye: half-length, half-width, depth, and the ring round the cap |
STRIPE_W, STRIPE_GAP, STRIPE_TAIL_X, STRIPE_TIP_X |
9 / 6 / -22 / 0 | the stripes: width, the purple between them, where the outer one's middle is at the tail and at the tip |
POCKET, INLAY_FIT |
1.2 / 0.15 | depth of the stripes' and the flash's beds (and their thickness), and the gap round each |
BLOCK_STEMS_Y, NOSE_STEMS_Y, GOLD_STEMS |
see file | where the pegs and their screws are |
GOLD_SWOOSH, GOLD_BARS, GOLD_SHEAR |
see file | the flash's outline on the nose's wall, its three bars, and how steeply the lower edges of its bed slope |
LV_S0, LV_S1, WIN_DROP |
68 / 118 / 3.4 | where each louvre's opening starts and ends along the wall, and the wall left above it |
BLADE, BLADE_PITCH |
1.3 / 2.8 | height of a blade's edge, and of a blade and gap together |
M3_PILOT, M25_PILOT |
2.8 / 2.15 | self-tapping hole sizes |
BTN_Y cannot go much nearer the tail: the plate's end is 1.7 mm from the nose's rear
wall. H_B sets how much room the button has under it. Run
uv run ../print_check.py stl/*.stl after any change.
Redrawing the previews
uv run dart_case.py --assembled /tmp/dart_assembled
/Applications/Blender.app/Contents/MacOS/Blender -b -P render_previews.py -- \
/tmp/dart_assembled stl preview
Where the dimensions come from
- Raspberry Pi 4 Model B: official mechanical drawing (https://datasheets.raspberrypi.com/rpi4/raspberry-pi-4-mechanical-drawing.pdf). The display and camera connectors are drawn 5.5 mm tall, the usual figure for that kind of connector, not one taken from the drawing.
- Fan: CanaKit Raspberry Pi Fan product page (https://www.canakit.com/raspberry-pi-fan.html): 30 × 30 mm. The thickness is the usual value for 30 mm fans, not a CanaKit figure.
- Push button: a 15 mm rim 2 mm thick, a plunger 0.6 mm above it, a 14 mm nut and 27 mm behind the rim are the usual values for 12 mm panel buttons, not a measurement of yours.
- Jumper plugs are drawn 14 mm tall on a header 2.5 mm above the board.