r/FastLED • u/TopHatRaver • Mar 01 '24
Support SimpleFastLED - Pastebin.com
I have 96 total LEDS on a single pin. I keep getting flashing bleed over into LEDS past my programming. For example, if I light up LEDS 0 - 12, they light fine but LEDS 13 - 15+ start flashing and flickering. This only happens using the FastLED library. I tried the Adafruit Strandtest example and it worked fine. I double checked the wiring and the solder joints and all looks good to me. I've turned the brightness up/down and the flickering still occurs. I'm using an Adafruit Trinket MO which I use all the time and never had this issue before. I do NOT have any resistors installed.
Any ideas?
6
u/sutaburosu [stavros] Mar 01 '24 edited Mar 01 '24
Given that the Neopixel library works fine, but FastLED exhibits problems with the same hardware, I would suspect that timings used for the LEDs are the root of the problem.
Experiment with the different LED types supported by FastLED, e.g. if you're currently using
WS2812BtryWS2811which emits slightly different timings.Edited to add: if you intended to post a link to your code on Pastebin, we can't see it.
2
u/Preyy Ground Loops: Part of this balanced breakfast Mar 01 '24
Share code. Are the leds past your lit section addressed at all? Is it always the same lights?
1
u/TopHatRaver Mar 01 '24
https://pastebin.com/ibSyiD8g
Sorry thought this was included in the original post. Super simple code
1
u/TopHatRaver Mar 02 '24
So I tried an ESP32 controller and had no flickering problems at all. I've used the Trinket M0 a dozen times and never experienced this problem. Also the Neopixel library works fine but the FastLED (my preferred) is giving me these issues. These are new LEDs so there must be something different about them causing the problem. Like a speed or timing issue is my guess.
1
u/TopHatRaver Mar 03 '24
So I finally figured it out! This line was causing the flickering. When I removed it, the flickering was gone.
1
u/Professional-Peak147 Mar 02 '24
Check the voltage level after 12 led, they are consuming power even if they are not lighted on, try to use more power power supply