This is a small case for mounting an ESP8266 D1 Mini Pro on a small Adafruit perma-proto small mint tin size board. The perma-proto is suitable smaller circuits. The external antenna of the D1 Mini Pro is useful if the wifi signal is weak where the controller is needed, e.g., in the basement. The case is high enough to fit the board with pin headers that typically come with the D1. A small hole allows for the onboard LED to be visible, e.g., for status indication. The base has grooves for two magnets (10mm x 6mm x 2mm) that are also easy to remove. Two M3 x 3mm threaded inserts go into the base to screw in M3 x 25mm screws through the lid, also holding the perma-proto and D1 board in place.
I use the case in particular to add a 3 pin angled pin header connector to connect an inductive sensor for reading a gas meter and a water meter. There is also a variant for a D1 Mini in case the external antenna is not required. That case is also a few millimeters thinner.
I have also uploaded the FreeCAD model file to make it easy to remix, in particular, e.g., if you need it to host a different connector.
Minimum is to solder the pin headers as shown. The connector is for three pins, connect to pins as needed obviously.
Screw on with M3 x 22mm screws, make sure the perma-proto is aligned with properly.
I'm using ESPHome for the firmware, but there are many options.
You can find an ESPHome config for the powermeter configuration with a D1 Mini Pro.
I have used PETG, but any other material should work just as well. You can print this without supports, but the lid's screw sinks will be slightly cleaner if you add supports there (use pain-on supports, the provided print file does that).
Printer | MK3s+ |
Filament | Prusament PETG Urban Grey |
Infill | 15% |
Supports | Optional on lid for cleaner screw sinks |
The author marked this model as their own original creation.