DFAM Academy

DfAM guide

Enclosure design: printed housings that fit, seal and serve

Design 3D-printed electronics enclosures: walls, snap-fit vs screw bosses and inserts, PCB standoffs, lids, vents, cable ports and button fit..

An electronics enclosure is the most common real-world 3D-printing project, and it exercises nearly every DFAM skill at once: walls that are stiff but printable, a lid that closes cleanly, bosses that hold fasteners, standoffs that locate a PCB, vents that move air, ports that pass cables, and openings sized so buttons and connectors actually work. Get the interfaces right and the housing snaps shut around the electronics with no filing; get them wrong and every unit becomes a fitting exercise. This guide walks the decisions in the order you meet them.

Wall thickness and stiffness

Start with walls thick enough to be rigid and printable, then add geometry rather than mass for stiffness. For FDM, 2–3 mm walls (four or more perimeters) give a solid, handle-able housing; SLA and MJF hold up at 1.5–2 mm. Resist the urge to simply thicken a flexy wall – ribs, a curved or boxed section, and a proper lip at the lid joint stiffen far more per gram, and thick solid walls warp as they cool. Keep wall thickness reasonably uniform so cooling and shrink stay even.

FeatureFDM starting pointSLA / MJFNotes
Main wall2–3 mm1.5–2 mm4+ perimeters on FDM; add ribs, not mass, for stiffness
Screw boss OD / wall2× insert dia; ~2 mm wall1.5 mm wallSize the bore for a heat-set insert, not a screw
PCB standoff height3–5 mm3–5 mmClear solder tails and bottom components
Lid lip / tongue engagement1.5–3 mm deep1–2 mmOverlap to hide the seam and locate the lid
Vent slot width≥ 1–1.5 mm≥ 0.8 mmBelow this, slots close up or need supports
Enclosure starting dimensions. Tune per material and printer, and confirm fits with a coupon before printing the full housing.

Closing it up: snap-fits vs screw bosses

How the lid attaches is the enclosure's defining choice. Snap-fits give a tool-free, low-cost close and suit consumer housings opened rarely; design the cantilever with the load across layers in mind and follow the geometry in our snap-fit design guide so the hook does not shear along a layer line. Screw bosses give a serviceable, high-clamp joint that reopens indefinitely – but never thread a screw straight into printed plastic, which strips after a few cycles. Use heat-set threaded inserts: size the boss bore for the insert's melt diameter, give the boss a wall of roughly the insert diameter around it, and add a lead-in chamfer so the insert starts straight.

Design rule

Never drive machine screws directly into a printed boss for any joint meant to reopen. Heat-set brass inserts turn a boss into a reusable metal thread; size the pilot bore to the insert spec, not to the screw.

Mounting the PCB: standoffs and location

Support the board on standoffs tall enough to clear the tallest bottom-side component and any protruding solder tails – typically 3–5 mm. Locate the board precisely with at least two features so it cannot rotate: two locating pins into mounting holes, or a pin plus a corner pocket. Add clearance around the board edge for print tolerance, and keep board screws or clips away from tall components. Where a connector must align with a wall opening, locate the board off the same datum as that opening so their tolerances do not stack against each other.

Lids, lips, and light sealing

A butt joint between lid and base shows every gap and lets light and dust through. Use an overlapping lip or a tongue-and-groove edge: it hides the seam, locates the lid, and adds stiffness. For a light dust or splash resistance, a shiplap or labyrinth lip is enough; for real ingress protection you need a gasket groove and a compliant seal, which is a bigger commitment. Add lead-in chamfers on the mating lip so the lid drops in without catching.

Ventilation, ports, and strain relief

If the electronics dissipate heat, vent them – but design vents to print. Vertical slots print cleaner than large horizontal holes on the top face; keep slot widths at or above roughly 1 mm on FDM so they do not fuse closed, and keep them small enough to meet any finger-probe safety requirement. Cable ports need a clean opening plus strain relief so a tug on the cable is not carried by the solder joint: a captured grommet, a printed clamp, or a service loop anchored inside the housing. Chamfer cable-port edges so they do not abrade insulation, and key connector cut-outs so a plug cannot seat upside-down.

Tip

For buttons, sliders and connector cut-outs, give the moving or mating part 0.3–0.5 mm of clearance on FDM (less on SLA/MJF) – enough to move freely without rattling. Set these numbers from a printed test, and see tolerances by process for what each machine holds.

Orientation for cosmetics and fit

Orientation decides which faces are smooth and where the seam and supports land. Put the show face down on the plate or against a clean side, keep supports off cosmetic and sealing surfaces, and print the lid so its lip and any snap hooks are strong in the load direction rather than weak across a layer line. A housing is where surface finish, tolerance, and strength trade against each other most visibly – decide the priority face first, then orient around it. Where a single housing forces bad choices, consider splitting it or, better, consolidating brackets and clips into the walls so there are fewer parts to fit at all – see part consolidation for AM.

Enclosures pull together walls, fits, inserts and orientation – the exact toolkit the Foundations course builds. Start free, then step up when you are ready.

Start Foundations free Compare plans

Enclosure design checklist

  1. Set wall thickness for rigidity, then add ribs and a lid lip instead of more mass.
  2. Choose snap-fit or screw bosses; if bosses, size them for heat-set inserts.
  3. Stand the PCB on tall-enough standoffs and locate it with two features off the port datum.
  4. Overlap the lid with a lip or tongue-and-groove; chamfer the mating edges.
  5. Design vents as printable slots; add strain relief and keyed, chamfered cable ports.
  6. Set button and connector clearances from a printed test coupon.
  7. Orient for the priority cosmetic face, keeping supports off show and sealing surfaces.

Keep reading

More DfAM guides

Go deeper

Guides show the rules. Courses build the skill.

Self-paced, process-specific courses with checkpoints — start free, no credit card.

Start learning free