{"id":381,"date":"2016-05-23T22:07:04","date_gmt":"2016-05-23T21:07:04","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=381"},"modified":"2016-05-23T22:10:21","modified_gmt":"2016-05-23T21:10:21","slug":"ws2811-ws2812-neopixel-rgb-pixelsleds-and-arduino","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/ws2811-ws2812-neopixel-rgb-pixelsleds-and-arduino\/","title":{"rendered":"WS2811, WS2812, NeoPixel RGB Pixels\/LEDs and Arduino"},"content":{"rendered":"<p>WS28<a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/05\/WS2811.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-382 size-medium\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/05\/WS2811-300x220.png\" alt=\"WS2811\" width=\"300\" height=\"220\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/05\/WS2811-300x220.png 300w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/05\/WS2811.png 509w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>11 or WS2812 based LEDs \/ RGB pixels are cheap and easily available on the online stores. They run off 5 volts and can be addressed individually. Waterproof versions are also available.<\/p>\n<p>On Ebay\/Aliexpress\/Alibaba they are sold as a set of 25 leds \/ RGB pixels connected together. Multiple such strips\/chains can be connected together to form longer chains of light.<\/p>\n<p>Unfortunately they mostly come without any power source or controller. Normally for a 25 RGB LED chain based on WS2811 consumes about .3W (please refer to manufacturer datasheet for exact requirements). So it can be powered from almost any ordinary 5v adapter, even mobile phone\u00a0 chargers (with sufficient current supply capability) can be used.<\/p>\n<p>For controlling the rgb lights and changing colors and effects an Arduino can be used. The &#8220;FastLED&#8221; project on GitHub is a nice library. It has many examples also. The library supports Arduino and various type of RGB LED \/ RGB Pixels. Here is the link to the GitHub repository:\u00a0 <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/FastLED\/FastLED\">https:\/\/github.com\/FastLED\/FastLED<\/a><\/span>.<br \/>\n<em>I am attaching the <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/05\/FastLED-master.zip\">Master here<\/a><\/span> as on 23-05-2016 in case the library goes off GitHub for some reason. The code belongs to the developers and contributors (<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/FastLED\/FastLED\/graphs\/contributors\">https:\/\/github.com\/FastLED\/FastLED\/graphs\/contributors<\/a><\/span>)<br \/>\nAnd <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/05\/FastLED-3.1.0.zip\">here <\/a><\/span>is the Arduino Library only as on 23-05-2016. The version is 3.1.0<br \/>\n<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WS2811 or WS2812 based LEDs \/ RGB pixels are cheap and easily available on the online stores. They run off 5 volts and can be addressed individually. Waterproof versions are also available. On Ebay\/Aliexpress\/Alibaba they are sold as a set of 25 leds \/ RGB pixels connected together. Multiple such strips\/chains can be connected together&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/ws2811-ws2812-neopixel-rgb-pixelsleds-and-arduino\/\">Continue reading <span class=\"screen-reader-text\">WS2811, WS2812, NeoPixel RGB Pixels\/LEDs and Arduino<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[59,63,61,62,60,57,58],"class_list":["post-381","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-neopixel","tag-rgb-led","tag-rgb-leds","tag-rgb-light","tag-rgb-pixels","tag-ws2811","tag-ws2812","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":4,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":388,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/381\/revisions\/388"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}