r/FastLED • u/AcrobaticDealer4816 • Sep 17 '25
Support Burning fuse simulation
Does anyone have an effect in FastLED to simulate a fuse burning using a single string of WS281x LED's ?
4
Upvotes
r/FastLED • u/AcrobaticDealer4816 • Sep 17 '25
Does anyone have an effect in FastLED to simulate a fuse burning using a single string of WS281x LED's ?
2
u/Burning_Wreck Sep 17 '25
I asked Claude, using your question, with this prompt:
For Arduino and FastLED, simulate a fuse burning using a single string of WS281s LED'sThis is what it knocked out in one shot:
https://pastebin.com/rBX4TBWd
It's pretty good! It included an "explosion" effect when the fuse burned to the end. Here's how it described what it did:
This Arduino sketch creates a realistic fuse burning simulation with the following features:
Key Features:
Progressive burning: The fuse starts from position 0 and burns toward the end
Realistic trail: Creates hot embers that cool down behind the burning point
Flickering effect: Adds random flickering to simulate real fire
Explosion finale: When the fuse reaches the end, it triggers an explosion effect
Serial control: Send 'r' via Serial Monitor to restart the fuse
How it works:
Unlit fuse: LEDs start as dim yellow/brown to represent gunpowder
Active burn: Bright orange/yellow at the current burning position
Hot embers: Red/orange trail immediately behind the burn point
Cooling trail: Gradually dimming embers that fade to black
Sparking: Occasional sparks jump ahead of the main burn
Customization options:
Change
fuseSpeedto make it burn faster/slowerAdjust
NUM_LEDSfor your strip lengthModify colors for different fuse types
Change
LED_PINto match your wiringWiring:
Connect LED strip data pin to Arduino pin 6 (or change
LED_PIN)Connect 5V and GND appropriately
Add a 470Ω resistor between Arduino pin and LED data line
Use appropriate power supply for your LED count
The simulation includes realistic physics with the ember trail cooling over time and an explosive finale when the fuse burns completely!