EmbeddedRelated.com
Forums

Flicker algorithm help

Started by John B January 18, 2006
On 22/01/2006 the venerable Wim Lewis etched in runes:

> In article <43ce7a19$0$823$4c56ba96@master.news.zetnet.net>, > John B <spamj_baraclough@blockerzetnet.co.uk> wrote: > > I am just starting a small design for amateur theatre group. They want > > me to build a camp-fire simulator. > > > [...] > > > > Does anyone out there have a good algorithm to simulate the flickering > > of a camp-fire, or will a simple pseudo-random sequence be sufficient? > > Here's an article with some info on simulating candle flicker. > http://instruct1.cit.cornell.edu/courses/eceprojectsland/STUDENTPROJ/2001to2002/pc59/ > > The basic answer is a pseudo-random sequence with a 1-pole low pass > filter at some lowish frequency. > > That URL's from my bookmarks, but I think I found it by looking through some > of the same websites people are mentioning elsewhere in this thread :-)
Thanks Wim. That looks really useful. Code is in C too so conversion to AVR should be a breeze. -- John B