How to - Distortion Measurements with REW

Member
Joined 2013
Paid Member
When I use my Behringer UM2 with a balanced line stage for an input, I tried the V+ to tip. V- to ring and ground to the sleeve. I ended up with massive amounts of harmonics, once I removed the ground from the sleeve, it worked perfectly. So now it is wired with the XLR to TRS with no ground, just V+ and V-.
 
When I use my Behringer UM2 with a balanced line stage for an input, I tried the V+ to tip. V- to ring and ground to the sleeve. I ended up with massive amounts of harmonics, once I removed the ground from the sleeve, it worked perfectly. So now it is wired with the XLR to TRS with no ground, just V+ and V-.

I remove gnd from the sleeve. Still horrible results here
trs input again.png
 
I was thinking to use this
An externally hosted image should be here but it was not working when we last tested it.

and then my xlr to rca adaptor.
An externally hosted image should be here but it was not working when we last tested it.


but that would be the same as using one of these
An externally hosted image should be here but it was not working when we last tested it.



Or do I just use one of these
RH-A-XLRf-1-4m-S.jpg



I have a feeling all will have the same result.
 
Do you have a voltage divider on your input? Just make sure the maximum voltage does not exceed the max allowable input signal. That distortion is result of clipping at the input stage. What divider are you using at present ?

Yes. I use a 20k/2k divider. This produces 1.2v at the input to the TRS. This is quite adequate as it can allow for 7.5v max when using the trs input.
 
Hi Folks,
Member Vicnic has developed a very nice -150dB to -160dB THD 1kHz oscillator. You can contact him via PM if interested. I am going to get one - although the instrumentation end (Focusrite) will not be capable of resolving the distortion without a notch filter and more time averaging. They are 45 Euro built and tested.
How will you get a distortion-free very-high-Q notch filter? I guess it will have to be passive, right, to keep distortion low? Are there circuits/kits available for these?
 
Founder of XSA-Labs
Joined 2012
Paid Member
I just measured the distortion in my first Class D amp with REW and this setup. No low-pass filter. Using a 11:1 attenuator with 2k2 and 22k resistors on a small veroboard. I took a 6m XLR male-female cable and cut it in half and used the male end soldered to the veroboard.

Here is a photo of the dummy resistor rig (2x 100w 8ohm resistors for 100w 8ohms or 200w 4ohm load, voltage divider, and female spade connectors for connecting to amp under test, and XLR cable to got to measurement sound card:
attachment.php


Here is photo of setup underway, I originally thought I needed a wall powered headphone amp for a preamp, but found that the Akitika had no problem driving the 3E amp to clipping since gain is set at 27dB, Without the Schiit M3 preamp, there was no mains 60Hz or harmonics:
attachment.php


Here is FFT for 2.83vrms into 8ohms (1w):
attachment.php


Here is FFT for 20vrms into 8ohms (50w):
attachment.php


Here is FFT for 28.3vrms into 8ohms (100w)
attachment.php


Here is FFT for 34.6vrms into 8ohms (150w) and onset of clipping (note how noise floor rose up):
attachment.php


The TPA3255 is powered by a 1200w DC-DC step up from a 12v 35Ahr lead acid gel cell battery. Note the total absence of mains line hum or harmonics. It is very quiet this way.
 

Attachments

  • 3E-TPA3255-34.6vrms-8ohms-FFT-onset-clipping.jpg
    3E-TPA3255-34.6vrms-8ohms-FFT-onset-clipping.jpg
    237 KB · Views: 1,123
  • 3E-TPA3255-28.13vrms-8ohms-FFT.jpg
    3E-TPA3255-28.13vrms-8ohms-FFT.jpg
    236.8 KB · Views: 2,663
  • 3E-TPA3255-20.22vrms-8ohms-FFT.jpg
    3E-TPA3255-20.22vrms-8ohms-FFT.jpg
    235 KB · Views: 2,282
  • 3E-TPA3255-2.83vrms-8ohms-FFT.jpg
    3E-TPA3255-2.83vrms-8ohms-FFT.jpg
    230.8 KB · Views: 1,122
  • TPA3255-test-Setup.jpg
    TPA3255-test-Setup.jpg
    943.9 KB · Views: 2,584
  • Dummy-load-rig.jpg
    Dummy-load-rig.jpg
    447.4 KB · Views: 1,100
I just stumbled across this chap (quite possibly a member here?) who, inspired by this very thread, decided to dip his toes into the treacherous waters of DIY loopback measurements:
https://enjon.uk/2019/09/01/a-diy-approach-to-distortion-measurements-for-audio-amplifiers/
I thought it would make an interesting illustration of the pitfalls to be encountered by those unfamiliar with the terrain.

1. He decided to use an existing Behringer UCA202 - which unlike the Focusrite used by xrk971 only features an unbalanced input.
Do I hear somebody say Uh-Oh there? That's right, it's ground loop time. The signal is sent round in a loop, and so is the ground. See the mains harmonics at -70..-80 dBFS in his graphs? Dead giveaway.
So how do we fix this? Should be easy enough here - inside the attenuator box, replace the black wire going to output RCA ground by a resistor of somewhere around 1 kOhm (value not critical).
A balanced input would have provided some common-mode rejection, but here there is none.

2. Maximum input level on the UCA202 is ca. 1.25 Vrms. Together with a ca. 12.7 kOhm input impedance, the 22k/2.2k voltage divider just barely covers the nominal 25 Wpc (14.14 Vrms) of the Cambridge Audio A1 used for testing, but would have to be changed for anything beyond 30 Wpc.

3. The Aneng AN8008 used for level calibration is a TrueRMS multimeter with a -3 dB bandwidth of ca. 3 kHz. Assuming that's a 1st order response, this would mean that amplitude reading on a 1 kHz signal would be about 5% or 0.46 dB out. Nothing major, but the displayed 2.830 V may actually be closer to 2.983 V. Cross-checking with a lower frequency like 100 Hz and computing a suitable correction factor may be advisable.

4. The UCA202 ADC actually isn't that much to write home about, with a fair amount of periodic ripple gracing its frequency response and and dynamic range in the 80s of dB. Better than nothing but not exactly "measurement grade".