Neopixel Library with ws2812b led strip flickering problem

Hi,
I’m having trouble using the Neopixel Library with my led strip ws2812b, this is the wire diagram:

I haven’t use the 1000 µF.
I have try the strandtest example of the NeoLibrary and seems to work fine, then I edit it in this way:

#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
  #include <avr/power.h>
#endif

#define PIN 6

// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
//   NEO_KHZ800  800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
//   NEO_KHZ400  400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
//   NEO_GRB     Pixels are wired for GRB bitstream (most NeoPixel products)
//   NEO_RGB     Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
//   NEO_RGBW    Pixels are wired for RGBW bitstream (NeoPixel RGBW products)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, PIN, NEO_GRB + NEO_KHZ800);

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

void setup() {
  // This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket
  #if defined (__AVR_ATtiny85__)
    if (F_CPU == 16000000) clock_prescale_set(clock_div_1);
  #endif
  // End of trinket special code


  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
}

void loop() {
  // Some example procedures showing how to display to the pixels:

  colorWipe(strip.Color(255, 127, 0), 50); // warm white
  delay(9000);

}

// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels(); i++) {
    strip.setPixelColor(i, c);
    strip.show();
    delay(wait);
  }
}

Because in my project at the moment I want color the led of warm white, but with this code the led is flickering between my color and between a not defined color like an orange, that seems to be the start color when i power the led strip on i have attach a video where you can see the flickering:

I have tried also with a white color:

colorWipe(strip.Color(127, 127, 127), 50);

But with this color the led strip don’t make a flickering of change color like the previous problem but literally flickering of brightness, also here I can’t understand why, video here:

I’m powering the led strip with a USB power supply 5V 500ma

1.) Use the cap (its there for a reason).. while you may be able to get away with not using the cap and/or resistor.. why risk it for such small & cheap parts?

2.) Upload your videos to YouTube.. not Dropbox.

You are only using 10 leds? (correct?) So power supply should efficient enough.

xl97:
1.) Use the cap (its there for a reason).. while you may be able to get away with not using the cap and/or resistor.. why risk it for such small & cheap parts?

2.) Upload your videos to YouTube.. not Dropbox.

You are only using 10 leds? (correct?) So power supply should efficient enough.

  1. Ok I wil do it
  2. Here are the videos:
    Neopixel flickering 1 - YouTube
    Neopixel flickering 2 - YouTube
  3. Yes at the moment only for testing i'm using only 10 leds but in my final projects i will use 150 leds but this is another story :smiley:

How you think I can fix it?

anyone can help me?