3D printing casings for DIY smart home devices

A good casing turns a bare ESP32, sensor or circuit board into something that looks like a finished product. Find a design, pick the right filament and avoid the common mistakes.

Updated November 2026

Where to find printable casings

You rarely need to start from scratch: thousands of enclosures for popular boards and sensors are free to download.

WebsiteBest for
PrintablesWell-curated community designs, electronics enclosures and mounts
MakerWorldReady-to-print models, often with printer profiles included
ThingiverseThe largest archive of free printable enclosures
ThangsSearching and discovering 3D models across sources
YeggiA search engine across many 3D model websites
InstructablesComplete projects: electronics, casing design and assembly

Useful searches: ESP32 enclosure LD2410 case ESPHome sensor housing Zigbee sensor case WLED controller enclosure DIN rail ESP32 enclosure

Popular casing types

What each type is for, with an example design. All designs belong to their makers; check the license on the model page before you print or share. The drawings show the type of casing, not the example design.

Ventilated sensor case

For temperature, humidity, CO₂ and air-quality sensors. Slots let air reach the sensor; keep it away from the warm processor.

Find more designs →

Snap-fit electronics box

Opens without tools, compact and quick to assemble.

ExampleESP32-WROOM-32 (USB-C) Box with Lid on Printables

Find more designs →

Wall-mounted display

For dashboards, scene controllers and touchscreens.

ExampleXiaomi Redmi Pad SE Wall Mount Clean / Smart Home on MakerWorld

Find more designs →

LED controller case

For WLED controllers, with screw mounts and venting.

ExampleQuinLED-Dig-Uno enclosure on MakerWorld

Find more designs →

DIN rail enclosure

For low-voltage modules inside a suitable cabinet.

Find more designs →

Presence sensor housing

For compact mmWave sensors. Keep the front clear of metal and thick walls so the radar can see the room.

ExamplemmWave sensor LD2450 + D1 mini ESP32 on Printables

Find more designs →

Outdoor sensor housing

For weather, soil and garden sensors. Needs seals and drainage, not just a printed box.

ExampleWater Resistant 3D Printed Enclosures, by ProgressTH on Hackaday.io

Find more designs →

Which filament should you use?

MaterialBest forOur advice
PLAIndoor prototypes and cool-running sensorsEasiest to print; softens in heat and direct sun
PETGMost everyday smart home casingsBest all-round choice for indoor electronics
ASAOutdoor sensors in the sunBest UV and heat resistance; print with good ventilation
TPUFlexible feet, seals and bumpersUseful second material, not for the whole casing
ABSTough technical enclosuresHarder to print; needs an enclosed printer and ventilation

PETG is a strong default for indoor electronics. For anything in the sun, ASA holds up much better, but it needs more careful printing and a well-ventilated room. See the Prusa material guide for print settings.

Design tips

  1. Measure the actual board. Include USB connectors, antennas, cables and the tallest components. Don’t rely on published board dimensions alone.
  2. Start with 2 mm walls. A good starting point for small enclosures. Make it thicker around screw holes and mounting points.
  3. Leave room to fit. Try 0.2–0.4 mm clearance per side for parts that slide together, then test on your own printer.
  4. Plan the airflow. Electronics that get warm need ventilation, and a temperature sensor should sit away from the processor and voltage regulator.
  5. Keep antennas clear. No metal right around the antenna. Test Wi-Fi, Zigbee or Thread reception with the device inside the closed casing.
  6. Use heat-set inserts. M2 or M3 brass inserts make a casing you open regularly last much longer than screws in plastic.
  7. Print a test piece first. Print just the USB cut-out, the lid edge or the board mount before you print the whole casing.

These are starting points: your printer’s calibration and the filament you use change the final fit.

Outdoors and mains power

A 3D-printed casing is not waterproof by itself. Use gaskets, cable glands and a drainage hole, and don’t claim an IP rating you haven’t tested. For anything connected to mains power, use a certified enclosure and have it installed by a qualified electrician; a printed box is not a safe replacement.

Tools and software

ToolWhat it’s for
TinkercadBeginner-friendly enclosure design in the browser
FreeCADFree parametric design
FusionMore advanced mechanical design
OpenSCADCustomisable casings generated from code
PrusaSlicerPrepare models for printing
OrcaSlicerSlicing, calibration and print settings

On the workbench: digital calipers, a deburring tool, small files, an assortment of M2 and M3 screws, and heat-set inserts with a soldering iron to press them in.

Before you print someone else’s design