I have a problem with my NodeMCU v2 board and my WS2812B led matrix with 256 (32x8) LEDs.
The Board cannot be able to turn on the 191th led and stops working after the 190th without changing the color of the rest of the strip.
I'm using an external power supply 5V 20A and the strip is connected as shown below
I tested the problem with the FastLED library.
#include <Arduino.h>
#include <FastLED.h>
#define NUM_LEDS 256
#define DATA_PIN 2
CRGB leds[NUM_LEDS];
void setup() {
Serial.begin(9600);
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
}
void loop() {
for(int dot = 0; dot < NUM_LEDS; dot++) {
leds[dot] = CRGB::Red;
}
FastLED.show();
delay(10000);
for(int dot = 0; dot < NUM_LEDS; dot++) {
leds[dot] = CRGB::Black;
}
FastLED.show();
delay(10000);
}
The result is this
How I can solve this?