Room Acoustic Correction by DIY Parametric Equalizer

by shiura in Circuits > Audio

62 Views, 2 Favorites, 0 Comments

Room Acoustic Correction by DIY Parametric Equalizer

peq1.jpg
eq.jpg

No matter how faithfully your speakers reproduce sound, the resonance of your room can ruin it. "Room EQ" is a powerful technique for compensating for this, as it adjusts a parametric equalizer based on measurements to bring the frequency response at the listening point closer to flat.

In this guide, I will explain how to create an affordable (under $50) yet powerful parametric equalizer and how to use it for Room EQ correction. While this process can be done using software alone, using this physical device ensures consistent results across all devices, including smartphones. You can assemble this device without any soldering.

Supplies

parts.jpg
IMG_20250108_225643891.jpg

USB audio device with interactive parametric equalizer

  1. Microcontroller
  2. Raspberry Pi pico, pico 2 or compatibles
  3. Maximum channels of parametric equalizer depends on the generation of the microprocessor (RP2040 or RP2350)
  4. pico (RP2040) : 4ch
  5. pico 2 (RP2350)(recommended) : 8ch
  6. DAC board
  7. DAC (Digital to Analog conversion) board compatible with Raspberry Pi pico
  8. You can use any I2S based DAC chip that works without MCLK (master clock)
  9. LCD display module
  10. The software is compatible to Waveshare Pico LCD 2 LCD display module

You can make the device without either soldering or compiling software if you use:

  1. Raspberry Pi Pico / Pico 2 with pre-soldered pin-headers (around $14)
  2. Waveshare Pico Audio DAC board ($13)
  3. Waveshare Pico LCD 2 LCD display module ($14)

For Room EQ correction

  1. PC (Windows or Mac)
  2. REW (Room EQ Wizard) software (free)
  3. Microphone for measurement
  4. Calibrated microphone for acoustic measurement (such as Behringer ECM8000) is recommended
  5. You can confirm the effect of room acoustic (frequency response change depends on the position of microphone) by any microphones

Assemble USB Audio Device With Parametric EQ

boards.jpg
case.jpg

Hardware

  1. If you use Waveshare Pico Audio and Waveshare Pico LCD 2, just stack each other.
  2. If you use other DAC board, connect
  3. DIN (data input) pin to pin 34 (GPIO 28)
  4. BCK (bit clock) pin to pin 32 (GPIO 27)
  5. LRCK (word clock) pin to pin 31 (GPIO26)
  6. Power (GND, 5V and/or 3.3V)
  7. If you use other LCD display module, codes for UI should be modified thoroughly.
  8. If you use VCC-GND YD-RP2040 board (compatibles of Raspberry-Pi Pico), bridge pin 39 and 40 (Vin and Vout) because Waveshare boards are powered from Pin39 (but pin 39 of YD-RP2040 can not supply power)

Software

  1. If you use Waveshare Pico Audio and Waveshare Pico LCD 2, you can flash the code by:
  2. Download precompiled binary file (.uf2) from my github repository.
  3. Connect USB of Raspberry Pi Pico to your PC while press and hold BOOTSEL button.
  4. Drag and drop the file to the icon of mounted device (named RPI-RP2 or RP2350)
  5. The source code of this parametric equalizer is made public at my github repository.

Please read the description at github for detailed info.

Case

  1. I prepared the 3D model of the case.
  2. Print two copies of button.stl.
  3. Use four 2mm tapping screws to fix the back panel.

Test your device

  1. play back your favorite music from your PCs or smartphones.

Check Your Room Acoustic

スクリーンショット 2025-01-13 14.04.06.jpg

How to measure

  1. Install REW (Room EQ Wizard) software to your PC.
  2. Launch REW.
  3. Click "Preferences" icon (top-right)
  4. Select your speaker and microphone.
  5. Click "Measure" icon (top-left)
  6. Click "Check levels" button to adjust the level. Please start from very low volume settings.
  7. Click "Start" button to measure.
  8. Change the distance from the speaker to the microphone and compare the frequency responses (click "all SPL" button at top).
  9. Click "Actions" button at top-right, then select "1/6 smoothing" and click "Apply smoothing" button in "Actions for ALL SPL" window.
  10. If the level of multiple measurement differs, click "SPL & Phase" button in the main window, then the name of the small window changes to "Actions for SPL and Phase". Then in the window, you can adjust the level of the graphs by "SPL offset (dB)" part.

You'll see

  1. The frequency response curve changes drastically depending on the position of the microphone.
  2. Usually, you will notice some dips at low frequencies if the microphone is placed farther from the speaker. This is caused by room resonance (standing waves).


Room EQ Correction

USB-DAC with parametric equalizers based on Raspberry Pi Pico
スクリーンショット 2025-01-14 1.16.34.jpg

Calculate EQ parameters

  1. Select frequency response to be corrected (measured at listening position).
  2. You can calculate and use the average of multiple measurement results.
  3. Click "EQ" icon at the top of the main window.
  4. "Equaliser settings"
  5. At right part of the "EQ for measurement.." window, select "Configurable PEQ" model and click gear icon at right
  6. In "Configurable equaliser" small window, select number of filters (4 for RP2040, 8 for RP2350)
  7. Set parameters as shown in the image above. Select "BW octaves" for Q/BW format section.
  8. "Target settings"
  9. Adjust "Target Settings". I use "Bass limited speaker" for target type.
  10. Target level can be automatically adjusted by clicking "Calculate target level from response" text.
  11. "Filter Tasks"
  12. Set parameters in the "Filter Tasks" part.
  13. Turn on (check) "Allow narrow filters below 200 Hz"
  14. Turn on (check) "Vary max Q above 200 Hz"
  15. Run optimization
  16. Click the text "Match response to target"
  17. You will see the optimized result.

Set the EQ parameters to the USB audio device

Please take a look at the video above.

  1. You can select a parameter to adjust using the bottom-left button.
  2. You can increase or decrease the selected parameter using the top-right and bottom-right buttons.
  3. All values can be adjusted in stepwise increments. Ignore small difference and select closer value.
  4. At "SETTINGS" mode, you can save the parameters to the flash memory. Press "SAVE" (top-right) button, and the device reboots automatically after storing parameters.

Enjoy!

スクリーンショット 2025-01-14 1.19.07.jpg

Check the result

  1. Measure the frequency response again using REW to verify the results.
  2. The image above shows an example of an actual compensation result.

Enjoy!

  1. You can play back your music or videos with the equalizer applied, not only from PCs but also from smartphones.