{"id":188,"date":"2014-10-27T16:12:37","date_gmt":"2014-10-27T16:12:37","guid":{"rendered":"http:\/\/3d.rayharwood.com\/?p=188"},"modified":"2016-01-13T13:30:41","modified_gmt":"2016-01-13T13:30:41","slug":"neopixel-gas-mask-mod-daisy-chain-the-leds","status":"publish","type":"post","link":"http:\/\/3d.rayharwood.com\/?p=188","title":{"rendered":"NeoPixel Gas Mask Mod: Daisy-chain the LEDs"},"content":{"rendered":"<p>The NeoPixel Gas Mask, as presented by the <a title=\"NeoPixel Gas Mask project\" href=\"https:\/\/learn.adafruit.com\/3d-printed-el-wire-laser-neopixel-led-gas-mask\" target=\"_blank\">Ruiz Brothers on the Adafruit <\/a>web site, wires both LED &#8220;data in&#8221; ports to the GEMMA&#8217;s &#8220;data out&#8221; port.\u00a0 This means that lighting up &#8220;pixel number 1&#8221; lights up two pixels: pixel number 1 on the 16 LED ring, and pixel number 1 on the 24 LED ring.<!--more--><\/p>\n<p>Two important notes: the pixel numbers actually start with zero, and the pixel numbers go clockwise on all NeoPixel rings <strong>except the 16-LED ring, which go counter-clockwise<\/strong>.<\/p>\n<p>We wanted to be able to control all of the LEDs individually, and this is <em>very<\/em> easy to do.\u00a0 Instead of wiring both NeoPixel &#8220;data in&#8221; ports to the GEMMA&#8217;s &#8220;data out&#8221; port, we wired only the 24-LED ring&#8217;s &#8220;data in&#8221; to the GEMMA &#8220;data out&#8221;, and then wired the 16-LED ring&#8217;s &#8220;data in&#8221; to the 24-LED ring&#8217;s &#8220;data out&#8221;.\u00a0 This essentially &#8220;cascades&#8221; the 16-LED ring <em>behind<\/em> the 24-LED ring, making the first pixel in the 16-LED ring be pixel number 24!<\/p>\n<p>Why 24?\u00a0 The pixels on the 24-LED ring are &#8220;first out&#8221; of the GEMMA, and are numbered 0 to 23.\u00a0 This makes the 16 pixels on the later-in-the-setup 16-LED ring numbered 24 to 39.\u00a0 All for a total of 40 LEDS numbered 0 to 39.<\/p>\n<p>Now you can turn on a pixel on the inner ring without turning on a pixel on the outer ring, and vice versa.\u00a0 This makes it possible, for example, to light up a single LED at a time on outer ring going in a circle&#8230; and then when you reach the starting point, jumping into the inner circle and having a single LED going around that&#8230; and then back to the outer circle.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The NeoPixel Gas Mask, as presented by the Ruiz Brothers on the Adafruit web site, wires both LED &#8220;data in&#8221; ports to the GEMMA&#8217;s &#8220;data out&#8221; port.\u00a0 This means that lighting up &#8220;pixel number 1&#8221; lights up two pixels: pixel number 1 on the 16 LED ring, and pixel number 1 on the 24 LED [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[28],"tags":[],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-npgm"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p76pQa-32","jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/3d.rayharwood.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188"}],"version-history":[{"count":2,"href":"http:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":385,"href":"http:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions\/385"}],"wp:attachment":[{"href":"http:\/\/3d.rayharwood.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/3d.rayharwood.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/3d.rayharwood.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}