IT Blog

LED stair lighting based on Arduino, Part 2

by on Dec.02, 2010, under Arduino

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.

:,

6 Comments for this entry

  • rock99rock

    Awesome work! Ever thought about selling a kit? If not, what are the make/models of the parts you used? Thanks!

  • Nathan

    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

    • Andrius

      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. :)

  • MacOrt

    Hi. How much it cost your project. I think to buy a controller in IPG Group Electronix shop or make myself.

    • Andrius

      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.

Leave a Reply