In this part I’ve connected the second IR sensor and Light sensor.
As you can see in the video when the light sensor is covered Arduino gives my a sign that it is night time by running Leds from one end and back.
At the moment there is a delay until the lights starts switching off if during the delay any of the IR sensors are crossed the delay starts counting from the beginning.
While testing I’ve noticed that some Leds instead of dimming just switch off. Reading through Arduino forum I’ve found that apparently Arduino can only to analogWrite() on digital pins 3, 5, 4, 9, 10 and 11. This is what I most liekely will have to live with or maybe get myself Arduino with ATmega.
Tags: arduino, automatic stair lights
Awesome work! Ever thought about selling a kit? If not, what are the make/models of the parts you used? Thanks!
There is not much to sell at the momenet as it is not finished and tested properly. The parts that I’m using for testing were listed in Part 1: http://www.kozeniauskas.com/itblog/2010/12/01/led-stair-lighting-based-on-arduino-part-1/ I got all of them on eBay. I hope to set it up on the stairs in a couple weeks and if everything runs as expected then maybe I’ll even make a kit. So just follow this blog and see what happens next. 🙂
Any chance you can put up your finished code, and maybe a walkthrough?
I haven’t used Arduino and the only code I did was some C++ as a kid. But I’m very keen to do this project for my entrance hallway.
Thanks
Hi,
I will share it later. As the project is still not finished the code is in draft state also I’m not programmer myself so the code most likely will not be optimal but as long as it work I will be happy with it. 🙂
Hi. How much it cost your project. I think to buy a controller in IPG Group Electronix shop or make myself.
Well prototyping is usually more expensive then the end product.
I don’t need full Arduino to do what I want to do, I only use it because I have it. I think I could make the controller it self for 10-15 Euro. Then I would need LEDs and sensors.