video://www.youtube.com/watch?v=IfCKTKWgKeg
Here’s a great example of how you can make a simulated LED flame using Arduino and some LEDs. If you are looking for that special flame effect for this Halloween without all the really hazardous fire, this might be a great alternative to real fire.
The code accepts an arbitrary number of LED outputs, with a minimum brightness for the general glow. A peak brightness and traversal time are generated randomly, and the timed traversal smoothly walks across the outputs. The peak falls off, so the effect is of a smooth motion of th