Skip to content

Bitflame is an algorithm to generate non-repeating flames on a matrix. It can be used to generate gif of arbitrary length and size or it can be used to power a display with a microcontroller.

License

Notifications You must be signed in to change notification settings

miaucl/bitflame

Repository files navigation

bitflame

Bitflame has two parts, a simulation written in python .ipynb to proof the concept, test and generate GIFs. The second part is a C++ implementation targeting the Arduino platform. It is available as Arduino Library and can be imported into any project. It is a pure software library and can be adapted to any display as demonstrated in the examples.

Demo

Some demo GIFs create with the Python notebook and C++. You can find all example GIFs in the media folder.

16x16 Matrix UART (C++)

From examples. (My 16x16 matrix has some dead pixels, ignore them ;))

Real 1 Real 2 Real 3

GIFs from Simulation (Python)

Slow Flames

Standard set of parameters.

Slow 1 (10x10) Slow 2 (20x20) Slow 3 (40x40)

Fast Flames

More noise flames, look less alive but give a nervous feeling for afar.

Fast 1 (10x10) Fast 2 (20x20) Fast 3 (40x40)

Different Sizes

Display of variations when changing the height with different parameters.

Size 1 (10x20) Size 2 (20x20) Size 3 (30x20) Size 4 (40x20) Size 5 (50x20) Size 6 (60x20)

Candles

Small matrices to simulate candles.

Candle 1 (6x3) Candle 2 (8x4) Candle 3 (10x6)

Large

Some large examples with different parameters.

Large 1 (100x100) Large 2 (100x100) Large 3 (100x100)

Faded

More detailed and more calculation needed.

Faded 1 (40x40) Faded 2 (100x100) Faded 3 (120x320)


Builds

Builds using this library.

Fire place

The C++ implementation has been used to create a small Feather powered fire place. The 3D print files are available on Thingiverse together with a list of components used.

Fire place 1 Fire place 2 Fire place 3

Link to media folder

About

Bitflame is an algorithm to generate non-repeating flames on a matrix. It can be used to generate gif of arbitrary length and size or it can be used to power a display with a microcontroller.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks