PIR Motion Sensor - WEMOS D1 Mini + HC-SR501 - Philips Hue

PIR Motion Sensor - WEMOS D1 Mini + HC-SR501 - Philips Hue

thingiverse

After building one of Qrome's fantastic print monitors, I noticed how closely in size the OLED module matched a PIR sensor that happened to be on hand. So instead of rehashing what was already available and creating an entirely new body for the motion sensor, I remixed Qrome's casing. I had to extend the case lengthwise to accommodate a slightly larger Wemos d1 mini board (34.5mm) and also increase the height to fit the HC-SR501 PIR sensor. I drilled screw holes in place of screws needed to secure the PIR, but it fits snugly in place without glue or any need for additional fasteners. I'm using mine as a motion sensor for Philips Hue lights, but it can be repurposed for whatever application suits your needs. For anyone looking to try this: I employed the code from here: https://github.com/LeskoIam/esp8266Huemotion I added an NTP server to the code. I'm using uk.pool.ntp.org, so search for that line and replace it with your local region's equivalent. The device will turn on a light (or group of lights) at full brightness between 5pm and 12am, and at 45% brightness between 12am and 5am. My customized code can be found here: https://pastebin.com/UKCAas3P You'll need to register a user on your hue bridge. Details for doing this are listed here along with basic information about the Hue API: https://developers.meethue.com/develop/get-started-2/ My code uses the user "newdeveloper" as per the Hue getting started guide.

Download Model from thingiverse

With this file you will be able to print PIR Motion Sensor - WEMOS D1 Mini + HC-SR501 - Philips Hue 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 PIR Motion Sensor - WEMOS D1 Mini + HC-SR501 - Philips Hue.