Author Options:

Twinlking LEDs? Answered

Hi there.
I need to know the code to program about 12 white LEDs on arduino for making them randomly twinkle or something in that nature. I'm currently working on a Disney inspired project in which I recreate one of their firework shows on a model of Sleeping Beauty Castle i made. At points in their shows, there are scattered bright LEDs on the castle that twinkle randomly and fast. I want that effect on my castle too. I also wanted to know how to program a tri color LED strip that i can use to recreate lighting in the show too. Any help is very appreciated! Thanks!!!



Antzy Carmasaic

6 years ago

There are 2 kinds of tri-colour LED strips: one with addressable individual LEDs(http://learn.adafruit.com/digital-led-strip) and other is analog LED strip(http://learn.adafruit.com/rgb-led-strips). The addressable one lets you set colour for each individual LED while analog only lets you set a single colour at a a time for all the LEDs in the strip.

You need the first one(it's costlier). Go through LadyAda's tutorials on it I liked above and if you have basic programming skills, you can program an Arduino to produce random colours for each LED.