Fossil Rib Cage — Raspberry Pi 4 case inside a skeleton
126 L × 80 W × 74 H mm (plus feet). Four printed parts, none needs supports.

A purple body with a bone cage over it: a skull at one end, a spine along the top and six ribs down each side, tied by a bar half-way up. The orange knob on the spine is the power button. The fan sits behind the skull and breathes through its eyes and nose. The microSD card goes in and out through a slot in the chin, with tweezers. This case has no camera.
Files
| File | What it is |
|---|---|
3mf/plate_1_purple.3mf |
base and shell, in print orientation |
3mf/plate_2_bone.3mf |
the cage: skull, spine, ribs, rails and the two bars across the ribs, in one piece |
3mf/plate_3_orange.3mf |
the cap of the power button |
stl/ |
the same four parts one by one |
step/ribcage_assembly.step |
assembled CAD model incl. a reference Pi, fan and button, for Fusion / FreeCAD / Onshape |
ribcage_case.py |
parametric source. uv run ribcage_case.py regenerates everything above |
preview/ |
renders: assembled, front, rear, top, exploded, inside, print plates |
Printing
One plate per filament colour.
| Plate | Colour | Parts | Time | Filament |
|---|---|---|---|---|
| 1 | purple | base, shell | 2 h 22 min | 90 g |
| 2 | bone | cage | 2 h 15 min | 58 g |
| 3 | orange | button cap | 5 min | 2 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. Keep the layer height at 0.2 mm for the cage: two of its holes are drawn for it (see "What has been checked").
- Choose the filament, Slice plate, Print plate.
The parts are already turned the right way up. Don't auto-orient them:
| Part | How it lies on the bed |
|---|---|
| base, cage | as they stand |
| shell | upside-down, standing on the flat strip of its roof |
| button cap | face down, peg pointing up |
The shell has to be upside-down. Its socket openings run down to its lower edge, so as
it stands its wall starts as seven separate pieces, some of them 2 mm wide, and the
first bridges are laid across those. That print failed (see "What has been checked").
Upside-down it starts as one strip, the openings are open at the top, and nothing
bridges over them. To try it on its own before the whole purple plate, import
stl/shell.stl instead: 1 h 29 min, 56 g.
The cage is the plate to watch. Each rib is two legs that lean in over the body until they meet at the roof, 43 mm up. The first version left them free all the way and failed before they met. A bar now joins the legs on each side 20 mm up (see "What has been checked").
PETG is the safer choice next to a Pi 4, at least for the two purple parts.
Hardware
| Qty | Screw | Where |
|---|---|---|
| 4 | M3 × 8 pan head | base → shell, from underneath |
| 2 | M3 × 8 pan head | shell → cage, up through the roof from inside the shell |
| 4 | M2.5 × 6 | Pi → base posts |
| 4 | 12 mm stick-on rubber feet | recesses under the base |
| 1 | 12 mm momentary push button, panel mount (M12 thread) | in the roof, under the orange cap |
| 1 | CanaKit Raspberry Pi Fan (RSP-FAN, 30 × 30 mm) | behind the skull |
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

