Fossil Rib Cage

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

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.

assembled

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:

  1. 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.
  2. 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").
  3. 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

exploded

  1. Push the power button down through the hole in the shell's roof and tighten its nut inside.
  2. Turn the cage upside-down and drop the orange cap into its socket, symbol first.
  3. 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.
  4. 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.
  5. Screw the Pi to the four posts in the base: microSD end toward the chin, USB and Ethernet toward the square end.
  6. 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).
  7. 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.
  8. 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.

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.

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

inside

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

What differs from the concept picture

What has been checked

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