{"id":486,"date":"2010-12-02T23:15:27","date_gmt":"2010-12-02T23:15:27","guid":{"rendered":"http:\/\/www.kozeniauskas.com\/itblog\/?p=486"},"modified":"2011-01-25T20:37:28","modified_gmt":"2011-01-25T20:37:28","slug":"led-stair-lighting-based-on-arduino-part-2","status":"publish","type":"post","link":"http:\/\/www.kozeniauskas.com\/itblog\/2010\/12\/02\/led-stair-lighting-based-on-arduino-part-2\/","title":{"rendered":"LED stair lighting based on Arduino, Part 2"},"content":{"rendered":"<p>In this part I&#8217;ve connected the second IR sensor and Light sensor.<br \/>\nAs 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.<br \/>\nAt the moment there is a delay until the lights\u00a0 starts switching off if during the delay any of the IR sensors are crossed the delay starts counting from the beginning.<br \/>\n<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"560\" height=\"387\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/_5bRF4QSZ6w?fs=1&amp;hl=en_GB&amp;hd=1\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed type=\"application\/x-shockwave-flash\" width=\"560\" height=\"387\" src=\"http:\/\/www.youtube.com\/v\/_5bRF4QSZ6w?fs=1&amp;hl=en_GB&amp;hd=1\" allowscriptaccess=\"always\" allowfullscreen=\"true\"><\/embed><\/object><\/p>\n<p>While testing I&#8217;ve noticed that some Leds instead of dimming just switch off. Reading through Arduino forum I&#8217;ve found that apparently Arduino can only to <strong>analogWrite()<\/strong> 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\u00a0 Arduino with ATmega.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this part I&#8217;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\u00a0 starts switching [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[345],"tags":[347,348],"_links":{"self":[{"href":"http:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/posts\/486"}],"collection":[{"href":"http:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/comments?post=486"}],"version-history":[{"count":7,"href":"http:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":584,"href":"http:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/posts\/486\/revisions\/584"}],"wp:attachment":[{"href":"http:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/media?parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/categories?post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/tags?post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}