Silicon ChipUsing Room EQ Wizard (REW) - June 2023 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Junk email is out of control
  4. Feature: Starlink, Swarm and Starshield by Dr David Maddison
  5. Project: Basic RF Signal Generator by Charles Kosina
  6. Subscriptions
  7. Feature: The History of ETI Magazine by Peter Ihnat
  8. Project: Loudspeaker Testing Jig by Phil Prosser
  9. Feature: Using Room EQ Wizard (REW) by Phil Prosser
  10. Project: WiFi Time Source for GPS Clocks by Tim Blythman
  11. Product Showcase
  12. Feature: The Y2K38 Bug by Tim Blythman
  13. Project: Wideband Fuel Mixture Display, Pt3 by John Clarke
  14. Vintage Radio: Servicing Vibrators, Pt1 by Dr Hugo Holden
  15. Serviceman's Log: Bits and bobs by Various contributors
  16. PartShop
  17. Market Centre
  18. Advertising Index
  19. Notes & Errata: Automated Test Bench Swiss Army Knife, April 2023; Advanced SMD Test Tweezers, February & March 2023; AM-FM DDS Signal Generator, May 2022; Advanced GPS Computer, June & July 2021
  20. Outer Back Cover

This is only a preview of the June 2023 issue of Silicon Chip.

You can view 38 of the 112 pages in the full issue, including the advertisments.

For full access, purchase the issue for $10.00 or subscribe for access to the latest issues.

Items relevant to "Basic RF Signal Generator":
  • Basic RF Signal Generator main PCB (CSE221001] (AUD $5.00)
  • ATmega328P programmed with the firmware for the Low-Cost RF Signal Generator [CSE22100A.HEX] (Programmed Microcontroller, AUD $15.00)
  • 0.96in cyan OLED with SSD1306 controller (Component, AUD $10.00)
  • Basic RF Signal Generator short-form kit (Component, AUD $100.00)
  • Basic RF Signal Generator front panel PCB (CSE220902B) (AUD $5.00)
  • Basic RF Signal Generator firmware (Software, Free)
  • Basic RF Signal Generator PCB pattern (PDF download) [CSE221001] (Free)
  • Basic RF Signal Generator front panel artwork (PDF download) (Free)
Items relevant to "Loudspeaker Testing Jig":
  • Loudspeaker Testing Jig PCB [04106231] (AUD $12.50)
  • Loudspeaker Testing Jig PCB pattern (PDF download) [04106231] (Free)
Items relevant to "WiFi Time Source for GPS Clocks":
  • WiFi Time Source firmware (Software, Free)
Items relevant to "Wideband Fuel Mixture Display, Pt3":
  • Wideband Fuel Mixture Display PCB [05104231] (AUD $10.00)
  • PIC16F18877-E/PT programmed for the Wideband Fuel Mixture Display (WFMD) [0510423A.HEX] (Programmed Microcontroller, AUD $15.00)
  • Wideband Fuel Mixture Display short-form kit (Component, AUD $120.00)
  • Firmware for the Wideband Fuel Mixture Display (WFMD) [0510423A.HEX] (Software, Free)
  • Wideband Fuel Mixture Display PCB pattern (PDF download) [05104231] (Free)
Articles in this series:
  • Wideband Fuel Mixture Display Part 1 (April 2023)
  • Wideband Fuel Mixture Display Part 1 (April 2023)
  • Wideband Fuel Mixture Display, Pt2 (May 2023)
  • Wideband Fuel Mixture Display, Pt2 (May 2023)
  • Wideband Fuel Mixture Display, Pt3 (June 2023)
  • Wideband Fuel Mixture Display, Pt3 (June 2023)
Items relevant to "Servicing Vibrators, Pt1":
  • Vibrator Mosfet replacement PCB set [18105231+18105232] (AUD $5.00)
  • Mosfet-based Vibrator Replacement PCB patterns (PDF download) [18105231/2] (Free)
Articles in this series:
  • Servicing Vibrators, Pt1 (June 2023)
  • Servicing Vibrators, Pt1 (June 2023)
  • Replacing Vibrators, Pt2 (July 2023)
  • Replacing Vibrators, Pt2 (July 2023)
  • Replacing Vibrators, Pt3 (August 2023)
  • Replacing Vibrators, Pt3 (August 2023)

Purchase a printed copy of this issue for $11.50.

Setting up and Using Room EQ Wizard This accompanying article for the Speaker Test Jig explains how to set up and use the freely-available Room EQ Wizard (REW) or Speaker Workshop software to help you design and tweak loudspeakers. Y ou don’t need the Loudspeaker Test Jig described in this issue to use Room EQ Wizard or Speaker Workshop to design and test loudspeakers and drivers, but it makes it a lot easier. This article will describe setting up and using REW (and later, Speaker Workshop) assuming you have built the Loudspeaker Test Jig. If you haven’t, you can still follow these procedures; you just need to rig up a microphone preamp, power amplifier, test resistor and some other bits and pieces to perform similar functions. Essentially, what you need (and the Jig provides) for measuring driver By Phil Prosser impedance is to have your computer’s sound card feeding a power amplifier that drives the device under test (DUT) via a well-characterised 10W or similar power resistor. Both ends of that resistor then connect to the two sound card inputs. For driver and speaker frequency response plots, you instead need a calibrated microphone and microphone preamp combination that gives a flat response feeding into one of your sound card’s inputs while the output(s) drive the DUT via a small power amplifier. The Jig also does that if you have a calibrated microphone (we’ll describe an inexpensive one in an upcoming issue). Final testing & setting up REW We assume you have your computer set up and your sound card properly installed. Importantly, make sure you have the sample rate set and no effects turned on. Also check that you do not have ‘monitor recordings’ set. The critical steps to getting the Test Jig operational with the REW software are provided here. There are many resources on the internet for this program, and its full details are well beyond the scope of this article. Screen 1: the REW Preferences dialog. Check that the input and output devices and sampling rate settings are set correctly. 56 Silicon Chip Australia's electronics magazine siliconchip.com.au Still, let’s get it up and running. After installing and launching REW, to set it up, open the preferences pulldown and then the preferences tab – see Screen 1. Select your input and output here; usually, you would use the default sound input and output devices. To calibrate your sound card: 1. Set the Loudspeaker Test Jig to “component test” and make sure there is nothing connected to the Speaker and DUT connectors. 2. Make sure the Loudspeaker Test Jig attenuator is switched out. 3. In REW, open the preferences pulldown and open the preferences tab. 4. Click on “Calibrate soundcard”. Note that by using the “Component” test mode, the 10W reference resistor acts as the loopback mentioned in the text box that will pop up. 5. Click Next, and a text box will appear providing instructions. Follow them. 6. Click Next and check that you have levels that are about right. You should find that with about 200mV RMS output, you see a measured signal in the region of -10dB on the loopback test. Sound cards vary in sensitivity, so your voltages may vary somewhat from ours. 7. Then click Next until the measurement sweep is made. You will get a graph similar to that in Screen 2. 8. On the tab for the measurement you just made, add any notes you need. Then click the disk symbol on the measurement and save this file somewhere sensible. 9. Now press Alt+Tab to switch back to the preferences screen and click on “Make Cal File”, which is below the “Calibrate Sound Card” button. 10. Navigate to where you saved the previous measurement. Select “all files” from the pulldown “files of type” and then select your calibration measurement. Click “Save”. 11. Your sound card is now calibrated. To calibrate the Test Jig: 1. Set your Loudspeaker Test Jig to “component” test and ensure there is nothing connected to the Speaker and DUT connectors and that the Attenuator is out. 2. You only need to do this on the first measurement you make. Click “Measure” in the top left corner of siliconchip.com.au Screen 2: this shows the frequency response REW has calculated for the measurement system, including the computer sound card. Screen 3: you make impedance and frequency response measurements using this screen in the REW software. Screen 4: calibration with our 10W test resistor is complete, and the result almost exactly matches what our Low Ohms Meter reads. Australia's electronics magazine June 2023  57 Screen 5: a measurement of the impedance of a subwoofer taken using REW and our Test Jig. It gives a nice smooth plot that shows resonance peaks at about 31Hz & 72Hz (driver/box) plus 850Hz & 2.5kHz (cone breakup etc). Screen 6: a frequency response plot of a wide-range driver made using REW. This sort of information is invaluable in speaker design and tweaking. the main REW screen (Screen 3). If you have not calibrated the SPL, you will get a message box; you can ignore it for now. 3. Enter your sense resistor value in the Rsense box at the right of this window. 4. Click on “Open Circuit Cal” and follow the instructions. Save the file along with your others. Do the same for “Short Circuit Cal” and use a known resistor value for “Reference Cal”. 5. You can now measure an impedance. A window similar to that shown in Screen 4 will pop up. Screen 5 shows the measured impedance of a subwoofer. Using it To measure an impedance: 1. Set your Loudspeaker Test Jig to “component” test and make sure there is nothing connected to the Speaker and DUT connectors and that the Attenuator is out. 2. Click “Measure” in the top left corner of the main REW screen. 3. Click “Impedance” in the top left of the screen, as shown in Screen 3. 4. Click Start once you have connected your unknown impedance across the DUT terminals. To measure speaker frequency response: 1. If you are testing a tweeter, put a high-value non-polarised capacitor in Screen 8: an impedance plot of the 10W calibration resistor in Speaker Workshop. It’s a bit noisier than the equivalent REW plot, but it demonstrates that the measurement system is accurate from about 5Hz to over 20kHz. Note that this plot was made as part of the verification process of the Speaker Test Jig. 58 Silicon Chip Australia's electronics magazine siliconchip.com.au series to protect it from low frequencies, and consider running the sweep from, say, 500Hz up. 2. Set your Loudspeaker Test Jig to “speaker” test. 3. Connect your speaker across the Speaker terminals. 4. Plug your microphone in and set the microphone gain as required. 5. Set the attenuator on or off depending on the level you intend to test at. 6. Click Measurement again, and this time select “SPL”. 7. The system will run a sweep and you will hear the chirp. 8. Check that the levels are reasonable. If necessary, adjust the sound card output level, the microphone gain switch and the output Attenuator for the Loudspeaker Test Jig. You will find that once you are set up for testing, these don’t change often. 9. Watch the levels; if the outputs or inputs clip, you will get odd results. If this happens, investigate the cause and correct it. 10. You will see the result pop up in a window similar to that in Screen 6, a very rough plot of a speaker done on our workbench. 11. You can change the smoothing setting, show a waterfall plot, show distortion and a range of other plots from this measurement, which is pretty cool. Tips ● The room will play havoc with far-field measurements. If you do this in a room, you will never get a 20Hz to 20kHz plot without all sorts of peaks and dips. Just accept this. ● You will need to apply smoothing to get a plot anything like what you see in hifi magazines, as that is what they do. ● Testing outside is good; the ground is always there, though. This will generate ‘ground bounce’, which is perfectly natural, and you need to work around this unless you point your speaker up and hang your microphone from a ladder. Yes, we have done this! From here, we recommend that you explore some of the resources on the web for these programs. REW is more active, but Speaker Workshop has a strong community. The DIY audio community has several quite active groups. “DIY Audio” is a good place to find like-minded people. SC siliconchip.com.au Getting Speaker Workshop up and running If you want to try out Speaker Workshop, read relevant parts of the “unofficial manual” on the download page at www.claudionegro.com Ignore the “failed to update system registry” warning on startup. You must set up a project: 1. Create a new file by clicking on “File” then “New”. 2. This program works by adding resources to the “system”. Resources might be an enclosure, driver or network etc. 3. You need to add a driver at minimum. To do this, open the “Resource” menu and select “New” then “Driver”. You need to select this to make measurements – see Screen 7. To calibrate the system: 1. From the “Options” menu, select “Calibrate”. 2. Make sure there are no leads connected to the Amp and DUT jumpers on the Test Jig. 3. Switch the Jig to “Comp” and switch the measurement attenuator out. In this position, both sound card channels measure the amplified output. 4. Click “Test” on the channel difference box. Follow the instructions to run the calibration, finishing with “OK” to accept it. After calibration, look at the bottom left of the screen. This shows the digital values read in the calibration. The maximum must always be less than ±32768 and ideally in the 10,000-20,000 region. Adjust your PC’s output level and Jig attenuator setting until you get sensible readings. We generally find that an output level in the region of 40% works well. To set the Reference, open the “Options” menu, then the “Preferences” tab. Click on the “Impedance” tab and type the exact resistance of your reference resistor in the Impedance Jig definition box. To make an impedance test: 1. Connect your DUT between the DUT and ground terminals. 2. Select the driver we created earlier. It will become highlighted in blue. 3. Open the “Measure” menu and click on “Impedance”. 4. Once the measurement is complete, check that the values at the lower left of the screen are reasonable. You should see a window pop up with the measurement, as shown in Screen 8. Our Low Ohms Meter measured this resistor as 10.09W. 5. If the impedance plot is very fuzzy, check that you are not clipping the sound card or amplifier. To make a speaker frequency response test: 1. Switch the jig to SPKR. 2. Switch the attenuator next to the DUT connector in. 3. Connect a driver to the AMP output, not the DUT output. 4. Plug in your test microphone and place it close to your speaker. 5. Click on the driver icon you created and then select the “Measure” pulldown, select the “Frequency response” tab, then “Nearfield”. 6. You should get a reasonably clean frequency response. It will have more noise than one from REW and may need smoothing. If the frequency response graph is very fuzzy, check that you are not clipping the sound card or amplifier. Screen 7: to use Speaker Workshop with the Test Jig, you must create a “driver” instance and set some critical parameters. Australia's electronics magazine June 2023  59