lights Ladders
-
Good afternoon! In this topic, I want to share an idea with the community on how to make the automatic lighting stairs in his cottage. The idea is not new, if you want you can find a huge number of ways to implement this project. The most appropriate for me to show a project using LED driver M5450, because it requires only two legs arduino. The remaining 4 will take Ultrasonic Module HC-SR04 Distance Sensor odnin analog port and a light sensor. There is a code that is working to move like a single system to the house.Highlighting.ino lightuino5.1.6.zip
-
-
-
The problem is that education is not enough to adapt this code. Who will be able to offer something I would be very much appreciated !!!
-
If you want to have them turn on and off one after the other (like in the video), you would have to use a dimmable shift register / io expander and feed in PWM for every single light (or stair).
It might be easier to use addressable LEDs. I only know the RGB LEDs, but they are also available in white: https://www.google.de/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=ws2812b+pixel
This way you only need one line of cabling and can put power and data in from one end of the cabling. Of course, they can also be dimmed and everything you can imagine. Libraries for common languages and Arduino are available (for example @ adafruit).
-
-
Maybe you can use the parking sensor example