GithubHelp home page GithubHelp logo

flame's Introduction

Nicht verbrennen!

flame.ino

This is a small arduino sketch to drive a string of WS2812 LEDs wound around a tube, to simulate a flaming torch.

I have carried around the torch on various events and it has proven quite popular and served as inspiration for other similiar builds, see for example the work of Lukas, who expanded on the idea and added message scrolling: https://github.com/plan44/messagetorch

This code is built for 5m LED strip with 64 led/m. The circumference of the tube is about 17-20 cm, so that after 12 leds one winding is complete.

Originally there were some funky problems since for larger numbers of LEDs the rendering code tends to interfere with the bootloader activation since the "Catarina" Bootloader relies on some values in very specific memory locations to decide if it starts the main application or not. This value was prone to get clobbered by the flame rendering code, in extreme cases it even required to reflash your leonardo via ISP.

I now have implemented a somewhat ugly workaround. By strategically dis- and re-enabling interrupts and checking for the bootloader-entering-condition at the beginning of loop() the code now makes entering the bootloader via the IDE a lot more reliable.

I tried to keep the code clean and have the most important values as defines, so that it can be adjusted to different led layouts.

Have fun! Simon

flame's People

Contributors

simon-budig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.