Smarthome Multi-Sensor Enclosure

Smarthome Multi-Sensor Enclosure

thingiverse

Looking to DIY an esp8266 powered smarthome device that reads temperature, humidity, luminance, microwave motion, and outputs to a relay and a beeper? You found a great place to start... or finish it. I designed this enclosure for a smart home project that uses a Wemos D1 Mini, BH1750 luminance, relay, AMS1117, and MT3608 break out boards, a stand alone DHT22 sensor and a 12mm peizo buzzer. There are many flavors/sizes of these breakout boards available online (except the bh1750... I only saw one standard board available for those); this thing will fit these specific parts: Wemos D1 Mini: https://www.amazon.com/gp/product/B081PX9YFV/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1 12mm 5V buzzer (requires NPN transistor to drive off the 3v3 output): https://www.amazon.com/gp/product/B01N7NHSY6/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1 5V isolated relay breakout: https://www.amazon.com/gp/product/B07M88JRFY/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1 AMS1117 3v3 breakout: https://www.amazon.com/gp/product/B0778KR6FZ/ref=ppx_yo_dt_b_asin_title_o03_s01?ie=UTF8&psc=1 MT3608 dc-dc breakout: https://www.amazon.com/gp/product/B081JJDD7J/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1 No supports are needed anywhere. The dht, beeper, and bh1750 mount in the lid, the rest mount in the main box. The relay and bh1750 boards are secured with melt down pins. Press the boards onto the pins, heat a bolt or screwdriver and melt the pins down against the board to fix them permanently. The Wemos, AMS1117, and MT3608 boards get pressed into their slots, then a hot bolt/screwdriver is used to melt 2 to 4 spots on the edges of each board to fix them permanently in place. Note that it is always easier to solder your wires first, before permanently mounting them in place. The beeper and dht are simply pressed into place with a friction fit. You can also use the melt down method to secure the dht or beeper better if your mounting location will experience excessive vibrations. The lid is simply snapped on to the base with 2 tabs. I used wire nuts to terminate my ground, 3v3, and 5v busses after soldering leads to all of the devices. You might use solder instead if vibrations are a big concern. I provided strain relief on the wires entering the enclosure using some zipties inside the case (hotglue zipties to the sides if vibrations are big). The wemos, relay, 3v3, and dc-dc converter are powered directly off of a common 5V-2A wallwart. The sensors and beeper are powered off of the 3v3 regulator. The step up DC-DC converter puts out 12Vdc to power the RCWL sensor. This gives good noise rejection for reliable motion sensing (the RCWL thankfully puts out a 3v3 level signal for us regardless of supply voltage). I also uploaded an stl to mount an RCWL-0516 motion sensor a foot away from the main enclosure, to eliminate wifi interference (very reliable this way, vs keeping the sensor in the box). You can find these sensors here: RWCL-0516: https://www.amazon.com/gp/product/B07MTWZDQZ/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&psc=1 Incidentally, I also ran a wire out of the main case to a Dallas temp sensor, for better temp readings than you get from the DHT. This is out of the scope of this thing since it is really just a wire going out one of the holes; just wanted to mention it since it's visibly dangling there near the rcwl in the first pic. I am using esphome software with homeassistant on the wemos, but of course there are other options for software. Basically the thing sends temp, humid, lums, and motion status to the HA server. The server can send beep commands to activate the beeper as needed. The relay NO contacts are used to control a garage door opener (esphome is programmed to turn off 0.5sec after turning the relay on, which triggers the standard door opener to open/close). Of course the relay can be used for anything else you might use a relay to control. Sensing the door position (not very relevant here but figured I'd mention it) is done by a separate zwave door sensor. Side note: I have several devices on my home automation network that are very similar, but don't need the relay. I plan on designing custom enclosures for those as well... stay posted if that sounds interesting to you.

Download Model from thingiverse

With this file you will be able to print Smarthome Multi-Sensor Enclosure with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Smarthome Multi-Sensor Enclosure.