First build and flash.
Cool project! Sadly I don’t have any tips, other than “please don’t try to take this on a plane.”
Right! I knew that…
there are many open-source pattern tools – take a look at https://kno.wled.ge/features/effects/#effects for example and see how you might adapt those to your board? 💙
This is huge help thank you!
its mostly not the hardware, its the math. most “fire” sketches online pick a fresh random() for every pixel every frame so it just jumps around. what makes it flow is smoothing between frames
stuff that helps a lot:
dont write pixels directly, ease toward a target. something like cur += (target - cur) / 8 each frame (or nblend / fadeToBlackBy if youre on fastled)
use noise instead of random. inoise8(pos*scale, time) drifts smoothly in space and time, really good for ice/water/earth. for fire the Fire2012 example is a solid base (heat array that cools and rises)
gamma correct. leds are super nonlinear at the low end so dim fades look steppy, a small 8bit gamma table fixes a lot of that
fixed frame rate with millis(), like 60fps, not random delay()s scattered around
lightning looks way better as a quick flash with a fast decay plus a couple smaller re-flashes than plain on/off
on the digispark keep an eye on ram, its only 512 bytes and every rgbw pixel takes 4. fastled rgbw support is pretty limited so if youre on adafruit neopixel just do the math yourself in 8bit ints
for diffusion, distance matters more than the material. even 5-10mm gap between led and diffuser makes a big difference. if the inlays cant get deeper try a thin white pla layer (0.4-0.6mm), sanded acrylic, or a piece of baking paper under the resin
Thats solid advice. I was using random logic throughout.
glad you found it useful cheers!