Re: 22.6us and ~10mips to create pink noise real time



Depending on the accuracy you want in the spectral content of the
"pink" noise, to do it digitally you'll need a random generator (white
noise) and "a few" stages of IIR biquads. You could use single-pole
filter stages, but as I recall when I did it years ago, I decided the
biquads were computationally slightly more efficient. (You may even
find my name on a set of pink filter pole and zero locations that's
still floating around in cyberspace. Every once in a while someone
writes to ask me about them.) Some of the poles are at a very tiny
fraction of the sample frequency, so have to be done with high
precision math for good results. I _seriously_ doubt you'll do it in
your Atmel at a couple hundred instructions per sample. In a DSP with
hw MAC you should be able to do a good job in a hundred instructions,
plus or minus--even fifty instructions would let you do a few poles &
zeros.

But...If you don't need super-accurate "pinkness" you could easily
generate a pseudorandom bitstream in the atmel (excellent and
repeatable "whiteness" and high amplitude, and ample bandwidth if
that's all the AVR is doing) and filter that with a few RC stages. You
can get 1% caps (C0G ceramics) and 1% or better resistors, which may
very well provide adequate or even ample accuracy and stability for
your purposes. The board area and placement cost will cost more than
the parts you put on it, most likely.

Cheers,
Tom

.



Relevant Pages

  • Re: randomized white noise = white noise?
    ... To have a big memory with the noise you want pre-stored. ... minutes, or less, of loud pink or white noise! ... a few different "types" of noise: white, pink, arbitrarily filtered, ... Then filter that with a relatively simple RC filter with poles ...
    (sci.electronics.design)
  • Re: Computer room decor?
    ... >>> The number and noise of the computers in my lounge has reached ... >>> room that's painted shocking pink. ... >>> Please can anyone suggest any designs and colour schemes that would be ... noise of the machines (I only have three but as soon as I turn off the ...
    (uk.comp.homebuilt)
  • Re: Strange BB issue
    ... Last two poles showed water ingress and green ... Whoever recommended routerstats was a life saver as the engineers who ... called could see the noise quite clearly and acted on it, ... I would suggest getting the next engineer to do a PQ test, if one hasn't been done already. ...
    (uk.telecom.broadband)
  • Re: IIR Filter Realizations
    ... zeroes are added to the delays corresponding to the poles. ... poles) will boost no quantization noise. ... John, it's the opposite. ... poles will result in a lot of gain which will cause saturation at ...
    (comp.dsp)
  • Re: PID controller with second derivative?
    ... but forget about noise for now. ... I see application every day where the feed back resolution is only 0.0001m but even if the feedback resolution is .00001m there is still problems. ... most system can be modeled as having just one or two poles so a normal PID will do well enough until you start to push it to point where higher order un-modeled poles start to affect control. ...
    (comp.dsp)

Quantcast