SamSuka
bigclive
bigclive

patreon


Flame MKII.

I've replaced the pure random data flowing up the LEDs with a controlled alternation between bright and dim with minimum number of steps adjustable and a random element then added.

https://youtu.be/PEw5YxYeZ1I

I've also added a "drama" variable to vary the difference between the sprites and the core of the flame.  You can set it as a percentage value of intensity of the sprites, so that 5% would be very subtle and 90% would be a very bright sprite on a dim flame.

Subtlety is good.  In fact I may just revert back to the sprite based on pure random data at a low level like 25%.

Now I just have to decide how convincing a slight height undulation would be, and whether the sprites should stop at the upper height or flow past it.  I think a dim sprite flowing off the top of the flame should look OK.

Flame MKII.

Comments

My first flame effect on Arduino looked more like a light bulb burning out. Now I think it would be cool to have a regular light bulb that simulates a blow out then comes back on a couple seconds later. It would be just long enough to shake a fist at at it and tell it to go back on.

Jim

Here I am with my three LED 'pyramid mood' light and being happy with a PIC12F1572 doing a somewhat nicer sequence than the original unmarked 8-pin IC. And now your video makes me want to lay hands on one of these flame lights. Great video, great stuff!

Hagen

I think it may look better if there was a bias towards the lower LEDs, so the top one was lit less often.

Adam Pepper

A reasonably cheap noise generator that has been used for many years to generate flames is Perlin noise. Such as https://www.openprocessing.org/sketch/112601/#

Kim & Nix

Whewh! You keep coming up with more enhancements! Makes me speculate how long 'till it tidys the house and does the shopping.

not the same :( but I ordered this to look at -> https://www.amazon.co.uk/gp/product/B07YWLWT8L?ref=em_1p_1_ti&ref_=pe_19532881_500166641

This one looks more organic, maybe just a touch slower, or variations on the speed? I dont know programming so I know not what I ask.

Michael Thompson

The other day I stripped down an optic fibre xmas tree with the synchronous motor and the printed spinning disk that gave the flashing display and colours, make me laugh how complicated the electronics would be to do the same thing. Nice programming Clive. I wounder if it would be better having more of the LEDs concentrated near the top to emulate a flame in a lamp. When I was in Louisbourg Nova Scotia the fort lamps they had used large seashells that had been scraped thin as the glass.

John Harrison

Robert Around that time, for fun I added an inverter to the screen output on my ZX81 it was not very good driving an old CRT screen white with black writing.

John Harrison

Any chance you could post the algorithm? Maybe as pseudo code?

Jeremy Impson

I haven't heard of "Sprites" since my days of programming Commodore 64 in Basic. The flame does look more realistic.


More Creators