# Has anybody worked on an FastLED simulator?

**URL:** <https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425>\
**Category:** FastLED Archive\
**Tags:** gplus\
**Created:** [August 13, 2014, 6:16pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425 "2014-08-13T18:16:55Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Wilson1](https://forum.makerforums.info/letter_avatar/daniel_wilson1/32/5_5575768a8748004e209b776fc1b2916d.png) [@Daniel\_Wilson1](https://forum.makerforums.info/u/Daniel_Wilson1)\
**Post date:** [August 13, 2014, 6:16pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/1 "2014-08-13T18:16:55Z")

</div>

Has anybody worked on an FastLED simulator? I imagine a little GUI where you “plug” strips into an graphical MCU, then lay out the geometry and connections of the strips and run the code to preview the displays?

---

<div class="post-metadata">

**Author:** ![Daniel\_Garcia](https://forum.makerforums.info/letter_avatar/daniel_garcia/32/5_5575768a8748004e209b776fc1b2916d.png) [@Daniel\_Garcia](https://forum.makerforums.info/u/Daniel_Garcia)\
**Post date:** [August 13, 2014, 6:18pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/2 "2014-08-13T18:18:01Z")

</div>

It’s on the list of things to do, but haven’t had a chance to do it yet.

---

<div class="post-metadata">

**Author:** ![Kelvin\_Mead](https://forum.makerforums.info/letter_avatar/kelvin_mead/32/5_5575768a8748004e209b776fc1b2916d.png) [@Kelvin\_Mead](https://forum.makerforums.info/u/Kelvin_Mead)\
**Post date:** [August 13, 2014, 7:40pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/3 "2014-08-13T19:40:41Z")

</div>

I bought a Tim for this purpose. Not software. But I attached a teensy to it, and you don’t need a desk etc, just laptop, tv, code and see.

---

<div class="post-metadata">

**Author:** ![Kelvin\_Mead](https://forum.makerforums.info/letter_avatar/kelvin_mead/32/5_5575768a8748004e209b776fc1b2916d.png) [@Kelvin\_Mead](https://forum.makerforums.info/u/Kelvin_Mead)\
**Post date:** [August 13, 2014, 7:41pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/4 "2014-08-13T19:41:32Z")

</div>

[http://wyolum.com/the-intelligent-matrix-tim/](http://wyolum.com/the-intelligent-matrix-tim/)

---

<div class="post-metadata">

**Author:** ![matthi\_DELight](https://forum.makerforums.info/letter_avatar/matthi_delight/32/5_5575768a8748004e209b776fc1b2916d.png) [@matthi\_DELight](https://forum.makerforums.info/u/matthi_DELight)\
**Post date:** [August 13, 2014, 11:16pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/5 "2014-08-13T23:16:56Z")

</div>

Hi guys, is it something like that what you saerched for? [http://codepen.io/dougalcampbell/pen/fnjFu](http://codepen.io/dougalcampbell/pen/fnjFu)  
i found it today, but i actually don’t know how to use it (but i will) i’m very new in programming, but since a year i work hard, because i use the ws2811 chipset in my installations.i do things like this led doorframe [http://youtu.be/7CDDdvxf4NA](http://youtu.be/7CDDdvxf4NA)  
but most code is not written by myself until the moment. but i’m a good user. i learn most in your fastled community and on adafruits learning system. Thank you for sharing!!!

---

<div class="post-metadata">

**Author:** ![Seph\_Aliquo](https://forum.makerforums.info/letter_avatar/seph_aliquo/32/5_5575768a8748004e209b776fc1b2916d.png) [@Seph\_Aliquo](https://forum.makerforums.info/u/Seph_Aliquo)\
**Post date:** [August 14, 2014, 1:51am UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/6 "2014-08-14T01:51:38Z")

</div>

There’s an openpixelcontrol simulator but that’s not nearly the same thing

---

<div class="post-metadata">

**Author:** ![Mein\_Leben](https://forum.makerforums.info/letter_avatar/mein_leben/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mein\_Leben](https://forum.makerforums.info/u/Mein_Leben)\
**Post date:** [August 14, 2014, 6:03am UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/7 "2014-08-14T06:03:34Z")

</div>

I’m working on a C+ swapin mock / display sort of thing. I just picked it up after a few… uhm… a while.

A first attempt produced a png of the led vector with the y axis being time. It worked okay, not great, not even good, but okay.

My plan of record is to stub out the fast\* code like FastSPI\_LED.show(); to write out an IR that is later displayed via a rube Goldberg machine and webgl rather than doing a cycle simulation of an Arduino. Currently It’s not that great or functional. The first generation will be square boxes rather than any attempt at  
proper light field handling.

Now that I’m thing about it, doing some sort of povray thing might work out well…

What sort of geometries are you interested in?

---

<div class="post-metadata">

**Author:** ![Aaron\_Liddiment](https://forum.makerforums.info/letter_avatar/aaron_liddiment/32/5_5575768a8748004e209b776fc1b2916d.png) [@Aaron\_Liddiment](https://forum.makerforums.info/u/Aaron_Liddiment)\
**Post date:** [August 14, 2014, 8:41pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/8 "2014-08-14T20:41:02Z")

</div>

I have a FastLED stub project for MS Visual Studio that I can add my Arduino FastLED modules too. Then I can build them and see a simulation of the LED display in a window. I have 3 defines that control width, height & layout. It’s how I was able to test my Matrix, Text & Sprite code on all manner of LED layouts without lifting a soldering iron 😉  
I have buttons that allow me to call Setup & Loop.

---

<div class="post-metadata">

**Author:** ![Daniel\_Wilson1](https://forum.makerforums.info/letter_avatar/daniel_wilson1/32/5_5575768a8748004e209b776fc1b2916d.png) [@Daniel\_Wilson1](https://forum.makerforums.info/u/Daniel_Wilson1)\
**Post date:** [August 15, 2014, 6:37am UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/9 "2014-08-15T06:37:26Z")

</div>

Thanks for all the great advice!

---

<div class="post-metadata">

**Author:** ![dougal](https://forum.makerforums.info/letter_avatar/dougal/32/5_5575768a8748004e209b776fc1b2916d.png) [@dougal](https://forum.makerforums.info/u/dougal)\
**Post date:** [April 17, 2015, 1:16pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/10 "2015-04-17T13:16:16Z")

</div>

Hi! I wrote the browser simulator mentioned above (@matthi_DELight pointed to the codepen, but the main page is here: [http://dougalcampbell.github.io/LEDStrip/](http://dougalcampbell.github.io/LEDStrip/)).

I was actually about to contact you anyways to ask if you mind me including versions of your animations (BouncingBalls, Lightning, etc). I’ve already translated BouncingBalls to JavaScript. But you didn’t put any licensing info on your code, so I wanted to ask permission before I added it to my github repo.

I had already been toying with the idea of adding functions to my ledstrip.js code to give it an API similar to Adafruit’s NeoPixel library. And I was just starting to think about doing something similar for FastLED.

I’ve also thought about using processing.js to make it easier to write modules that would be easier to port back and forth between browser testing and Arduino code. But I’ll have to do more research on that to see how well it would work out. In my Copious Free Time™, of course…

---

<div class="post-metadata">

**Author:** ![Daniel\_Wilson1](https://forum.makerforums.info/letter_avatar/daniel_wilson1/32/5_5575768a8748004e209b776fc1b2916d.png) [@Daniel\_Wilson1](https://forum.makerforums.info/u/Daniel_Wilson1)\
**Post date:** [April 20, 2015, 10:24pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/11 "2015-04-20T22:24:45Z")

</div>

Hi Dougal. You are welcome to use my code however you like. Thanks for working on this.

---

<div class="post-metadata">

**Author:** ![dougal](https://forum.makerforums.info/letter_avatar/dougal/32/5_5575768a8748004e209b776fc1b2916d.png) [@dougal](https://forum.makerforums.info/u/dougal)\
**Post date:** [April 20, 2015, 11:32pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/12 "2015-04-20T23:32:36Z")

</div>

Thank you! I will update my Github repo soon!

---

<div class="post-metadata">

**Author:** ![dougal](https://forum.makerforums.info/letter_avatar/dougal/32/5_5575768a8748004e209b776fc1b2916d.png) [@dougal](https://forum.makerforums.info/u/dougal)\
**Post date:** [April 21, 2015, 3:06am UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/13 "2015-04-21T03:06:42Z")

</div>

Okay, changes are live now. You can now select the Bouncing Balls demo:  
[http://dougalcampbell.github.io/LEDStrip/](http://dougalcampbell.github.io/LEDStrip/)

I’ll start converting the other demos soon-ish.

---

<div class="post-metadata">

**Author:** ![dougal](https://forum.makerforums.info/letter_avatar/dougal/32/5_5575768a8748004e209b776fc1b2916d.png) [@dougal](https://forum.makerforums.info/u/dougal)\
**Post date:** [May 14, 2015, 8:18pm UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/14 "2015-05-14T20:18:30Z")

</div>

I finally got around to adding Lightning and TwinkleSparkle. Let me know what you think!

Due the async nature of JavaScript, there’s not a simple procedural way to emulate delay() calls. So I had to do a major refactoring of the Lightning code to use a state machine approach.

I need to do some other refactoring one day. The way I have things now, I use a lot of ‘this.something’ references in the animation code. I could use a module pattern more like the main ledstrip.js code to reduce that. Also, I should probably create shims for common functions in the Adafruit NeoPixel and FastLED libraries.

But that stuff will have to wait for another day.

---

<div class="post-metadata">

**Author:** ![Daniel\_Wilson1](https://forum.makerforums.info/letter_avatar/daniel_wilson1/32/5_5575768a8748004e209b776fc1b2916d.png) [@Daniel\_Wilson1](https://forum.makerforums.info/u/Daniel_Wilson1)\
**Post date:** [May 15, 2015, 6:20am UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/15 "2015-05-15T06:20:31Z")

</div>

Wow, great work Dougal! That looks awesome.

---

<div class="post-metadata">

**Author:** ![opentech](https://forum.makerforums.info/user_avatar/forum.makerforums.info/opentech/32/104511_2.png) [@opentech](https://forum.makerforums.info/u/opentech)\
**Post date:** [July 18, 2021, 11:17am UTC](https://forum.makerforums.info/t/has-anybody-worked-on-an-fastled-simulator/60425/16 "2021-07-18T11:17:22Z")

</div>

I have a few suggestions. Please have a look at the FastLED simulations.

> **[FastLED: DemoReel100 Code for Arduino with Simulation](https://wokwi.com/arduino/libraries/FastLED/DemoReel100)**
>
> Run Arduino library code examples in your browser, using advanced simulation technology.

Visit the wokwi home page for more information

Bonus colection fo FastLED simulations!

> **[100 beautiful FastLED Projects-Wokwi Arduino Simulator 2021](https://www.hackster.io/ldir-arcostasi-urish-sutaburosu-stevesigma-stepko-on-wokwi-discord/100-beautiful-fastled-projects-wokwi-arduino-simulator-2021-39fcc0)**
>
> Kindle your creativity with FastLED projects on the Arduino platform in 2021. Wokwi Arduino simulator provides a platform to simulate online By @ldir, @arcostasi, @urish, @sutaburosu, @stevesigma @stepko on wokwi discord.
