{"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":"https:\/\/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":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[28],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p76pQa-32","jetpack-related-posts":[{"id":172,"url":"https:\/\/3d.rayharwood.com\/?p=172","url_meta":{"origin":188,"position":0},"title":"Flashing Rings!","date":"October 24, 2014","format":false,"excerpt":"GEMMA is flashing rings! Yesterday afternoon I tried my hand at soldering, trying to attach power, ground, and data to one of the NeoPixel assemblies (16 LED).\u00a0 I totally suck at soldering! Last night Franklin stepped in and soldered wires to the second (24 LED) and to the GEMMA --\u2026","rel":"","context":"In &quot;NeoPixel Gas Mask&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/3d.rayharwood.com\/wp-content\/uploads\/2014\/10\/20141024_122318919_iOS.jpg?fit=1200%2C900&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":181,"url":"https:\/\/3d.rayharwood.com\/?p=181","url_meta":{"origin":188,"position":1},"title":"NeoPixel Gas Mask Holder for LEDs and GEMMA","date":"October 27, 2014","format":false,"excerpt":"The holder created by the Ruiz Brothers on Adafruit and Thingiverse didn't quite fit into the respirator portion of our gas mask, and we thought the attachment of the rings was also a little clunky. (But then, we're relatively new to this whole 3D printing thing... so we're not saying\u2026","rel":"","context":"In &quot;Lulzbot TAZ 4&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/3d.rayharwood.com\/wp-content\/uploads\/2014\/10\/20141027_150136202_iOS.jpg?fit=1200%2C900&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":208,"url":"https:\/\/3d.rayharwood.com\/?p=208","url_meta":{"origin":188,"position":2},"title":"NeoPixel Gas Mask at Arizona Fur Con","date":"November 1, 2014","format":false,"excerpt":"The NeoPixel Gas Mask from the Adafruit Learning Center was completed and Franklin wore it to Day 1 of the Arizona Fur Con.\u00a0 It was quite a hit! The final mask had a lot of \"manual effort\" put into it, including using a hot knife to rip out part of\u2026","rel":"","context":"In &quot;Lulzbot TAZ 4&quot;","img":{"alt_text":"","src":"https:\/\/i2.wp.com\/3d.rayharwood.com\/wp-content\/uploads\/2014\/11\/AFC-Picture-cropped.png?fit=683%2C931&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":167,"url":"https:\/\/3d.rayharwood.com\/?p=167","url_meta":{"origin":188,"position":3},"title":"NeoPixel 3D Gas Mask from Adafruit","date":"October 23, 2014","format":false,"excerpt":"Franklin has embarked on a project of customizing the 3D gas mask with NeoPixel lighting as originally designed by Adafruit.\u00a0 We ordered (and with 2-day shipping, received yesterday) the various parts to control the lighting.\u00a0 As of yesterday evening, Franklin had the Arduino development environment installed and was already programming\u2026","rel":"","context":"In &quot;Lulzbot TAZ 4&quot;","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/3d.rayharwood.com\/wp-content\/uploads\/2014\/10\/3d_printing_hero-laser-1080.jpg?fit=640%2C360&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":165,"url":"https:\/\/3d.rayharwood.com\/?p=165","url_meta":{"origin":188,"position":4},"title":"Quick Update - We Moved!","date":"October 23, 2014","format":"aside","excerpt":"No posts since July... because we've moved from Arizona City (a small unincorporated town of around 10,000 people) to Phoenix (metro area population around 4.3 million).\u00a0 See my personal blog for more details. But that hasn't put all of my 3D printing endeavors on hold.\u00a0 I continue to make incremental\u2026","rel":"","context":"In &quot;General&quot;","img":{"alt_text":"","src":"https:\/\/i2.wp.com\/3d.rayharwood.com\/wp-content\/uploads\/2014\/10\/AZCity-to-Phoenix.jpg?fit=1200%2C774&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":326,"url":"https:\/\/3d.rayharwood.com\/?p=326","url_meta":{"origin":188,"position":5},"title":"Tower Lights - Ready for Night Test","date":"October 7, 2015","format":false,"excerpt":"What is the \"Tower Lights\" Project? I'm investigating attaching LED light strings to the guy wires that hold up short to medium height radio towers.\u00a0 I got the idea driving past Rustler's Rooste nearby. They have strings of low-wattage incandescent lights along 6 guy wires attached to the upper portion\u2026","rel":"","context":"In &quot;Tower Lights&quot;","img":{"alt_text":"","src":"https:\/\/i2.wp.com\/3d.rayharwood.com\/wp-content\/uploads\/2015\/10\/20151007_172323718_iOS1.jpg?fit=1200%2C900&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/posts\/188"}],"collection":[{"href":"https:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/3d.rayharwood.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188"}],"version-history":[{"count":2,"href":"https:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":385,"href":"https:\/\/3d.rayharwood.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions\/385"}],"wp:attachment":[{"href":"https:\/\/3d.rayharwood.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3d.rayharwood.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3d.rayharwood.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}