r/FastLED • • May 17 '25
Support Only first LED of ws2812b strip is glowing
Hi, I'm pretty new to boards/LEDs and currently trying my first simple setup but struggling due to only the first LED glowing. I already added an 5V external power supply and matched tze white GND with the GND of the board.
I tried an easy test code:
include <FastLED.h>
define NUM_LEDS 144
define DATA_PIN 6
CRGB leds[NUM_LEDS];
void setup() { FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS); FastLED.setBrightness(50);
for (int i = 0; i < NUM_LEDS; i++) { leds[i] = CRGB::Red; } FastLED.show(); }
void loop() {}
Thanks for any help. :)
14
Upvotes



5
u/splat2385 Albert Barber May 18 '25
As far as I can tell, your setup and code look correct and should be working, so you'll have to do some troubleshooting.
Those dense 144 leds/m strips are a lot more finicky than others. Bend them too many times or too far, and the copper layer breaks. As an alternative for your project, you could consider this 5mm wide, 120 leds/m strip: https://a.co/d/5Zi7nlX. I've not worked with this type of strip myself yet, but it looks much easier to work with, as it uses 2020 smd sized leds, while still being pretty dense. (you can also get a 160 leds/m version, but I can't find a good source on Amazon atm).
Hope that helps!
10
u/techysec [SquidSoup] May 17 '25
Please put code within a code formatted text block when requesting help
1
u/Fantastic-Choice-518 May 18 '25
Sending signal twice can help.
0
u/ZeligD May 17 '25 edited May 18 '25
Try removing the ground from the board?
Edit: Downvote me all you want but I’ve had issues with these exact LED’s and signal loss when connected to two separate ground sources.
-3
u/mjconver May 17 '25
Your For loop needs to be inside loop(){}
-1
u/wvijay1957 May 19 '25
You need to add inside your setup():