01. Scientific Principles
Fourier analysis reveals the frequency components underlying a time-domain signal. Complex audio waveforms can be decomposed into sinusoidal components, allowing their spectral characteristics to be examined independently of their original waveform.
For a discrete signal containing N samples, the Discrete Fourier Transform (DFT) is defined as:
The system uses a 64-point FFT at a sampling rate of 22.05 kS/s, producing a frequency-bin spacing of approximately 344.5 Hz. A Hann window is applied before transformation to reduce spectral leakage, at the expense of wider spectral peaks.

02. System Architecture
The system distributes computational and control tasks between an RP2040 microcontroller (STEPICO) and a MachXO2 FPGA (STEPFPGA).
The MCU streams PCM audio samples from a microSD card to the FPGA over SPI. Following digital equalization, the processed signal is routed to both a 10-bit R-2R DAC and a dedicated FFT module.

The FFT is implemented through six stages of butterfly operations using 16-bit real and imaginary components. A state machine sequences the computation, sharing a serial multiplier between windowing and FFT processing to reduce hardware resource consumption.
Technical Specifications
| Parameter | Specification |
|---|---|
| Microcontroller | RP2040 |
| FPGA | MachXO2 |
| Sampling Rate | 22.05 kS/s |
| FFT Length | 64 points |
| Frequency Bin Spacing | 344.5 Hz |
| Spectrum Display | 32 bars |
| Window Function | Hann |
| FFT Architecture | Six-stage butterfly |
| Complex Data Width | 16-bit real + 16-bit imaginary |
| Audio Output | 10-bit R-2R DAC |
| Communication | SPI |
03. Experimental Results
The system visualizes the post-EQ audio spectrum through 32 frequency bars spanning approximately 345 Hz to 11 kHz. Six selectable equalization presets allow the relationship between audible frequency balance and spectral distribution to be investigated.

| EQ Preset | Expected Spectral Response |
|---|---|
| Normal | Reference response |
| Classical | Greater high-frequency emphasis |
| Jazz | Greater low-frequency emphasis |
| Rock | Enhanced low and high frequencies |
| Bass Boost | Dominant lower frequencies |
| Telephone | Narrower mid-frequency emphasis |
These responses depend on the frequency content of the original audio signal. The relatively coarse frequency resolution provides a useful overview of musical content, although deep-bass components and closely spaced frequencies cannot be clearly resolved. Audio streaming is prioritized over display updates to maintain continuous playback.
04. Further Exploration
The same architecture can be extended toward acoustic monitoring, digital instrumentation, real-time filter characterization, and embedded audio analysis. Increasing the FFT length, investigating alternative window functions, and optimizing FPGA arithmetic provide further opportunities to explore the trade-offs between frequency resolution, computational latency, and hardware resource utilization.