Hi! I ordered few supposedly (because chips on the stips have no markings) WS2811 strips but they don't work as expected. I tried using both FastLED and Adafruit Neopixel libraries but failed to produce expected results.
With the code as follows:
#include "FastLED.h" #define NUM_LEDS 30 #define DATA_PIN 6 CRGB leds[NUM_LEDS]; void setup() { FastLED.addLeds<ws2811, data_pin,="" rgb="">(leds, NUM_LEDS); for (int i = 0; i < NUM_LEDS; i++) { leds[i] = CRGB::Black; } FastLED.show(); } void loop() { for (int i = 0; i < NUM_LEDS; i++) { leds[i] = CRGB::Red; FastLED.show(); delay(1000); } }
It should light up first LED red, wait a second then light up the next one, wait a sec etc. But the result is that it lights up 3 LEDs blue and continues - here's a video:
The Arduino is connected to 5V, the stip to 12V. Tried with few of those stips and they all work the same. Tried with setting different chip types in the code but it didn't help. Not sure if the seller doesn't know which chips he sells or those are some faulty stips or am I missing something obvious.