Teensy Spectrum Analyzer Has 170 Channels

While high-fidelity audio has come a long way in the past several decades, a lot of modern stereo equipment is still missing out on some of the old analog meters that were common on amplifiers and receivers of the 60s through the 80s. Things like VU meters don’t tend to be common anymore, but it is possible to build them back in to your sound system with the help of some microcontrollers. [Mark] shows us exactly how to reclaim some of the old-school functionality with this twin audio visualizer display.

Not only does this build include two displays, but the microcontroller is keeping up with 170 channels in real-time in order to drive the display. What’s more impressive is that it’s being done all on a Teensy 4.1. To help manage all of the data and keep the speed as fast as possible it uses external RAM soldered to the board, and a second Teensy audio board is used to do the real time FFT analysis. Most of the channels are sent to the display hosting the spectrum analyzer but two are reserved for left and right stereo VU meters on the second display.

The project from [Mark] is originally based on this software from [DIYLAB] so everything is open-source. While it was originally built for a specific piece of hardware, [Mark] has it set up with a line in and line out plus a microphone input so it can be used for virtually any audio hardware now. For another take on the classic VU meter, take a look at this design based on an Arudino instead.

14 thoughts on “Teensy Spectrum Analyzer Has 170 Channels

      1. I did watch another video of yours where you did do that. But everyone does just one tone at a time. I would like to see someone really test the code by injecting 2 or 4 freq. mixed to see if those 2 or 4 bands only pop up.

  1. All the spectrum analysers I’ve seen (that are FFT based) are linear frequency binned, or occasionally multiple bins are combined to make a more natural logarithmic display.
    Of course ‘old time’ spectrum analysers were a set of analog filters, but were complex, expensive, and not real accurate (without excessive tweaking).

    Has anyone played around with a constant-Q-transform to do logarithmic spectrum analysis in the digital domain?

  2. About VU meters, PPM, etc, are their ballistic responses actually good for monitoring, or do we replicate them in software only because sound engineers are familiar with them? I’ve also seen bar displays with an extra line that decays slowly, perhaps to make clipping easier to see.

    1. I don’t know what mean to imply by “ballistic response”, but a good analog meter will be very nearly critically damped: The needle will follow the actual value as quickly as possible, but won’t overshoot (or not by more than a few percent) and definitely won’t oscillate or ring.

      1. A “real” VU meter will have very specific acceleration, damping, and decay characteristics. It’s not the case that any meter with a scale that looks like that is a “VU Meter”.

        1. This is true.

          But if you haven’t given LUFS a try, you don’t know what you’re missing. VU meters were great for tape, and when processing power was scarce. Modern LUFS meters/displays give you a lot better picture of what your audio really sounds like.

          IMO, etc.

    2. I don’t know. But a VU meter is standard. So it requires those specs, whether it was based on the inherent design of meters at the time, or not.

      There wss lots of consumer equioment that had “VU” meters, but actually didn’t meet the specs, or allow for proper.measurement.

    1. Adding features means losing the “gumstick” profile. The Teensy has so many IO pins, some are surface pads instead of edge connections.
      Adding more parts either eliminates pads, or needs a bigger board.

Leave a Reply to Michael BlackCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.