{"id":3516,"date":"2014-01-13T22:30:08","date_gmt":"2014-01-14T06:30:08","guid":{"rendered":"http:\/\/www.corbinstreehouse.com\/blog\/2014\/01\/led-cyr-wheel-more-led-notes\/"},"modified":"2018-11-03T13:36:25","modified_gmt":"2018-11-03T20:36:25","slug":"led-cyr-wheel-more-led-notes","status":"publish","type":"post","link":"https:\/\/www.corbinstreehouse.com\/blog\/2014\/01\/led-cyr-wheel-more-led-notes\/","title":{"rendered":"LED Cyr wheel: More LED Notes"},"content":{"rendered":"<p id=\"top\" \/>\n<p><b>Teensy\/Hardware control<\/b><\/p>\n<p>LEDs! I got my <a href=\"http:\/\/www.pjrc.com\/teensy\" title=\"asylum.com\">Teensy 3.1<\/a> board and started playing with the digital LED strips I got. I was having a heck of a time getting any sample code to work. I finally cut off the first LED and soldered the leads to the second one; then things started to work! I must have killed it accidentally; probably with reverse voltage, or other thing. As noted in <a href=\"http:\/\/www.corbinstreehouse.com\/blog\/2013\/12\/led-notes-led-cyr-wheel-v2\/\">Notes on v2<\/a> WS2812B LEDs would be better to use, as they have reverse protection built in.<\/p>\n<p><b>What library to use?<\/b><\/p>\n<p>I am looking at using the AdaFruit NeoPixel library, or the teensy <a href=\"http:\/\/www.pjrc.com\/teensy\/td_libs_OctoWS2811.html\">OctoWS2811 library<\/a>. I did a rainbow pattern with each. The octo library is GOBS faster, but occasionally flickers for some reason. The adafruit one is slower, but seems more consistent. I&#8217;ll probably abstract how I use each so I could switch back and forth with a #define. The website for the Octo has great info on the LEDs though.<\/p>\n<p><b>Power<\/b><\/p>\n<p>I need a 5v power supply to test the LEDs. So, I need to figure out how much power they draw. The 59 LED strip I have draws 0.73amps at 5v, or about 0.01237amp per LED, or 12.4ma. I am looking at roughly 6m of LEds, 60LEDs per m, or: 360 LEDs per side, 720 total. I read on the Octo site that they can draw about 3 amps per 60 LED strip, so I&#8217;d be drawing up to 36 amps! I measured again at full white for my 59 LEDs, and got .87amps at most (870mA, or 14.8mA per LED)<\/p>\n<p><a href=\"https:\/\/learn.sparkfun.com\/tutorials\/ws2812-breakout-hookup-guide\/hardware-hookup\">spark fun say<\/a>s 60ma per LED. That would be: 60ma*720LEDs\/1000=<b>43.2amps.<\/b> Yikes. Let&#8217;s not run them at full white! With a 2000mah Lipo battery that can do 15-20c, it could put out the 30-40amps required, but it would run for, oh, 4 minutes (2ah\/30amps = .0667 hours = 4.00 mins).<\/p>\n<p><a href=\"http:\/\/www.pololu.com\/search\/compare?products=2546%2C2547%2C2548%2C2549%2C2550\">Pololu<\/a> says 4.7amps for 2meters of 60LED per meter. So, they calculate 28amps most for my 12meters total.<\/p>\n<p>But my calculation on full white says: 14.8mA\/LED*720LED = 10.6A. I think I&#8217;ll plan for about 15amps max..and uh, see how it goes. I won&#8217;t be running full white continuously.<\/p>\n<p>The problem is for my testing I don&#8217;t have any way of providing any more than 2amps at 5v (a &#8220;wall wart&#8221; power supply that I have, or making my own ~1amp DC power converter circuit on a breadboard, which overheats). So, I have to order a better power supply, just for testing (I could use LiPO batteries..but I also don&#8217;t have any!). So, I ordered a 40amp (just in case!) <a href=\"http:\/\/cgi.ebay.com\/ws\/eBayISAPI.dll?ViewItem&amp;item=171123409781&amp;ssPageName=ADME:L:OU:US:1120\">5v power supply<\/a> from ebay for $30, which will come in handy in the future for other electronic projects.<\/p>\n<p>I&#8217;m planning on using a 2cell Lipo battery for the power. I&#8217;m thinking of using two ~1.2 to 1.4ah batteries, since the runs are long (one for each half of the wheel). The LiPo battery will be 7.2v, too high for the LEDs. I need 5v. I ordered a small <a href=\"http:\/\/www.pololu.com\/product\/2111\">step-down voltage regulator<\/a> from Pololu capable of doing 7amp continuous, and 15amp max. That should meet my design requirements (unless the stupid wheel really pulls more than 20 amps). I bought two\u2026one for each battery, which might reduce the load in half. I might use one, or two; I&#8217;ll experiment on a breadboard first and measure actual power consumption. I also ordered some <a href=\"http:\/\/www.amazon.com\/dp\/B001O7ARUQ\/ref=pe_385040_30332190_TE_M3T1_ST1_dp_1\">thermal adhesive<\/a> from amazon (free shipping with Prime..I signed up this month since I&#8217;m buying a ton of stuff, and will cancel when the trial is over). I can use this to make the regulator have a large heatsink (the wheel!) to handle closer to the 15amp limit. Or, so I hope, and that&#8217;s only if I need to.<\/p>\n<p>How long will the 1.4ah 7.2v battery last? It has: 1.4*7.2: 10.08watt\/hours in it. The regulator is close to 95% efficient, so It&#8217;ll pass through 9.576watt\/hours. At full white, 10.6amp*5v=53watts, so, I&#8217;m looking at only a 10 minute capability at full white. One color at a time will take 1\/3 the power, so I could easily get 30 minutes with most patterns. Two batteries in parallel seem to be a must to double the amp-hours. That would give me 20 minutes of full white, and an hour run time &#8220;in general&#8221;. I just have to find some batteries that will fit in the wheel!<\/p>\n<p><b>Need more LEDs<\/b><\/p>\n<p>I realize now that I need more LEDs. I want two strips on each side. I also think I&#8217;m going to get &#8220;bare&#8221; LEDs and cover them in epoxy. So, I need to order some more. I want them to all be from the same batch..just in case there is some discrepancy. I need ~6m per wheel side, so 12m total. They are sold (usually) in 5m rolls, so I need 15m, which gives me some spares for &#8220;mess ups&#8221; (In addition to the 6m I already have, geez!)<\/p>\n<p><b>WS2811\/WS2812\/WS2812B LED Sources. 60 LEDs per meter, and I need 12 meters min.<\/b><\/p>\n<p>* <a href=\"http:\/\/www.adafruit.com\/category\/37_168\">AdaFruit NeoPixel<\/a>&#8212; <b>Waterproof<\/b> (not bare, not desired), not &#8220;B&#8221; (as far as I can tell). $23.95\/meter. &#8211; $287.4 for 12 meters.<\/p>\n<p>* <a href=\"https:\/\/www.sparkfun.com\/products\/12026\">SparkFun<\/a> (where I already bought some). WS2812, but not &#8220;b&#8221; (I don&#8217;t think). $20\/meter (roughly), <b>bare<\/b>. Come in 5m reels, but also sold by the meter. $240 for 12 meters.<\/p>\n<p><b>*<\/b> <a href=\"http:\/\/www.pololu.com\/category\/130\/led-strips\">Pololu<\/a> &#8211; WS2812B (the only one I know for sure has the B) &#8211; <b>waterproof<\/b>, $22.95\/m (when ordering 10+): $276 for 12m.<\/p>\n<p>* <a href=\"http:\/\/www.aliexpress.com\">AliExpress<\/a> &#8211; Looking into this option, as I might be able to get what I want for much cheaper.<\/p>\n<p><a href=\"http:\/\/www.aliexpress.com\/item\/Free-shipping-dc-5v-4m-240-leds-60-pixel-m-5050-smd-rgb-ws2812b-ws2811-led\/1519096378.html\">http:\/\/www.aliexpress.com\/item\/Free-shipping-dc-5v-4m-240-leds-60-pixel-m-5050-smd-rgb-ws2812b-ws2811-led\/1519096378.html<\/a> &#8211; 4m\/lot, 3lots: $140 (save $100!)<\/p>\n<p>\u2026and many others\u2026<\/p>\n<p>EDIT: I bought <a href=\"http:\/\/www.aliexpress.com\/snapshot\/314410779.html\">these<\/a> from Ali Express.<\/p>\n<p><b>Charger\/power supply<\/b><\/p>\n<p>I ran across this charger: Thunder-AC6-Charger-Power &#8211; <a href=\"http:\/\/www.hobbypartz.com\/thac6smbachw.html\">http:\/\/www.hobbypartz.com\/thac6smbachw.html<\/a>&#8211; at $44. I bought the Turnigy Accucell 6, but, it didn&#8217;t include a 120v power brick, so I had to buy one:<\/p>\n<p>1x #ACC6\/18066 Turnigy Accucel-6 50W 6A Balancer\/Charger w\/ accessories (USA Warehouse) = $24.07<\/p>\n<p>1x #HK15-5\/34106 HobbyKing Power Supply 100~240v 5A (USA Warehouse) = $9.74<\/p>\n<p>So, total about $34\u2026but the Thunder one looks $10 better..so if I were to get another one I might go for that one. I also had to cut off the leads and put other ones on to match the AirSoft nano tech battery I bought (which I wasn&#8217;t happy about..but how well). Actually..my charger might have already died\u2026geez.<\/p>\n<p>I&#8217;m using a 3s 1.2ah lip cell (about 11.1v nominal) to test out in my original wheel first. Previously, I had 8-AA Nimh cells at 1400mah (1.4ah); slightly lower voltage (8*1.2v=9.6v), but they were working fine with the regular LEDs<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Teensy\/Hardware control LEDs! I got my Teensy 3.1 board and started playing with the digital LED strips I got. I was having a heck of a time getting any sample code to work. I finally&#8230; <a class=\"read-more\" href=\"https:\/\/www.corbinstreehouse.com\/blog\/2014\/01\/led-cyr-wheel-more-led-notes\/\">[read more]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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_post_was_ever_published":false},"categories":[13],"tags":[],"class_list":["post-3516","post","type-post","status-publish","format-standard","hentry","category-circus-and-silk"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/3516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/comments?post=3516"}],"version-history":[{"count":2,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/3516\/revisions"}],"predecessor-version":[{"id":5401,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/3516\/revisions\/5401"}],"wp:attachment":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media?parent=3516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/categories?post=3516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/tags?post=3516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}