Projects / Ideas / Stair light with two motion sensors

Stair light with two motion sensors

IntermediateLightingIdeaReviewed
In short

How do you build a stair light with two motion sensors?

Motion sensors at the top and bottom of the stairs switch the lights on and then fade them off after you pass. You need Arduino Nano, AM312 mini PIR motion sensor × 2, WS2812B addressable RGB LED strip (1 m, 60 LEDs), Electrolytic Capacitor 100 µF, Resistor 470 Ω and 5 V 2 A USB adapter.

Level
Intermediate
Time
About 180 min
Parts
6
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Combine two sensors in a small state machine.

How to build it

  1. Place a sensor at each end
  2. Detect which end triggers first
  3. Run a light wave in that direction
  4. Hold on for 20 seconds
  5. Fade the lights out

Related projects

Common questions

What parts do I need for the stair light with two motion sensors?

Arduino Nano, AM312 mini PIR motion sensor × 2, WS2812B addressable RGB LED strip (1 m, 60 LEDs), Electrolytic Capacitor 100 µF, Resistor 470 Ω and 5 V 2 A USB adapter.

How long does the stair light with two motion sensors take to build?

About 180 minutes for a intermediate maker.