user-img

Mirko Pavleski

+ Follow

How to Build a Simple Audio Spectrum Analyzer

Simple Audio Spectrum Analyzer with multiple adjustable display, speed, and sensitivity modes for a customizable audio visualization experience.

How to Build a Simple Audio Spectrum Analyzer
 
  • thumbnail-img
 

Hardware Components

  • LGT8F328P MCU Board

    X 1
  • 128x64 LCD Display (ST7920 chip)

    X 1
  • Resistor 10k ohm

    X 1
  • Resistor 4.75k ohm

    X 1
  • Trimmer Potentiometer, 10 kohm

    X 1
  • Pushbutton Switch

    X 1

Tools, APP Software Used etc.

  • soldering kit

  • Arduino IDE

    Arduino IDE

    Arduino

Story

  An audio spectrum analyzer is an electronic device or software tool that measures and visually displays the frequency spectrum of an audio signal. It shows the different frequencies present in the signal and their respective amplitudes, typically on a graph with frequency on the horizontal axis and amplitude on the vertical axis. In today's video, I will present you with a very simple way to create an audio spectrum analyzer that, despite its simplicity, has many possibilities for adjusting various parameters directly via buttons, without making any changes to the code. 

Video description at : https://youtu.be/4zmYl3a0uTI

I got the initial idea from a project on the rcl-radio website and decided to expand the original project with more features. The device uses LGT8F328P which is compatible with Arduino Nano 3 and is significantly cheaper but also with better performance. 

 

For support in Arduino IDE for LGT8F328P, we need to enter the given link (https://raw.githubusercontent.com/dbuezas/lgt8fx/master/package_lgt8fx_index.json) in File - Preferences - Additional Boards Manager, and then in Tools - Boards Manager we install this microcontroller.

  As I mentioned earlier, the device is extremely simple to build and consists of only a few components

- LGT8F328P MCU board

- ST7920 chip LCD display with a resolution of 128X64

- and two resistors

As for the code, it is designed in a way that allows you to easily change many more parameters. For example, The experimental Auto Gain option is very intuitive and works flawlessly, optimally adjusting the bar movements regardless of the input signal strength.

  Now let me explain the functions of this spectrum analyzer. When turning on the device, three letters can be seen on the top right of the screen. They sequentially display the current MODE of each button, and are changed by pressing the corresponding button.

  - Button 1 cycles through 4 display modes:

       Normal: Standard bars

       Peak Hold: Bars with peak indicators

       Falling Dots: Dot visualization

       Mirror: Symmetrical display

  - Button 2 cycles through 3 speed modes:

       Normal: Standard falling speed

       Fast: Quick response

       Slow: Slow falling with random elements

  - and Button 3 cycles through 3 sensitivity modes:

       Normal: Default gain

       High: More sensitive (lower gain)

       Low: Less sensitive (higher gain)

 And finally a short conclusion. This project showcases a simple yet versatile audio spectrum analyzer built with the LGT8F328P microcontroller, offering multiple adjustable display, speed, and sensitivity modes for a customizable audio visualization experience.

 

 

 

Code
Schematic and Layout

How to Build a Simple Audio Spectrum Analyzer

Simple Audio Spectrum Analyzer with multiple adjustable display, speed, and sensitivity modes for a customizable audio visualization experience.

7
 
1
0
0

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 1 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Country: Shipping Way:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Guaranteed Purchase: Full techsupport