Arduino FFT Spectrum Analyzer on VFD Display GP1287

by mircemk in Circuits > Arduino

204 Views, 3 Favorites, 0 Comments

Arduino FFT Spectrum Analyzer on VFD Display GP1287

APH1.jpg

 How to make an simple audio FFT spectrum analyzer on a 256x50 pixel VFD display. 

Supplies

Inside.jpg
  • Arduino Nano R3
  • GP1287 VFD Display
  • Potentiometer, 10 kohm
  • Resistor 10k ohm x 2
  • Capacitor 10 µF
  • 5V 2.5A Switching Power Supply

Description

Arduino FFT Spectrum analyzer on VFD display GP1287
VFD Display.jpg

 An audio spectrum analyzer is a device that visualizes the frequency content of an audio signal. It represents the distribution of frequencies in a graphical form, typically displaying amplitude or power on the y-axis and frequency on the x-axis. This tool is commonly used in audio engineering, music production, and sound analysis for various purposes. 

  This time I will describe how to make an audio FFT spectrum analyzer on a 256x50 pixel VFD display. 

These types of displays emit very bright light with high contrast and clear visibility from wide angles, and have a wonderful retro look.

Building

Oscilloscope + signal.jpg

  The device is very simple to build and has only a few components:

  - Arduino nano microcontroller

  - GP1287 VFD display with resolution of 256x50 pixels

  - stereo potentiometer

  - two capacitors

  - two resistors

  - and Button

 Thanks to the two libraries used (U8G2 and fix_fft), the code is very simple and can be easily modified. The audio input to the Arduino is on A0, with bias at the mid point by 10K to Ground and 10K to +5V. At the input we can also put a potentiometer to control the amplitude of the input signal.

First, let's look at the case when we bring a signal with a certain frequency and shape to the input. For this purpose, I will use the signal generator that is part of my oscilloscope. 

Testing

Audio Input.jpg
Mode2.jpg

The spectrogram clearly shows the fundamental signal, as well as its harmonics. I will test it with square and sine wave. As we change the frequency of the oscillator, so does the fundamental of the analyzer display. Here we can see that the frequency range of this instrument is from 0Hz to 4.5 KHz, where most of the music signals are found. However, the purpose of this device is not to perform any precise audio analyzes and measurements, but primarily has a visual function. 

 The following image shows how the device works in conditions when we bring a complex audio signal to the input.

 Otherwise, the device has two modes of operation that can be changed with the push of a button, in one mode the bars are next to each other, and in the other there is a certain distance between them.


Conclusion, Schematic and Code

Schematic.jpg

 Finally, the entire assembly is housed in a suitable box. This is not a professional tool because it has relatively low resolution and frequency range, but can serve as a great educational tool and visualizer for some audio project.