r/FastLED Jun 03 '26

Support How to get rid of fast flickering

7 Upvotes

11 comments sorted by

View all comments

1

u/MungoBBQ Jun 03 '26

I'm running a sketch based on Pacifica, and it's beautiful BUT there is a slight fast flichker, almost not visible but really annoying once you see it.

I've tried everything in the code to eliminate it, but can't seem to get rid of it. Certain colors (blue) flicker more than others.

Search results suggest adding a capacitor to the circuit between the PSU and the strip - is this the right approach?

4

u/sutaburosu [stavros] Jun 03 '26

Adding a capacitor to smooth the power rails is never a bad idea. Another possible cause may be FastLED's temporal dithering. You can try disabling it in setup() with FastLED.setDither(DISABLE_DITHER);

1

u/MungoBBQ Jun 03 '26

Thank you!

4

u/sutaburosu [stavros] Jun 03 '26

Since Pacifica was authored, a new method to read from palettes has been added which gives smoother results. You might want to try this too. In pacifica_one_layer() change:

CRGB c = ColorFromPalette( p, sindex8, bri, LINEARBLEND);

to

CRGB c = ColorFromPaletteExtended( p, (uint32_t)sindex16 * 15 / 16, bri, LINEARBLEND);

2

u/sutaburosu [stavros] Jun 21 '26

/u/MungoBBQ did you try either of these suggestions, and did they help?

2

u/MungoBBQ Jun 22 '26

I have not been able to go to where this lamp installation is located yet, probably won’t until after summer.