{"id":4,"date":"2014-12-21T09:05:23","date_gmt":"2014-12-21T09:05:23","guid":{"rendered":"http:\/\/alain.fi\/?p=4"},"modified":"2019-07-30T04:00:53","modified_gmt":"2019-07-30T04:00:53","slug":"rpi-rgb-led-strip-ws2812b","status":"publish","type":"post","link":"https:\/\/alain.fi\/?p=4","title":{"rendered":"RPi &#8211; RGB LED strip WS2812B"},"content":{"rendered":"<p>I got a 30 RGB Led strip with WS2812B:<br \/>\nhttp:\/\/www.tweaking4all.com\/wp-content\/uploads\/2014\/01\/WS2812.pdf<\/p>\n<p>Its digital, it operates on 5V.\u00a0 Each led draws approximately 50 mA at 5 V with red, green, and blue at full brightness<br \/>\n-&gt; 1.5A<\/p>\n<p>5v 2A power supply will do it.<\/p>\n<p>There is an issue, the signal voltage should be same. So either I get a step-up module 3.3-&gt;5v, or I run everything at 3.3, which is not recommended, so it should be temporary solution.<\/p>\n<p>According to this:<br \/>\nhttps:\/\/learn.adafruit.com\/neopixels-on-raspberry-pi\/wiring<\/p>\n<p>I should use 1N4001 diods.. but I&#8217;ll be using 1N4148, they should be similar choice<\/p>\n<p>Connecting the data line to GPIO 18<\/p>\n<p><span class=\"pln\">apt-get install build-essential python-dev git scons swig<\/span><\/p>\n<p><span class=\"pln\">git clone https<\/span><span class=\"pun\">:<\/span><span class=\"com\">\/\/github.com\/tdicola\/rpi_ws281x.git<\/span><\/p>\n<p>cd rpi_ws281x\/<\/p>\n<p># scons<br \/>\nscons: Reading SConscript files &#8230;<br \/>\nscons: done reading SConscript files.<br \/>\nscons: Building targets &#8230;<br \/>\nCC main.o<br \/>\nCC ws2811.o<br \/>\nAR libws2811.a<br \/>\nRANLIB libws2811.a<br \/>\nLINK test<br \/>\nscons: done building targets.<\/p>\n<p>cd python<\/p>\n<p>python setup.py install<\/p>\n<p>see the examples<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got a 30 RGB Led strip with WS2812B: http:\/\/www.tweaking4all.com\/wp-content\/uploads\/2014\/01\/WS2812.pdf Its digital, it operates on 5V.\u00a0 Each led draws approximately 50 mA at 5 V with red, green, and blue at full brightness -&gt; 1.5A 5v 2A power supply will &hellip; <a href=\"https:\/\/alain.fi\/?p=4\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/posts\/4","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alain.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4"}],"version-history":[{"count":4,"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/posts\/4\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/alain.fi\/index.php?rest_route=\/wp\/v2\/posts\/4\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/alain.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alain.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alain.fi\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}