Libove Blog

Personal Blog about anything - mostly programming, cooking and random thoughts

3D Printed Case for ESP8266 + DHT22

After finishing my 3D printer and running the first test print, I wanted to make a case for a temperature and humidity sensor. I use the ESP8266, a small microcontroller with WiFi capabilities, and the DHT22 as the temperature and humidity sensor.

I started by building small test print using Blender, to test if the ESP8266 could be mounted on small pins. Luckily I took this step, as I mismeasured the spacing of the pins, which could be easily fixed at this stage. Additionally the print showed that my printer was stringing a lot, which I fixed by changing the retraction settings.

Test print

The next step was to design the case. For this I simply added 1mm thick walls around the mounting. Using boolean functions I've added holes for the USB port and the reset button. Additionally I've added a lid to the case, which was simply placed on a 0.5mm lip in the case.

First design

The design revealed some issues, which I fixed in the next iteration. The holes in the lid were too small and the printer was having trouble printing them. The USB port cutout had to be moved and increased slightly. Additionally the box was to small to fit the ESP8266 and the DHT22 and I added 1cm to the height of the box. These changes led to the second design.

Second design

I used this design for a day, which revealed another issue. The sensor was reporting too high temperatures, by about 3 degrees Celsius. This was caused by the fact that the DHT22 sensor was too close to the ESP8266. I had to separate the two components by increasing the size of the box and adding a separation wall.

As I had to redesign the case anyway, I also redesigned the lid. I changed the design of the holes from cubes to octagons. The lid is now held in place by protusions which fit into holes in the case. I added additional holes to the case, where the DHT22 sensor would be located.

Third design

The case still has some potential for improvement, but I'm happy with the current design for now.

Assembled case

The files for the case can be found below and can be used under the CC BY-SA 4.0 license.