Fits D1 Mini ESP8266 (USB-C) — ESP32 & sensor enclosure (3D print model)Generate a 3D-printable two-chamber enclosure for ESP32, ESP32-S3, or D1 Mini boards with a thermally separated vented sensor bay, PIR window, and USB slot.
Features
- Separate vented sensor chamber isolated from MCU heat
- Optional PIR dome window, USB-C cutout, and cable gland hole
- Presets for 30-pin ESP32, ESP32-S3-DevKitC-1, D1 Mini, and custom boards
- A colour to match your filament or your room
- A lid in a colour of its own: a two-colour box from two filaments, with no nozzle change
What people make with it
- Build a Home Assistant ESPHome temperature/humidity node without MCU self-heating drift
- House a D1 Mini or ESP32 with an HC-SR501 PIR motion dome
How to use
- Measure your dev board (clone sizes vary) and adjust length/width.
- Enable the vented sensor bay or PIR dome window.
- Print base and snap lid flat, no supports.
Materials
- PETG: recommended — Good for outdoor or window-mounted sensors (68 C HDT).
- PLA: works — Fine for indoor room sensors.
Preset dimensions
Presets
- Measure your own board — Default generic MCU + sensor enclosure: measure your board and sensor before printing.
- Fits ELEGOO ESP32 DevKit (30-pin) — Clone board sizes vary (~52×28 mm) — measure your board to confirm. Not affiliated with or endorsed by ELEGOO.
- Fits ESP32-S3-DevKitC-1 — Clone board sizes vary (~63×26 mm) — measure your board to confirm. Not affiliated with or endorsed by Espressif.
- Fits D1 Mini ESP8266 (USB-C) — Clone D1 Mini (~35×26 mm) — measure your board to confirm. Includes PIR dome option. Not affiliated with or endorsed by D1 Mini makers.
Frequently asked questions
Why are there two chambers?
WiFi and voltage-regulator heat inside an ESP32 case can skew BME280/DHT22 temperature readings; the baffle keeps the sensor isolated.
How is the lid held on?
By a lip. The lid has a 1.5 mm frame underneath that presses into the opening of the base, with a quarter of a millimetre of play on each side. There are no screws, no snap hooks and no mounting holes. To fix the box to a wall, use double-sided tape on the base.
What holds the board?
Nothing but the floor: there are no standoffs and no screw posts. Lay the board in its chamber with its USB port towards the opening and fix it with a piece of double-sided tape or a drop of hot glue. One thing to watch: the lip of the lid runs along the inside of the walls and passes over the very edge of the board, so a part that sits right at the edge of the board must not be taller than the height you entered.
Which USB port fits through the opening?
The opening is 13 mm wide and 8 mm tall. It is cut in the wall at the short end of the box and starts 2 mm above the floor. It takes USB-C, micro-USB and USB-A, with the board lying flat on the floor.
How do I wire the sensor into the second room?
Through a notch in the wall between the rooms, 8 mm wide and 6 mm tall, just above the floor. The second room has slots in its end wall and in the lid, so the sensor sees the air of the room and less of the heat of the board.
Related generators
3D printing guides
Version 1.3.0 · For AI agents and developers: API v1, schema.json, index.md. Open-source licences