HDL-MIC: laboratory platform for multichannel acoustic measurements
HDL-MIC is a system for synchronous acquisition and digital processing of signals from four MEMS microphones. It consists of an FPGA acquisition unit, the fpgad processing server and a web interface. The system is intended for laboratory work in digital signal processing (DSP): the student or researcher configures acquisition and processing parameters and observes their effect on a real acoustic signal.
Purpose
The platform is a laboratory bench for studying and experimentally verifying DSP methods on real multichannel acoustic signals. The original samples are kept unchanged; every processing stage is performed in software and can be switched on, off or reconfigured during a measurement, so that the original and processed signals can be compared directly.
Capabilities
- Synchronous acquisition of four INMP441 channels (I2S, 24 bits) by a Cyclone IV FPGA; sampling rate 7.81…48.83 kHz; transfer to the computer over USB-UART in windowed mode (blocks of 64…2048 samples) or continuous mode.
- Level measurement per channel: RMS and peak values in dBFS and dB SPL, level relative to the other channels, detection of faulty channels.
- Digital filters: FIR (window method), Butterworth IIR, biquad sections, moving average, user-defined coefficients (b/a or SOS); magnitude and impulse responses are displayed; parameters can be changed during a measurement.
- Parametric equalizer with up to 16 second-order sections and an interactive response editor.
- Noise reduction by spectral subtraction in the STFT domain (streaming mode).
- Amplitude spectrum, waveform and spectrogram of the original and processed signals; listening to a selected channel through headphones before and after processing.
- Estimation of the direction of arrival by the SRP-PHAT method (experimental).
- Signal recording to CSV, CSV.gz and WAV files for offline processing (Python, MATLAB, Octave).
- Web interface with user roles (operator, viewer) and a measurement log.
Areas of application
- DSP education. Laboratory work on sampling and aliasing, filter design, comparison of calculated and measured frequency responses, spectral analysis and window functions, noise reduction.
- Characterization of microphones and arrays. Noise floor, channel matching, inter-channel delays, detection of defective channels.
- Algorithm prototyping. Acquisition of multichannel data sets for offline processing; evaluation of filter parameters by measurement and by listening.
- Acoustic monitoring experiments. Isolation of the frequency band of a source (machinery, vehicles), suppression of mains hum and broadband noise, direction-of-arrival estimation.
Limitations
- The system is not a calibrated measuring instrument: dB SPL is calculated from the nominal sensitivity of the INMP441 (−26 dBFS at 94 dB SPL) without individual calibration.
- The USB-UART link (1 Mbaud) limits the data rate: continuous transfer of four channels is possible only at 16 bits and fs ≤ 10.8 kHz; at higher rates windowed mode with gaps between windows is used.
- The accuracy of direction estimation depends on the array geometry and the spacing between microphones; the method has not been verified with real sources.
System structure
I2S, 24 bits→ FPGA
windowed / streaming mode, UART→ filter→ equalizer→ noise reduction
streaming mode→ levels, spectra, listening, recording
Processing is performed in software in fpgad (Go). The web interface (PHP, JavaScript) communicates with fpgad over UDP on the local host; fpgad is the only program that accesses the FPGA. The original and processed signals are available simultaneously in the level table, graphs, spectrogram, listening and recording.
Documentation sections
Development plans
The following extensions are planned and are not implemented in the current version:
- replacement of the microphones with models of lower self-noise and higher signal-to-noise ratio;
- doubling the number of microphones to eight, including operation as two independent arrays (paired use);
- an Ethernet interface for continuous multichannel transfer without the bandwidth limit of USB-UART;
- a rigid microphone array housing with precisely defined spacing between microphones, with a built-in magnetic compass (azimuth reference) and inclinometer (tilt angle measurement);
- user-defined Python code for filters and other processing blocks.