Have a need to emulate a flickering light, kinda like a faulty fluorescent. My first attempt (using a pic) has an 8 bit pseudorandom sequence generator the output being compared with the result of an a/d conversion of a pot (over turns the light on, under turns it off) hence am able to vary the average duty cycle, plus another pot controlling total loop time to slow down or speed up the flicker. It doesn't look very convincing - sure it all works as coded, but it just doesn't look random enough. Dunno if the brain can remember an 8 bit pseudorandom sequence or what. Unfortunately this has to drive a big incandescent (via an opto and a triac), so a "real" faulty fluro is out of the question. Any better ideas ? M
- posted
17 years ago