- Push the power button down through the hole in the shell's roof and tighten its nut inside.
- Turn the cage upside-down and drop the orange cap into its socket, symbol first.
- Turn the shell upside-down too and lower it into the cage. Fit 2 screws through the roof into the spine. The cap is now caught between the cage and the button.
- With the shell still upside-down, slide the fan between the two rails on the front wall (the skull end), label toward the wall, until it meets the stops. Two ridges pinch it, so it should stay there when you turn the shell over.
- Screw the Pi to the four posts in the base: microSD end toward the chin, USB and Ethernet toward the square end.
- Turn the shell upright and hold it over the base. Plug the button onto header pins 5 and 6 and the fan's two wires onto pins 4 and 9 (see "Wiring" below).
- Lower the shell straight down inside the base's rim. Its socket openings are slots open at the bottom, so it passes the sockets. The bar on the two towers in the base comes up under the fan.
- Turn the case over, fit the 4 base screws, and stick on the feet.
The microSD card can go in before step 5 or once the case is closed (below).
microSD card
The card goes in and out through a slot in the chin, under the teeth, with the case closed. The slot is 14 mm wide and 8 mm tall, a little off the middle toward the HDMI side, because the card is. Its end sits 30 mm in from the front of the chin, too deep for a finger, so it takes a tool. A torch helps: the socket is in shadow at the far end.
- To take it out, shut the Pi down and unplug it. Reach in with tweezers, pinch the card's end by its two edges (it stands about 2.4 mm out of the socket), and pull it straight out. The Pi 4's socket holds the card by friction, with no click.
- To put it in, lay it on the floor of the slot, contacts first and label down, and push it along with a flat stick or the closed tips of the tweezers until it stops in the socket. The floor runs level with the socket nearly all the way in, so the card meets the socket's mouth at its own height.
- With the 4 base screws out and the shell lifted off the base, it can still be reached by hand, as before the slot.
Wiring
With the USB-C and HDMI side toward you, the 40-pin header runs along the far edge of the Pi and pin 1 is at its left-hand end (the skull end). The row nearer the far wall holds the even pins, the row nearer the middle of the board the odd ones.
- Button → pins 5 and 6: the third pair from the left, one behind the other. Polarity does not matter.
- 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 Arcade Wedge's README has
the dtoverlay=gpio-shutdown line the button needs and what to expect from it.
Power button
The push button is fixed in the purple roof. The orange cap floats above it in a six-sided socket in the spine and rests on the button's plunger by a 3 mm peg. Its foot is wider than the socket's bore, so it cannot come out of the top.
Fan

