Site icon Circuit Ideas for You

Audio Spectrum Analyzer Circuit using IC MSGEQ7

Music is not only for ears, it can be seen also.

With MSGEQ7 chip we can make music dance in lights

MSGEQ7 is a chip made for audio spectrum analysis.

It divides audio into 7 frequency bands.

Each band gives an output voltage.

This voltage can be read by microcontroller.

Like Arduino, ESP32, STM32 etc.

Circuit is good for making music visualizer, LED lights dancing and audio meters.

Simple vertical bar diagram (7 bands, 8 LEDs per band).

Each column = one frequency band (7 columns).

Top = high level, bottom = low level.

Band7  █ █ █ █ █ █ █ █
Band6  █ █ █ █ █ █ █ ░
Band5  █ █ █ █ █ ░ ░ ░
Band4  █ █ █ █ ░ ░ ░ ░
Band3  █ █ █ ░ ░ ░ ░ ░
Band2  █ █ ░ ░ ░ ░ ░ ░
Band1  █ ░ ░ ░ ░ ░ ░ ░
        1 2 3 4 5 6 7   (columns = bands)

Legend: █ = LED on, ░ = LED off.

We can change 8 to any number of LEDs per column.

Simple horizontal bar diagram (7 rows, variable length).

Each row = one band and Length = level.

Band7: ████████
Band6: ██████
Band5: ████
Band4: ███
Band3: ██
Band2: █
Band1: █

Compact 7-bar single-row (good for LED strip):

One row, 7 groups and each group has 3 LEDs.

[ B1: ▓▓ ] [ B2: ▓▓▓ ] [ B3: ▓ ] [ B4: ▓▓▓▓ ] [ B5: ▓▓ ] [ B6: ▓▓▓ ] [ B7: ▓▓▓▓ ]

Circuit Working:

Parts List:

ComponentValueQuantity
Resistors
200k 1/4 watt1
22k 1/4 watt2
Capacitors
33pF1
0.1µF3
Semiconductors
IC MSGEQ71

The above circuit diagram is single MSGEQ7 with mono input.

Audio input passes through resistor and capacitor.

Chip separates into 7 bands.

Output pin gives DC voltage for each band.

RESET pin set back to start.

STROBE pin move to next band.

DATA_OUT pin send band level.

Left and right channel are mixed with two 22k resistors.

Then same capacitor coupling are into input pin.

So both channel combined to mono before chip.

Chip then works the same way.

Formulas:

R1 and C1 make oscillator.

fosc = 1 / (2.2 * R1 * C1)

here,

R1 = 200k = 200,000Ω

C1 = 33pF = 33 × 10⁻¹² F

Multiply R1 and C1:

200,000 × 33 × 10⁻¹² = 6.6 × 10⁻⁶

Multiply by 2.2:

2.2 × 6.6 × 10⁻⁶ = 1.452 × 10⁻⁵

Take reciprocal to get fosc:

fosc = 1 / 1.452 × 10⁻⁵ = 68,831 Hz = 68.9 kHz

This is the required clock frequency for the filter banks.

Input filter:

RC high pass is made by R2 and C2.

fcutoff = 1 / (2 * π * R2 * C2)

here,

Multiply R2 and C2:

22,000 × 0.1 × 10⁻⁶ = 2.2 × 10⁻³

Multiply by 2π (6.2832):

6.2832 × 2.2 × 10⁻³ = 0.013823

Take reciprocal to get fcutoff:

fcutoff = 1 / 0.013823 = 72.3 Hz

This removes DC and passes only the audio frequencies.

How to Build:

To build a Audio Spectrum Analyzer Circuit using IC MSGEQ7 follow the below steps:

Conclusion:

MSGEQ7 is easy chip for spectrum analyzer.

Only few parts are needed.

Works with mono or stereo input.

Output is easy to read by Arduino or any microcontroller.

Circuit is good for DIY music visualizer projects.

References:

MSGEQ7 spectrum analyzer issues.

Exit mobile version