Comments: WS2812 Breakout Hookup Guide

Pages

Comments 9 comments

  • 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!

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

  • 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.

    • 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 techsupport@sparkfun.com and they should be able to help you in a timely manner (comments may or may not be looked at).

      • 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.

  • 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.

  • 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?

    • 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.

  • Problem…

    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:

    Console.println("White");
    strip.setPixelColor(0, strip.Color(255, 255, 255)); // White
    strip.show();
    delay(4000);
    

    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 a bug or have other constructive feedback for our tutorial authors, please send us your feedback!