Test of LED flame software. (Patreon)
Content
I've written the base PIC assembly code to run the LEDs on the original flame PCB with wire jumpers to the original microcontrollers pads.
Initially I just had a simple shift register chasing random data up the LEDs, but it was too harsh. So I've rewritten the code to pulse width modulate two separate output patterns against each other with a 50/50 intensity share.
The effect shown is random data being chased up against a solid glow, but I'm thinking of writing the software to gently ramp a bar up and down to random heights while simultaneously chasing up solid sprites of random lengths.
Depending on how well it works, the end result will not have a detectable repeating pattern.
I've already discovered a trick that they missed in the original design. The PIC12F629 I'm using can only drive the LEDs on five of its output pins, so the bottom LED is just running off a 100 ohm resistor and modulates up and down with the ratio of other LEDs lit. It also caps the boost circuit's voltage when the processor is not powering any LEDs or if it were to lock up for some reason. (The circuit is using the watchdog to force a reset if it crashes.)
Files
Previews only