HOME > > ELECTRONICS MAIN PAGE>> FULL ACCOUNT OF WS2812s     StumbleUpon.Com Recommend to StumbleUpon

SUMMARY- WS2812 'Smart' LEDs

Highlights from longer page

(file name: WS2812SmartLEDs-summary.htm)

This page is for reference, for people who have a pretty good idea of much of the matters involved already.

It is a cut down version of a 'Guide to Using WS2812 Smart LEDs / NeoPixels' page which I hope will get a novice from knowing "nothing" to being able to use these very cool devices.


Pololu sells a ring of 16 for $10. Sparkfun will sell you strips of various specifications and lengths, e.g. a 5m weatherproofed strip with 300 WS2812s? ($119, sigh).

A warning...

One of the Adafruit tutorials says...

IMPORTANT: To reduce NeoPixel burnout risk, add
1000 uF capacitor across pixel power leads,
add 300 - 500 Ohm resistor on first pixel's data
input and minimize distance between Arduino and
first pixel.  Avoid connecting on a live circuit
...if you must, connect GND first.


I am going to use "LEDs" quite often to refer to WS2812s. Of course, each WS2812 contains three LEDs, but usually when I say "the LED", I will be meaning "the module containing a red, a blue and a green LED".

To hook your computer up to a string of WS2812s, you only need three wires...

A string of the devices, even one with "only" 16 of them, needs a source of 5v capable of delivering significant current. A 16 LED string can draw 800mA.

Not a "big problem"... but don't try to run the string off of the 5v made on an Arduino which has it's own voltage regulator circuits.

The following shows two alternative hook-ups. Do not connect the Arduino both to 5v via the USB cable and via the Vcc pin.

The capacitor, C, and resistor, R, are the ones mentioned in the highlighted warning at the top of this essay.


Software.... First a "do once" chore...

Before you use the WS2812s, you need to install the Adafruit_NeoPixel library in your Arduino programming environment, your IDE.

Go to the github LED-strip-Arduino page, and click on the "Download .zip" button (over at right, Jan 2018). Don't be alarmed by the "Pololu" on the page if you are using WS2812 (or WS2811) smart LEDs from someplace else.

Install the library in the usual way.

Software to make pretty things happen

Once you have done the setup describe above, the following should work...

#include <Adafruit_NeoPixel.h>

#define bLedSmartLEDStripPin 6//no ; here

Adafruit_NeoPixel SmartLEDStrip=
         NEO_GRB + NEO_KHZ800);

void setup() {
  SmartLEDStrip.show(); // Initialize all pixels to 'off'

void loop() {

Remeber- that was the "summary"... for more detail...

The above is merely the main points from a much longer page which goes into detail, and explains things. Click here for my full tutorial on Smart LEDs/ WS2812s/ Neopixels.

   Search this site                 powered by FreeFind
Site Map    What's New    Search

Ad from page's editor: Yes.. I do enjoy compiling these things for you... hope they are helpful. However.. this doesn't pay my bills!!! If you find this stuff useful, (and you run an MS-DOS or Windows PC) please visit my freeware and shareware page, Sheepdog Software (tm), download something, and circulate it for me? At least (please) send an 'I liked the parallel port use page, and I'm from (country/ state)' email? (No... I don't do spam.) Links on your page to this page would also be appreciated!
Click here to visit editor's freeware, shareware page.

Don't forget to check out the programs for controlling the state of the parallel port at my shareware site. There are two free programs there... one for toggling bits, the other for using the computer as a timer via the parallel port.

Here is how you can contact this page's editor.
Click here to go up to general page about electronics by editor of this page.
Click here to go up to general page about electronic projects by editor of this page.
Why does this page have a script that loads a tiny graphic? I have my web traffic monitored for me by eXTReMe tracker. They offer a free tracker. If you want to try it, check out eXTReMe's site. The Google panels and the search panel are also script based.

Valid HTML 4.01 Transitional Page tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org. Mostly passes. There were two "unknown attributes" in Google+ button code, and two further "wrong" things in the Google Translate code. Sigh.

....... P a g e . . . E n d s .....