I recently realized an attiny13a was driving a flashlight driver board of mine. This has inspired me to code a custom driver program. So far I hope I'm on the right track with my program, but I need help with one feature:
at the 30s mark he engages random strobe. Isn't it brutal? How do I code this madness? If someone could generalize it for me that'd be awesome.
interval = random(min, max); // fill in appropiate values for min and max Note they are milliseconds.
In an elaborated version you could use different timing or fixed for the OFF and for the ON phase of the LEDs or take care that ON + OFF is a fixed time
(fixed frequency, random duty cycle)
Thanks for the responses. I had tried a delay(random(min,max)) before but didn't like the effect, probably the 5mm led was too weak to imitate a flashlight's strobe. Anyways thanks again!