The fan stands upright against the shell's front wall, behind six slots (tied across twice) that the skull's eyes and nose look onto. Nothing clips: two L-shaped rails hold it sideways and front to back, two wedges on the wall stop it above, and a thin bar across two towers in the base pushes it up against them by about half a millimetre. The bar is printed flat, so it bends along its layers. That is the strong direction, unlike the upright clip that broke on the Arcade Wedge.
With its label toward the wall the fan blows out through the skull, and air comes in through the ten slots in the roof between the ribs. Turned round, it draws air in through the skull instead. The microSD card's slot is another way in for air, just under the fan, so some of what the fan moves comes in there rather than across the Pi. How much has not been measured.
Check before printing the shell
- Fan: the rails take 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. - Button: the cap is drawn for a button whose rim stands 2.5 mm above the panel
with the plunger about level with the rim. It allows for a plunger from 1 mm below
the rim to 1.5 mm above it. If yours differs, set
BTN_HEAD_Hto the rim's height and re-run. Onlycagechanges.
What differs from the concept picture
- USB and Ethernet are on the end, not the side. A Pi 4 has USB-C, two HDMI and audio along one edge, and Ethernet with the four USB sockets on the next. So the side has an audio jack after the two HDMI, and the end away from the skull has the rest.
- The purple body is not round. Its roof slopes at 45° up to a flat ridge under the spine, which is what lets it print without supports. The ribs are round on the outside and follow that roof underneath, so they are deeper toward the spine.
- The teeth sit on the chin instead of hanging over it. The cage prints standing on its lower edge, so the teeth, the rails and the feet of the ribs all end at one height. The rails run level for the same reason and do not sweep down to the jaw. The gaps between the teeth are grooves 1.8 mm deep, not cut right through, so the teeth start on the bed as one piece with the skull.
- A bar runs along each side, half-way up the ribs. In the picture the ribs run free from the rail to the spine. Printed standing, each is then two legs that lean in for 37 mm before they meet, and that print failed. The bar joins the legs to each other and to the skull, just under the slots in the roof. The ribs are also 8.4 mm wide, not the 7 first drawn, stand 1.25 mm out past the rails, and widen into the rails and the bar with 45° corners.
- The skull is plainer: a smooth egg with round eyes and a nose, no brow or cheekbones. It stands 1.5 mm above the ribs behind it and 0.25 mm out past them.
- The vertebrae are blocks, and the button sits in a six-sided socket.
- The base has a rim standing 2.6 mm out from the body, level with the bottom of the HDMI openings. The shell is lowered over a Pi that is already screwed down, so its openings are open at the bottom, and the rim closes them.
- Stick-on rubber feet, not printed ones.
- A slot in the chin, 14 × 8 mm under the teeth, for the microSD card. It is 3.5 mm off the middle of the face, toward the HDMI side, because the card is.
What has been checked
- Two prints failed, one of each plate's first version. The slicer warned of neither.
- The purple plate had the shell standing as it is assembled. It came apart 9 mm up, at the first bridges over the socket openings, and a 30 mm piece of wall came off the bed. The shell now prints upside-down and the teeth are grooves (both above).
- The bone plate had every rib as two legs with nothing between the rail and the roof: 3.7 × 7 mm at the foot, alone for 37 mm, and 22 mm out of plumb at the top. It turned to spaghetti with the legs still apart, about 30 to 35 mm up by the printer's camera. The skull beside them was sound to that height. The legs are now tied by the bars and thicker at the foot (above).
- Not recorded here as printed: the upside-down shell, the tied cage, the cap, and anything with the microSD slot.
- The next two checks are
../print_check.py:uv run ../print_check.py stl/*.stl. Run on the two parts that failed, it marks both. - Layer by layer: every part starts on the bed as one piece, and no piece starts apart from the rest higher up. This is the check the first shell was missing.
- Thin pieces that stand alone for a while, also layer by layer. The bars between the fan's slots are 1.8 mm wide and were 27 mm tall: two cross-ties now keep them to 8 mm. The tallest left are the two strips between the USB and Ethernet openings, 20 mm tall, 3 mm wide and thickened to 5.7 mm deep.
- Pieces that lean while they stand alone, whatever their size. This is the check the first cage was missing: the one above stopped following a leg once it grew past 40 mm², which the ribs did 17 mm above the rails. A leaning leg sinks when the nozzle presses on its top, so the next layer is laid on something that has moved. Worked out as a beam, the first cage's legs sank 0.09 mm for each newton, three times as much as the grille bars of the Arcade Wedge's shell, which printed. Now the legs below the bar are 16 mm tall, 5 × 8.4 mm at the foot, and lean 4 mm. The ones above it are 18 to 20 mm tall and lean 16 to 18 mm. Both come out under 0.01 mm, taking the bar as fixed. The upper legs still lean at 45° all the way: the roof under them slopes at 45°.
- In CAD: no printed part overlaps another, or the reference Pi, fan or button. The assembly moves (cage onto shell, cap into socket, fan into rails, shell onto base) were stepped through. Nothing touches except the two things meant to: the bar that pushes the fan up, and the ridges that pinch it.
- The microSD slot is drawn, not printed, and no card or tweezers have been tried in it. In CAD: a path 14 mm wide is clear of every part from outside the chin to the card's end, from the floor up 6 mm (8 mm in the middle); the shell still lowers onto the base and the Pi without touching either; the fan spring's towers are whole, and the one beside the slot is now joined to its floor at the foot. Layer by layer, the base and the shell still start on the bed as one piece each, and nothing is marked.
- The slot's floor is level with the card, not 1 mm below it as a clear path usually
is. A card pushed along a lower floor would meet the socket under its mouth, so the
floor is at the underside of the socket as the Pi is drawn here (
SD_FLOOR). That height is not a measurement. Whether a card slides home without catching, and whether ordinary tweezers reach in and open wide enough, is for the first print to show. - In the slicer: the plates slice in Bambu Studio with the P2S profile, no supports, no warnings. Both versions that failed passed this too, so it says little. Bambu Studio takes the curved front edge of a flat bridge over the card's slot for a "floating cantilever", and warns once it is long enough: a flat-topped slot 20 mm wide was warned about, one 14 mm wide only just not. The 45° corners along the top keep it well short of that.
- Bridges: the shell's longest is 3 mm, across its slots. The base has the bar under the fan (21 mm) and the roof of the card's slot (10 mm, between 45° corners). The cage has the tops of its ribs over the roof (18 mm) and the middle of each span of its bars (3 mm).
- The cage's two screw holes open in the bridged tops of two ribs, which a slicer
cannot bridge round. Each starts as a slot on its first layer and a square on its
second, so the bridge prints across it. That is drawn for 0.2 mm layers (
LAYER). - The eye sockets are round tunnels 18 mm wide. The inside of each one's top prints as an overhang and will be a little rough. It faces down, so it is not seen.
- What to watch on the next print of the shell: its roof slopes lean out at 45° from a strip 18 mm wide, and their outer faces are the ones that face the bed. It ends as posts between the socket openings, the thinnest 1.9 mm wide and 9 mm tall, between the two HDMI. If the strip lifts, add a brim.
- What to watch on the next print of the cage: the upper halves of the ribs, from 25 mm up. Twelve legs lean in at 45° for 18 mm, then an 18 mm bridge is laid across each pair of tips. A leg whose top turns rough or collects blobs is the first sign.
- What else depends on the printer: the shell inside the base's rim and the cage over
the shell (
FIT), the fan's pinch (FAN_GRIP) and its spring bar (SPRING_PRESS), the cap's travel on a real button, and how cleanly the cage's 45° undersides and bridges come out.
Parameters worth knowing (top of ribcage_case.py)
| Name | Default | Effect |
|---|---|---|
WS |
34.5 | half-width of the body. The Pi sits against one side; the other has the room for the screw blocks |
Z_SH, R_SH, TS |
27 / 20 / 9 | the body's section: upright to here, the shoulder's radius, half-width of the flat ridge |
ZC0, ZR1 |
18 / 24 | underside of the cage / top of its rails |
RAIL_T, SPINE_H |
4 / 6.5 | how far the ribs stand out at the rails / above the roof |
RIB_X, RIB_W |
six / 8.4 | where the ribs are, and their width. The button and the cage screws are placed by entries of RIB_X |
RIB_PROUD |
1.25 | how far the ribs stand out past the rails. It is what makes their feet 5 mm thick |
TIE_Z0, TIE_Z1 |
38 / 43.5 | underside and top of the bar across the ribs. The slots in the roof start at 44 |
SKULL_A, SKULL_GROW |
22 / 1.5 | how far the skull sticks out / how much bigger it is than the ribs |
TOOTH_CUT |
1.8 | depth of the grooves between the teeth. Keep it under SKULL_WALL (3) |
EYE_Y, EYE_Z, EYE_RY, EYE_RZ, EYE_TILT |
13.5 / 40 / 9 / 8 / 12 | the eye sockets |
FIT |
0.25 | clearance between printed parts; raise it if your printer runs tight |
FAN_T_MAX |
7.6 | thickest fan the rails take |
FAN_GRIP |
0.25 | height of the two ridges that pinch the fan (less = looser) |
SPRING_PRESS |
0.5 | how far the fan bends the bar under it |
BTN_HEAD_H |
2.5 | height of the push button's rim above the roof |
CAP_PIN, CAP_PLAY |
3 / 1.5 | peg under the cap / how far the cap can rise before the socket stops it |
SWITCH_HOLE_D |
12.4 | hole for the push button |
M3_PILOT, PI_SCREW_PILOT |
2.8 / 2.15 | self-tapping hole sizes |
SD_SLOT_W, SD_SLOT_H |
14 / 8 | the slot the microSD card goes in by, through the chin and the shell's front wall. SD_SLOT_W = 0 leaves it out |
SD_SLOT_CH |
2 | the 45° corners along the slot's top. With a flat top much over 14 mm wide, Bambu Studio warns of a floating cantilever |
SD_FLOOR |
1.5 | how far below the Pi's board the slot's floor is. If a card stubs on the socket's lower edge, make it smaller; on the board's edge, larger |
SD_SHELF_GAP |
3 | the floor stops this far short of the card's end and slopes down from there, which leaves room under the end for tweezers |
Redrawing the previews
uv run ribcage_case.py --assembled /tmp/ribcage_assembled
/Applications/Blender.app/Contents/MacOS/Blender -b -P render_previews.py -- \
/tmp/ribcage_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).
- 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: the 2.5 mm rim height is the usual value for 12 mm panel buttons, not a measurement of yours.