LED stair lighting based on Arduino, Part 2

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.

Leave a Reply

Your email address will not be published.