I’m just looking for an SMD LED I can solder onto the LilyPad LED boards to have a flickering candle effect.
The end goal is to make the [Twinkling Trick-or-Treat bag, and have the Cat and Jack-o-lantern with the cat’s eyes blinking (I have the code on the ATTiny for that) and then have the LEDs in the Jack-o-Lantern flickering like a candle (I currently have them on solid, because I’m very new to coding, and I’m having problems getting two sets of LEDs doing two different things at the same time).](Twinkling Trick or Treat Bag - SparkFun Learn)
And by using PWM via Arduino code, you can make them phase in and out, and flicker like a flame via trial and error. We use similar code on the LilyTwinkle:
Take a look at the firmware here and tweak the values a bit. This code drivers multiple LEDs differently, similar to what I believe you are looking for in your project: https://github.com/sparkfun/LilyTiny_Li … winkle.ino
Sorry to let this one sit for so long, got busy with other projects.
I was hoping for a hardware solution, because I’m really new to coding and completely self taught (meaning I’ve read a few books and websites, and watched some YouTube videos. So there are some huge gaps in my programming skills and knowledge).
I’ve made the [Twinkling Trick-or-Treat bag for my kids. I also made a little Halloween decoration I call “Monster Eyes” that’s just two LEDs in parallel driven by an ATTiny85 that makes them look like they’re blinking (2-5 seconds on, 1/4-1/2 second off).
The code for the “Monster Eyes” is as simple as you’d imagine, and there’s doubtless better ways to do it, but it’s what I managed to kludge together. The problem I’m running into is making a second set of LED do something at the same time as the first set blinks. My daughter chose the Cat and Jack-o-lantern pattern, and I reprogrammed the ATTiny in the Lilytwinkle to blink the cat’s eyes, but the Jack-o-lantern is just on solid, so I was hoping to swap out those LEDs to candle flicker LEDs, but I can’t find them anywhere.
My son picked the Ghosts pattern, and I would like to get the LEDs for the ghosts eyes blinking separately, but again having a hard time figuring how to make the code do that.