Comments: WS2812 Breakout Hookup Guide


Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • loconut / about 3 years ago / 1

    I'm looking for a slightly more dense version of this. Piano keys seem to be an average of 23mm (wikipedia: "Modern piano keyboards ordinarily have an octave span of 164–165 mm (6.5–6.5 in); resulting in the width of black keys averaging 13.7 mm (0.54 in) and white keys about 23.5 mm (0.93 in) wide at the base, disregarding space between keys. Several reduced-size standards have been proposed and marketed.") and I'd ideally like to have one per key.... any chance.....

  • Member #516579 / about 8 years ago / 1

    I keep getting the following error. /Users/xys/Documents/Arduino/WS2812_Breakout_Example/WS2812_Breakout_Example.ino: In function 'void loop()': /Users/xys/Documents/Arduino/WS2812_Breakout_Example/WS2812_Breakout_Example.ino:53:22: warning: large integer implicitly truncated to unsigned type [-Woverflow] cylon(INDIGO, 500); // Indigo cylon eye!

  • Member #768106 / about 8 years ago / 1

    Facing a difficulty in terms of hardware.. Exactly where and how am I supposed to connect a capacitor and resistor?

  • Member #777407 / about 8 years ago / 1

    I need a lot of help with a problem I currently have. So my LED strip is not working well. Whenever i plug in the wire to 5V from the red wire with the code (It was working well before) in, it just flickers once and goes black. I use Arduino UNO. I tried many different wires with my arduino and it does the same thing everytime. It used to work fine and I need an answer really soon for I have to have this done before March 4th! Thanks: Logan Sautter.

    • M-Short / about 8 years ago / 1

      Make sure your Uno is able to supply enough power for your strip, also make sure you have a capacitor in your circuit (see the hookup guide). If you are still having problems email and they should be able to help you in a timely manner (comments may or may not be looked at).

      • Member #777407 / about 8 years ago / 1

        Just to let you know, I have confirmed having enough power. I am getting the capacitor in the mail soon. 1000uF because I am doing a lot at once.

  • Member #592054 / about 9 years ago / 1

    I had issues with the example code. Calling for red gave green and vice versa. The problem only happens when calling colors by name.

    The problem seems to be in calling the NeoPixel class. The example uses NEO_GRB + NEO_KHZ800. But the header file defines all the colors red then green and then blue.

    I'm using the pth version if that makes any difference.

  • glenrswanson / about 10 years ago / 1

    I need help with a problem...

    I have an Intel Galileo that I am attempting to use to control a 1M strip of addressable RGB LED's. I have downloaded and installed the library and the sample code. When I attempt to compile / Verify it, I get the following errors: Arduino: 1.5.3 (Windows NT (unknown)), Board: "Intel® Galileo"

    D:\G\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-g++ -m32 -march=i586 --sysroot=D:\G\arduino-1.5.3/hardware/tools/x86/i586-poky-linux-uclibc -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -march=i586 -m32 -DARDUINO=153 -ID:\G\arduino-1.5.3\hardware\arduino\x86\cores\arduino -ID:\G\arduino-1.5.3\hardware\arduino\x86\variants\galileo_fab_d -IC:\Users\Glen\Documents\Arduino\libraries\Adafruit_NeoPixel C:\Users\Glen\AppData\Local\Temp\build6958966864876242060.tmp\WS2812_Breakout_Example.cpp -o C:\Users\Glen\AppData\Local\Temp\build6958966864876242060.tmp\WS2812_Breakout_Example.cpp.o

    D:\G\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-g++ -m32 -march=i586 --sysroot=D:\G\arduino-1.5.3/hardware/tools/x86/i586-poky-linux-uclibc -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -march=i586 -m32 -DARDUINO=153 -ID:\G\arduino-1.5.3\hardware\arduino\x86\cores\arduino -ID:\G\arduino-1.5.3\hardware\arduino\x86\variants\galileo_fab_d -IC:\Users\Glen\Documents\Arduino\libraries\Adafruit_NeoPixel -IC:\Users\Glen\Documents\Arduino\libraries\Adafruit_NeoPixel\utility C:\Users\Glen\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp -o C:\Users\Glen\AppData\Local\Temp\build6958966864876242060.tmp\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp.o

    C:\Users\Glen\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp: In member function 'void Adafruit_NeoPixel::show()': C:\Users\Glen\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:89:16: error: 'noInterrupts' was not declared in this scope C:\Users\Glen\Documents\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:824:14: error: 'interrupts' was not declared in this scope

    The compiler does not seem to like the noInterrupts or the Interrupts calls even though these are clearly supported in the Arduino language. Is there something that I am doing wrong?

    • jimblom / about 10 years ago / 2

      Oof, I don't think these would work on a Galileo without a lot of code rewrites (the library uses a lot of in-line assembly, specific to the AVR architecture), and even then...I don't think so. The Arduino sketch on a Galileo runs as a process in the Linux kernel. As such, you wouldn't be able to get the really precise timing you need to drive these LEDs.

  • Member #383017 / about 11 years ago / 1


    In the Adafruit Neopixel library, sketches / objects and their members overall work fine... Except when you try to use the class member to set a single pixel to all white:

    // Set pixel color from 'packed' 32-bit RGB color:
    void Adafruit_NeoPixel::setPixelColor(uint16_t n, uint32_t c) {

    And employ it on an Arduino Yun/Yún with a call like:

    strip.setPixelColor(0, strip.Color(255, 255, 255)); // White;

    The pixel Flashes white, then goes to black (off)

    However if you change the above with:

    strip.setPixelColor(0, strip.Color(255, 255, 254)); // or make any of the 3 values so that they are not all 3 the same...

    Then the pixel works fine... stays (almost) pure white as possible.

    What is the library or HW bug where (on the Yun/Yún, at least) where if these three color values are the same non-zero values, it flashes that color then instantly changes to off?

If you've found an issue with this tutorial content, please send us your feedback!