PrintWolves
Back
Designenclosureelectronicspcbheat-set insertssnap fit

Designing a 3D Printed Enclosure for Your PCB

By Arun Sai Prakash S P · 15 October 2026 · 4 min read

Contents8 sections

A good enclosure turns a bare circuit board into something you can hand to a customer. 3D printing is ideal for this: no tooling, quick changes between versions, and a box shaped exactly around your board. Here is what to think about before you draw it.

Start from the board, not the box

Measure (or export from your PCB tool) the board outline, the mounting hole positions and the height of the tallest component. Then add:

  • 2 to 3 mm of clearance around the board edge.
  • Room above the tallest part, including connectors and anything that plugs in.
  • Space for cables to bend. Cables need a gentle curve, not a right angle at the connector.

Most PCB tools can export a 3D model of the assembled board. Importing it into your CAD tool is the quickest way to avoid collisions.

Walls

For a small electronics enclosure, 2 mm walls are a good default: stiff enough to handle, quick to print. Go to 2.5 or 3 mm for large boxes or anything that will be dropped or mounted outdoors.

Add small internal ribs on large flat faces instead of making every wall thicker. They stop flexing for much less material.

Mounting the board

Raise the PCB on standoffs (bosses) so solder joints underneath don't touch the floor.

  • Make each boss at least twice the diameter of the screw or insert it holds.
  • Add a fillet where the boss meets the floor. Sharp corners there are where bosses snap off.
  • Use heat-set brass inserts if the board will be removed more than once or twice. Self-tapping screws in plastic wear out.

Closing the lid

MethodBest for
Screws into insertsProducts that must be opened for service; strongest option
Snap-fit clipsQuick, tool-free assembly; low-cost products
Sliding lidSmall boxes, battery covers

For snap-fits, make the clip thicker at its base and tapering towards the tip, add a sloped lead-in so it slides on easily, and print it flat so the bending happens along the layers. A clip printed standing upright snaps along a layer line.

Openings for connectors, buttons and LEDs

  • Add 0.3 to 0.5 mm of clearance around USB, DC jack and terminal block openings. Connector positions on assembled boards vary slightly.
  • For buttons, design a flexible printed button or leave room for a separate cap.
  • LEDs can shine through a thin wall (about 0.6 mm) in a light colour of PLA or PETG, with no hole at all.

Heat and ventilation

Voltage regulators, relays, motor drivers and power supplies get warm.

  • Put vents above the components that heat up, where warm air rises out, with inlets lower down.
  • A grid or hexagon pattern of 2 to 3 mm holes keeps fingers and most debris out while letting air through.
  • Choose the material for the heat: PETG or ABS, not PLA, for anything that runs warm. PLA softens at around 55 to 60 °C.

Outdoors and dust

For outdoor or dusty sites, design a groove for a rubber gasket or O-ring cord around the lid, use ASA or PETG, and bring cables in through cable glands. Printed parts can be made splash-resistant this way. Full waterproofing is harder and needs testing.

Let us help

We print custom enclosures in PETG, ABS and resin, and our engineers can design one around your board from its outline or 3D model. If the electronics are still in development, KaspersLab designs custom boards and firmware.

Continue Reading