I just received an email from a reader of Practical Electronics magazine in the UK. This reader, who we will call Simon (because that’s his name), had recently run across my old Bodacious Acoustic Diagnostic Astoundingly Superior Spectromatic (BADASS) display project — as illustrated in this video with my chum Ivan pressing the buttons — and was asking for details regarding the use of the MSGEQ7 audio spectrum analyzer IC.
Just in case you’ve never heard of the MSGEQ7 audio spectrum analyzer, this little beauty is a cheap-and-cheerful 8-pin dual in-line (DIL) integrated circuit that accepts an audio stream as input and splits it into seven different “frequency buckets.” You can then use your microcontroller to read the values in these frequency buckets to see how much base, middle, treble, etc. you have on a moment-by-moment basis, and you can use these values to drive technicolor LED displays.
When I created the BADASS display, I took the stereo output from the headphone socket on an iPod (running at about 70% full volume), fed the two channels into two MSGEQ7 devices, and then used an Arduino Mega to loop around reading the frequency values from the MSGEQ7s and displaying them on 16 strips of NeoPixel tricolor LEDs.
If you are interested, you can click here to see the code I’m using in the BADASS display. To be honest, it’s been ages since I looked at this, and I have to say that I’m quite impressed how small it is for all the effects I manage to squeeze out of it.
More recently, in the case of my Awesome Audio-Reactive Artifact — as illustrated in this video with my chum Ronnie pressing the buttons — I used a single MSGEQ7 being fed by an ADMP401-based INMP401 MEMS Microphone Breakout Board (BOB), which costs $10.95 from the guys and gals at SparkFun.
Fortunately for Simon, I’ve written quite a few columns on the MSGEQ7 over the past few years, with the following being the most relevant for someone who is just starting to think about experimenting with this little scamp:
- Tips and Tricks for Using the MSGEQ7 Audio Spectrum Analyzer
- Best MEMS Microphone for Use with the MSGEQ7
- Handling Noise When Working with the MSGEQ7 Audio Spectrum Analyzer
- Audio Envelope-Generating Circuit for Use with the MSGEQ7
I also told Simon that, if I were to build a new audio-reactive artifact, then a strong contender would be the decidedly drool-worthy 7-band audio spectrum analyzer shown in this video.
Actually, it’s been quite a while since I looked at this video, but I just watched it again, and I must admit I feel my creating juices starting to flow…
I Keep on looking at that 7-Band Spectrum Analyzer and thinking “Oooh, Tasty!”
Neat! Definitely BADASS!
But disappointed about the IC, as i’m seeking an audio-equalizer chip. In my day, this chip might be termed “spectrum analyzer”.
Doesn’t look like the manufacturer offers an audio-eq
https://mix-sig.com/index.php/products/standard-products
Yes — this chip is definitely a spectrum analyzer — it’s a fantastic option if you are using a low-power (8-bit, low clock) microcontroller.
I s’pose a true spectrum analyzer would prolly be an FFT, or (before FFT was discovered in 1965) a filter sweep. Since this device has a handful of fixed bands, it’s frequency resolution is somewhat limited.
https://en.m.wikipedia.org/wiki/Spectrum_analyzer#History
I think that it’s important to not “overthink” the MSGEQ7 — it’s just a really quick and easy way to perform a rudimentary audio spectrum analysis with a cheap and cheerful chip that plays well with low-power 8-bit microcontrollers. If you were doing a project that required better resolution and control, I would recommend the Teensy 3.2 or Teensy 3.6 because — while small and inexpensive — they are 32-bit processors running at high clock rates — and there’s also a really sophisticated FFT library available for you to play with.