Electronicdesign 6904 Promo

Build A Simple Precision Pink-Noise Generator

Jan. 31, 2014
Using a pseudorandom sequence (PRS) generator and some software, you can build a pink-noise generator (equal energy per octave) with 1 dB performance over the audio band, in addition to the original white-noise generator.

White noise generators commonly are used for testing purposes such as setting the noise level in bit error rate (BER) measurements, providing broadband signals for vibration analysis, and performing rapid filter-performance evaluation using fast Fourier transforms (FFTs), among other applications.

Download this article in .PDF format
This file type includes high resolution graphics and schematics when applicapable.

Related Articles

Audio applications that use noise sources such as background noise or room balancing in a public address system are more likely to use “pink” noise. Pink noise is characterized by each octave having the same amount of power, so the range from 100 to 200 Hz has the same power as the range from 1.0 to 2.0 kHz or 10 to 20 kHz.

The pink noise source shown here is based on a pseudorandom sequence (PRS) generator, much like the white-noise source in an earlier article, “Well-Controlled Audio-Band Noise Source Uses Basic Microcontroller Filtering.”1

The white-noise output is random (i.e., uniform in frequency and Gaussian in amplitude) if the noise is filtered at a point less than 5% of the PRS clock frequency. A pink-noise generator for the audio band (20 Hz to 20 kHz) meets the randomness requirement and reshapes the frequency content of the analog output.

The frequency characteristic of pink noise falls off at a rate of 3 dB per octave or 10 dB per decade. This is half of the rate of a single-pole low-pass filter. The filter circuit is a little more complex than a simple RC filter. Numerous examples of pink-noise filters can be found using a Google search. The one used here is adapted from the 1976 National Semiconductor Audio Handbook (long out of print but often reproduced).

The values were adjusted to provide closer-to-nominal performance at the upper end and to increase the load impedance of the filter to the digital output. The complete schematic, implemented using a Cypress CY8C24423 plus a few external parts, provides both white- and pink-noise sources (Fig. 1). The code is limited to setting the polynomial value of the PRS plus a few start commands.

1. The PRS-based circuit provides both white- and pink-noise outputs over the audio band. It is an enhancement of a previously published white-noise-only design.

The PRS length was increased compared to the earlier white-noise design so the sequence’s repeat length is longer than the bandwidth of my spectrum analyzer. Any sequence 24 bits or longer would be suitable for audio applications. The output of the 3-dB/octave filter appears quite small (on an oscilloscope), so a programmable gain amplifier (PGA) was added with 24-dB gain. The PGA output also provides a buffer capable of driving a 32-Ω load (Fig. 2).

2. The pink-noise output amplitude versus frequency is within 1 dB of the ideal –3-dB/octave slope over the standard audio band.

The output follows the nominal –3-dB/octave slope to within 1.0 dB from 20 Hz to 20 kHz. If attenuation of the signal below 20 Hz is required, a 10-Hz, single-pole, high-pass filter at the input to the PGA is sufficient. If attenuation of the signal above 20 kHz is required, the output of the PGA can be rerouted to the input of the band-pass filter. This is just a matter of selecting a different filter input in the Cypress PSoC Designer development tool.

Reference

“Well-Controlled Audio-Band Noise Source Uses Basic Microcontroller Filtering,” Dennis Seguine, http://electronicdesign.com/digital-ics/well-controlled-audio-band-noise-source-uses-basic-microcontroller-filtering

Dennis Seguine is a member of the technical staff at Cypress Semiconductor Corp. He has been an applications engineer for Cypress Semiconductor since 2000, following many years of analog, embedded system, and software design for the underwater, instrumentation, and medical industries. He can be reached at [email protected].

Sponsored Recommendations

What are the Important Considerations when Assessing Cobot Safety?

April 16, 2024
A review of the requirements of ISO/TS 15066 and how they fit in with ISO 10218-1 and 10218-2 a consideration the complexities of collaboration.

Wire & Cable Cutting Digi-Spool® Service

April 16, 2024
Explore DigiKey’s Digi-Spool® professional cutting service for efficient and precise wire and cable management. Custom-cut to your exact specifications for a variety of cable ...

DigiKey Factory Tomorrow Season 3: Sustainable Manufacturing

April 16, 2024
Industry 4.0 is helping manufacturers develop and integrate technologies such as AI, edge computing and connectivity for the factories of tomorrow. Learn more at DigiKey today...

Connectivity – The Backbone of Sustainable Automation

April 16, 2024
Advanced interfaces for signals, data, and electrical power are essential. They help save resources and costs when networking production equipment.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!