r/FastLED • u/nickyonge • Sep 20 '24
Support FastLED strip flickering, even with data resist and decouple cap?
Enable HLS to view with audio, or disable this notification
Hi! My WS2812B LED strip is frequently flickering. I've googled around and seen a number of results saying that this can be resolved with a resistor or a decoupling capacitor. I've placed a 220Ω resistor on the data pin, and have a 10nF ceramic capacitor by my input to ground. (5V USB-C)
There are 38 LEDs. I've also tried looping the Vin and GND lines to connect at the end of the strip, but that doesn't seem to have an affect. Still flickery.
Powering this via USB, with LED control coming from a PWM-capable pin on an ATtiny84.
Source is at https://github.com/duckpondstudio/lumen-gallery, built via PlatformIO C++.
Any idea why this is happening?
(The LEDs in the box are also all higgledy piggledy, appearing random colours rather than solid or rainbow, but... one problem at a time!)
Thank you!
5
u/mfsamuel Sep 20 '24
What microcontroller are you using? Might need a logic level shifter if it is 3v logic.
3
u/nickyonge Sep 20 '24
For anyone looking later, I've also crossposted this to r/arduino, and there's suggestions there to limit total strip brightness / power consumption. Gonna try that.
6
u/Guitar-Inner Sep 21 '24
You're powering quite a few leds from usbc, seems like unstable voltage from too much power draw - you said from usb c but that doesn't matter unless you've got proper usb PD implemented. Try a different power supply.
4
u/webnerd Sep 21 '24
When I had this issue, it was because the data line was too close to other wires/metal. Try physically separating the data wire by 10mm.
3
u/toybuilder Sep 21 '24
Notice how it seems to do it when it's mostly at its brightest? That suggests inadequate power distribution - either the cabling or the supply.
1
u/Konjaks Sep 21 '24
Try a 100 - 220 ohm serial resistor
1
u/DeVoh Sep 21 '24
Are the controller and the led strip sharing a ground? Though you say you are powering via usb so I guess we can assume you are.. but just in case you have to share ground.
1
u/Ksetrajna108 Sep 21 '24
I ran into this problem. In my case it was using a WEMOS LOLIN32. Tried all kinds of stuff. Finally justified an oscilloscope. I observed extra pulses on the DOUT of the last WS2812. Solution was to make sure the LED driver interrupt was running on a separate core than the network stack
0
u/[deleted] Sep 20 '24
[deleted] — view deleted comment