Sorry for the poor video quality. Because of the flash rate and the way a CMOS senor works, it cannot record the true effect.
This lightning effect uses addressable LEDs. The code generates a random number of flashes, a random brightness level for each flash, a random delay between flashes, and a random delay between the overall effect. See the code after the break.
I started work on a binary clock. I found some code by Dennis Cwik and tweaked it to be able to rapidly advance the time as a crude way to set the clock. What I don’t like about this build is it is using all the digital outs. I think I will rewrite it to use addressable LEDs instead. That will only use one digital out and I can do so much more and look better as well. But for now, here’s what I have.
In December, a friend approached me and asked if I could create a visual effect for him. The requirements are to flash a strobe light, activate only when someone is in front of the effect for a couple of seconds, and wait for the person to walk away before it can be activated again. It had to be hidden in a two-way mirror to illuminate a picture behind the glass.
Here’s the circuit I came up with. Unfortunately I never got to see it in action.