I am using an ArduinoMega2560 and have two LED strips(60) 2812B, I am trying use the Fire code and it works fine on two strips, but I realy want to have it run two different instances of Fire on the two strips so each strip is different. Is there a variable of some kind to make the fire random on each strip??? I have tried to figure it out but have had ZERO luck…How does one run several instances of fire with each one being random or different from the other?? Thanks!!! ( I have it setup so I am using two different pins for each strip)
I posted details of a lamp I did a while back where you can find code (just go through the comments here… https://plus.google.com/106626345342202981932/posts/EzNqqnRzW7x )
You will have to extract the info you need since I have a lot more than just a fire simulation there.
Thank you VERY VERY much sir!!!
Well, I looked at the code and the best I can figure out is that I think you modified the random() for each strip by incrementing a 1 to it? Is that right?
Hi @Jack_Keeney , sorry can’t remember the details but any changes I made to the random() is probably minor and not what you should really focus on.
The key changes are found in changes like these…
from: CRGB leds[NUM_LEDS];
to: CRGB leds[NUM_STRIPS]
[NUM_LEDS_PER_STRIP];
from: static byte heat[NUM_LEDS];
to: static byte heat[NUM_STRIPS][NUM_LEDS_PER_STRIP];
I suggest you open the original sketch from Mark and my modified sketch and do a line by line check of the function: void Fire2012WithPalette(){
I made a “Fireplace” out of a neopixel shield that might be very close to what you want; I wrote it from scratch but heavily borrowed from the fire simulation in the FastLED examples. See https://github.com/darrenpmeyer/Arduino-FireBoard/blob/master/FireBoard.ino