For a long time, we’ve been turning on the lights at the beginning the staircase, just to turn them off when we reach another floor.
But instead, we built a simple system to turn them ON automatically when you are going upstairs or downstairs, just by using a couple of IR proximity sensors, a relay and an Arduino Pro Mini, to control the timing.
Featured on Instructables !!
Smart staircase LED lighting with #Arduino and IR sensors pic.twitter.com/ns5zh2r8tQ
— Javi Rengel (@rephus) February 11, 2017
If you want to build your own, just follow our guide.
Shopping list
You can optionally use a power converter (from 12v to 5v) if you want to take advantage of the 12v input to power your Arduino and sensors.
Schema
Arduino code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
Images