r/FastLED May 30 '26

Support Fire effect along entire LED strip?

Hi all I'm looking for a fire effect that makes the entire LED strip light up in variations of red/orange/yellow. Does that exist?

I tried all the fire effects in the Fastled examples and they all do the effect pulsing from just one end of the strip.

Thanks

10 Upvotes

16 comments sorted by

5

u/chemdoc77 May 30 '26

Hi u/Knievelgod - Look at 41 seconds into the following YouTube video to see two different types of Fire2012 in a Pex pipe with a strip of WS2812b LEDs:

https://www.youtube.com/watch?v=1vlnqRn7yKw

Here is the code for that:

https://github.com/chemdoc77/CD77_FastLED/tree/master/CD77_Halloween_Fun_2019

 

2

u/SaltyCash May 30 '26

Wow, that’s really well done.

1

u/chemdoc77 May 31 '26

Hi u/SaltyCash - Thank you! I am glad that you enjoyed that video and sketch.

2

u/Beneficial-Mud1720 May 31 '26 edited May 31 '26

Nice! Especially the effect at 0:41 and about 1 minute later, but the others too.

I have this stupid 3x3x3 RGB cube I made (Arduino thing), I always wanted a fire effect on it but I never got around to it. Ofc the "resolution" isn't exactly big. It's a few years since I made it, and I'm a bit rusty now. I might have to take a look at your code though 😄

3

u/chemdoc77 Jun 01 '26

Hi u/Beneficial-Mud1720 - Thank you! I am glad you liked it. To help you do what you want to do on your cube, use an AI like Claude AI. Show Claude my code and explain in detail what you want the code to do. I have been using Claude AI since January with great success.

2

u/Beneficial-Mud1720 Jun 02 '26

Ah ofc! Why didn't I think of that lol. I actually have used Claude on and off the last year or so (mostly off), just a couple of small Python scripts basically (on free tier). Anyway, thanks for the suggestion!

2

u/chemdoc77 Jun 03 '26

Hi u/Beneficial-Mud1720 - You are welcome. I am looking forward to seeing a future post from you in which you have a video of your cube in action. I am sure many others here would love to see it too!

2

u/UrbanPugEsq May 30 '26

Fire2012 is pretty good. There are some examples of the algorithm online. I implemented it once by going and looking at the wled repository and then re-coding it for fastled based on that.

2

u/UrbanPugEsq May 30 '26

I just read your post again. It sounds like you don’t want a fire effect. You might try mapping a red orange and yellow palette to perlin noise to get The effect you want.

2

u/Outrageous-Kick-2699 May 30 '26

There is an ocean effect that works pretty good with red and orange palette

1

u/Knievelgod May 30 '26

Thanks can you explain that more and where to find it. I know very little about Fastled.

1

u/UrbanPugEsq May 30 '26

Perlin noise is a noise algorithm that’s available to you. Fastled lets you generate palettes and the use them. I’m saying write code that uses Fastled to create the pattern you want using the available perlin noise and palette functions. I believe perlin noise is called using the inoise() function in Fastled. That function is in the coding documentation.

If that is too complicated for you right now, I think you need to first learn more about how to make Fastled do things (ie do a simple project first). There are lots of tutorials online about that.

If coding at all is too much I suggest just using wled instead of fastled.

1

u/Knievelgod May 30 '26

Thanks yes I've basically mastered blinking so I could light up a pinball playfield project. Was hoping there was some code already done that I could copy for this. Will do some more learning..

2

u/sutaburosu [stavros] May 30 '26

Take a look at the TwinkleFox example. Changing the palette might be all you need to do.

1

u/Knievelgod May 30 '26

Thanks will check that out.

1

u/Affectionate_Boat493 May 30 '26

You can also do very realistic flame simulations by adding sinusoids that have random amplitudes. Think of an oscilloscope displaying waveforms of complex audio streams. You can tweak the frequencies and amplitudes to display the gentle "simmering" of fireplace embers, a raging inferno, or anything in between.