Problems with WS2812B led stripe

Hi!
I'm trying to do a wave effect with my WS2812B led stripe, but it seems like each individual led has the RGB configured differently as the strip was lighting in different colours of the ones i've defined

So I set up each led individually and saw the the RGB is different on each led, here's the code I have to use to set all the leds to blue

#include <Adafruit_NeoPixel.h> 

int ledPin = 12;
int numLeds = 144; 
int delayVal = 200;
int counter;

Adafruit_NeoPixel ledStrip (numLeds, ledPin, NEO_GRBW + NEO_KHZ800); 

void setup() {
  ledStrip.begin(); //init led strip
  
}

void loop() {
ledStrip.setPixelColor(0,ledStrip.Color(0, 0, 255)); 
  delay (delayVal);
  ledStrip.show();
  ledStrip.setPixelColor(1,ledStrip.Color(255, 0, 0));
  delay (delayVal);
  ledStrip.show();
  ledStrip.setPixelColor(2,ledStrip.Color(0, 255, 0)); 
  delay (delayVal);
  ledStrip.show();
  ledStrip.setPixelColor(3,ledStrip.Color(0, 0, 255,0)); 
  delay (delayVal);
  ledStrip.show();
  ledStrip.setPixelColor(4,ledStrip.Color(255, 0, 0)); 
  delay (delayVal);
  ledStrip.show();
  ledStrip.setPixelColor(5,ledStrip.Color(0, 255, 0)); 
  delay (delayVal);
  ledStrip.show();
  ledStrip.setPixelColor(6,ledStrip.Color(0, 0, 255)); 
  delay (delayVal);
  ledStrip.show();
  ledStrip.setPixelColor(7,ledStrip.Color(255, 0, 0)); 
  delay (delayVal);
}

And also, as you may see from the image, there are also some leds that are not on the supposed positions as they are not lighting up but instead the one next to it is (as for example pixel nº 3 lights up pixel in position nº 4 for some weird reason).

Does anybody know why this could be happening?
Thanks in advance

  • What voltage is on the strip’s 5v bus ?

  • Always show us a good schematic of your proposed circuit. Show us good images of your ‘actual’ wiring.
    Give links to components.

Hi! sorry and thanks for the advice.

Yes, the voltage it's 5V. And im using the elegoo arduino uno.

I'm hopping the images are clear enough, tried my best to get good images, but this is the circuit I have right now. The weird thing is, that with another strip I have (a cutout of just 7 pixels from an old one of the same manufacturer) it works!



I don't have the links to the exact components, but I hope this information is enough.

I think it will be good to test the neopixel strip. Check the Test the NeoPixel Strip part of the article.

  • Give us link to the strip you have.
  • Maybe try.

Adafruit_NeoPixel strip = Adafruit_NeoPixel(numLeds, ledPin, NEO_GRB + NEO_KHZ800);

May be because you configured all leds with 3 parameters, but 3rd with 4 values?

Why did you setup the strip as NEO_GRBW ? Does your stripe have a separate channel for white? (It is what the letter W in the GRBW implies)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.