Motion sensors can be used for so many things, but having one where and when you need it makes it more than just another toy. With this instructable now you will be able to make one that is simple and inexpensive for wherever you need them and you can easily make it in a weekend as a quick project. I made this one for a small bathroom so when you walk in it lights up so you can see without using the overhead lighting.
Step 1: Parts
Being simple and inexpensive means keeping the component count and programming time down, so for this project you only need:
a simple case or box - I used an old frame, cleaned it up and added a printed top
a PIR motion sensor
Arduino (Nano for cost)
(2) inexpensive 12v LED strip (I got these 4 for $9 on Amazon)
Power cable (12v for the LEDs)
Step 2: Assembly
Assembling is pretty straightforward, so set aside 1-2 hours and you'll be done.
Secure the relay, Arduino and power barrel to the case.
Attach power wires from the power barrel to: relay (center position) and Arduino VIN.
Attach ground wires from the power barrel to: LED1, LED2, Arduino
Attach power, ground and data from Arduino to: both the PIR motion sensor and relay
- Notice you need (2) 5v power feeds, plan accordingly if not using a PCB
Attach power wires from the relay (NO - usually on the left) to: LED1 and LED2
That’s all the wiring, load the program, apply some paint or stain, and secure the loose parts with glue. Your done! To make it look complete, make some frames and attach as covers as needed.
Step 3: Conclusion
Night lights can be placed anywhere but with a motion sensor you can light a path or area just by walking in. Bathrooms, closets or just as a room entry device (maybe a dark foyer) make great places to slide one in and use when needed. With these little inexpensive boxes you can really just put them everywhere!
Hope you enjoyed the quick project. If you liked it, leave me a comment, if you make one post a picture.