Intro: Motion Activated LED Strip
There are stairs up to where I live and during the winter and at night they can be treacherous. I wanted an easy method to illuminate the stairs — imagine your hands are full of groceries — while also not having to go back and turn them off.
Basically I ran an LED strip down the railing of my stairs. At one end, you walk past an Obstacle Avoidance Sensor (you need to be within <5 inches) which an Arduino Nano listens for and triggers a Relay to turn on the LEDs for 30 seconds. All housed within a coffee container for "decent" weatherproofing. That's it! More details below...
Step 1: Supplies
- Collision avoidance sensor (Got in a kit) (Used because I already had one compared to buying motion sensors)
- Relay (Got in a kit)
- Arduino Nano
- LED Strip (Charger included - Why I chose this one)
- Soldering Station
Step 2: Wiring Diagram
- Arduino and Relay are on PCB
- Collision Detector is connected via wires
Step 3: Plan Component Placement and Begin Wiring
- I placed the Arduino at one end; and with a little space marked where I wanted the relay
- With some putty to hold things in place, I soldered the wires
Step 4: More Wiring and Soldering
- I added the wires that were going to connect to the Collision Detector
- Soldered in the relay
- I made the connections to the Arduino by tracing solder, not too pretty but seems to work
- Notice how the 5V pin is connected to both
Step 5: Finishing Up
This image shows melted holes in the coffee can.
Also notice that the DC power cable to the LEDs has been spliced. Ground is wired together, and positive is split. I soldered the exposed wires to add slight durability. These will be screwed into the relay.
And finally the code: