{"id":1531,"date":"2019-08-16T01:42:29","date_gmt":"2019-08-16T08:42:29","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=1531"},"modified":"2019-08-24T00:21:21","modified_gmt":"2019-08-24T07:21:21","slug":"led-chaser","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/micro-controllers\/arduino\/led-chaser\/","title":{"rendered":"LED Chaser"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Purpose<\/h2>\n\n\n\n<p>This is a quick implementation of a Kitt Scanner from the Knight Rider Show. It uses 11 5mm Red LEDs  and a Keyes Arduino Pro Mini. The Pattern for the LED 1&#215;11 matrix was created by cycling LED on in a 1, 2, 3 &#8211; 3, 2, 1 Loop.  This pattern was used because of three reasons.  <br>1. The Pro Mini has 12 Digital outputs, but only 11 LED&#8217;s fit on the final assembly. <br>2. Only running a max of 3 LED&#8217;s  would require minimum Power requirements ~30mA max.<br>3. The Analog inputs leave possible inputs for changing the speed and patterns and sound output. (To be added later).<\/p>\n\n\n\n<iframe style=\"height: 30vmax;width: 45vmax\" src=\"https:\/\/www.tinkercad.com\/embed\/9R18RGkx8FK?editbtn=1\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n\n\n\n<h2 class=\"wp-block-heading\">LED Pattern<\/h2>\n\n\n\n<p>The LED Pattern involved creating 2 loops, one for each direction.<br>The first Loop counted through the total possible patterns for the LEDs which were 13. <br>1. The first Pattern was only 1 Led ON For 10ms<br>2. The second pattern was 2 LEDs ON for 5ms then 1 ON for 5ms<br>3. The third pattern was 3 LEDs ON for 2.5ms then 2 ON for .25ms then 1 ON 5ms. This pattern repeated until the last LED got turned ON<br>4.  The second to last pattern was 2 LEDs ON for 5ms then 1 ON for 5ms<br>5.  The Last Pattern was only 1 Led ON For 10ms <br><br>This pattern repeats in the opposite direction<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/08\/20190818_111202.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Purpose This is a quick implementation of a Kitt Scanner from the Knight Rider Show. It uses 11 5mm Red LEDs and a Keyes Arduino Pro Mini. The Pattern for the LED 1&#215;11 matrix was created by cycling LED on in a 1, 2, 3 &#8211; 3, 2, 1 Loop. This pattern was used because &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/micro-controllers\/arduino\/led-chaser\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;LED Chaser&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":972,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1531","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=1531"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1531\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/972"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}