Plug-In Motion Sensing Night Light

Plug-In Motion Sensing Night Light

thingiverse

Create your own IoT controlled, motion sensing nightlight. I used a short strip of 5V warm white LEDs and two AM312 PIR motion sensors connected to a sonoff SV. All powered by an Apple USB Plug. You'll need either a USB cable with a short bend radius from the USB connection to the wire, or a 90 degree USB cable, to make sure the USB cable can bend downwards into the body of the device. Set up the sonoff SV so that the wifi circut and relay use the same power suppy (connect jumper to pins near input terminal. I used ESP home to create a sketch with one "output" with the platform "gpio" on pin GPIO12 named "relay", then a "light" with the platform "binary" using the output "relay". This will cause the relay to be discovered as a light in homeassistant instead of a switch. Also, the sketch has two binary sensors (platform = gpio) for pins 05 and 04, to create the motion sensor entities. I used node-red to trigger the light to turn on when motion is detected and my home is in "sleep mode". Print with 100% infill to prevent light from leaking through the walls and showing your infill. Parts List: - Sonoff SV (could also use an H801 LED Controller if you want to use 5V RGBCCT strips, or any other microcontroller with the ability to drive LED's and hook up additional sensors). (https://www.amazon.com/gp/product/B086ZH3HS1/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B086ZH3HS1&linkCode=as2&tag=stephenmetzge-20&linkId=84ab6986cbd05c95e8ee49382d5346e8) - Apple USB Power Adapter (https://www.amazon.com/dp/B0097BEFWC/ref=cm_sw_em_r_mt_dp_5GB2WVCAYHMECGJNRBS3) - 90 Degree Male to Female USB Cable (https://www.amazon.com/gp/product/B086ZH3HS1/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B086ZH3HS1&linkCode=as2&tag=stephenmetzge-20&linkId=84ab6986cbd05c95e8ee49382d5346e8) - LED Strip (https://www.amazon.com/gp/product/B086ZH3HS1/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B086ZH3HS1&linkCode=as2&tag=stephenmetzge-20&linkId=84ab6986cbd05c95e8ee49382d5346e8) - Aluminum LED Channel with Difuser (https://www.amazon.com/Muzata-Aluminum-Mounting-Installations-Diffuser/dp/B01M09PBYX?crid=315B1M018CJIA&dchild=1&keywords=aluminum+led+channel&qid=1617473794&sprefix=aluminum+LED+cha,aps,181&sr=8-3&linkCode=sl1&tag=stephenmetzge-20&linkId=9fffa5773d218225f4c52d18a18d8a67&language=en_US&ref_=as_li_ss_tl) - AM312 PIR Motion Sensors (https://www.amazon.com/gp/product/B086ZH3HS1/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B086ZH3HS1&linkCode=as2&tag=stephenmetzge-20&linkId=84ab6986cbd05c95e8ee49382d5346e8) - Female to Female DuPont Jumpers (https://www.amazon.com/gp/product/B086ZH3HS1/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B086ZH3HS1&linkCode=as2&tag=stephenmetzge-20&linkId=84ab6986cbd05c95e8ee49382d5346e8) - M3 x 8 countersunk screws (https://www.amazon.com/gp/product/B086ZH3HS1/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B086ZH3HS1&linkCode=as2&tag=stephenmetzge-20&linkId=84ab6986cbd05c95e8ee49382d5346e8) - Hot glue gun and sticks (https://www.amazon.com/gp/product/B086ZH3HS1/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B086ZH3HS1&linkCode=as2&tag=stephenmetzge-20&linkId=84ab6986cbd05c95e8ee49382d5346e8) In addition to the STL files, I have also included the fusion360 and .OBJ files for this project. My fusion skills are limited, so I'm sure I've made a mess of things for those who would like to modify. Some of the links in the part list are amazon affiliate links.

Download Model from thingiverse

With this file you will be able to print Plug-In Motion Sensing Night Light 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 Plug-In Motion Sensing Night Light.