Schlagwort: Audio Spectrum Analyzer

  • DIY spectrum analyzer is an easy project for beginners

    DIY spectrum analyzer is an easy project for beginners

    Reading Time: 2 minutes

    Spectrum analysis is a technique that allows someone to observe the amplitude of various frequency ranges within a signal. The most common use case is in the world of audio engineering, as it is useful for tuning audio output. It can, for example, show you that a particular audio signal has little amplitude in the low bands and that tells you that you should turn up the bass. If you want to try this for yourself, Sam Dartel designed a DIY spectrum analyzer that is easy for beginners to build.

    For a spectrum analyzer to work, it needs to be able to break an electrical signal down into a series of frequency ranges. In an audio signal, frequency is pitch. That means that higher frequency ranges correspond to higher notes in the audio. This spectrum analyzer utilizes an MSGEQ7 IC, which is an equalizer filter, to pull seven frequency ranges from an audio signal. It outputs the peak of each band, giving a real-time reading of each band’s amplitude.

    There are two versions of this spectrum analyzer: one powered by a battery and one powered via USB. Both are shields for An Arduino Nano board, which takes the output from the MSGEQ7 and uses the FastLED library to set the number of LEDs lit on seven WS2812B individually addressable RGB LED strips. Each strip is a 2D display and that is enough for the amplitude of each band, but the color and brightness of the LEDs introduce two other possible dimensions. This spectrum analyzer uses those for different effects patterns.

    [youtube https://www.youtube.com/watch?v=hkR0L8pilXs?feature=oembed&w=500&h=281]

    To build this spectrum analyzer, you’ll need to have one of the two shield PCB designs fabricated. All of the components are through-hole to make assembly easy.

    The post DIY spectrum analyzer is an easy project for beginners appeared first on Arduino Blog.

    Website: LINK

  • Watch your music come to life on this single LED strip audio spectrum visualizer

    Watch your music come to life on this single LED strip audio spectrum visualizer

    Reading Time: 2 minutes

    Arduino TeamJuly 17th, 2021

    While thinking of an interesting project to create, Hackster user marcaubin started to imagine an audio spectrum visualizer, but not a traditional one that has a matrix of LEDs with columns corresponding to certain frequencies. Instead, his device would have just a single vertical NeoPixel strip featuring 29 LEDs in total, with the bottom ones displaying the lower frequencies while the top pixels would indicate the higher frequencies. 

    He built a small box that houses a few components, including an Arduino Nano Every for taking in sound data and controlling the LED strip, a jack for plugging in a sound source, and a series of potentiometers for carefully adjusting certain variables. Two of those potentiometers can change the color range of the LEDs, as the possible range of colors get divided amongst the pixels in between the two ends. There is a way to change both the saturation and max brightness of the LEDs as well.

    Marcaubin’s code continuously reads values coming in from the audio jack and performs a Fast-Fourier Transformation (FFT) on the data which causes the resulting frequency bands and their corresponding amplitudes to be outputted. From there, the values of the potentiometers are combined in certain ways to produce a very nice-looking array of colors along the LED strip. As a certain frequency gets louder, the LED within the column will get brighter, and vice-versa for quieter amplitudes. 

    You can read more about marcaubin’s project here.

    Website: LINK