• Welcome to ASR. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

Class D Measurement With REW

catlabzone

Member
Joined
Sep 16, 2026
Messages
5
Likes
2
Hello, I'm currently learning to analyze and measure the actual performance of the amplifiers I have on hand. Fortunately, I haven't run into any issues measuring Class AB amplifiers using a dummy load and my Zoom L8 / Steinberg UR22 mkII.

However, when measuring Class D amplifiers like the TPA3116D2, I'm getting poor THD results and a frequency response that is far from flat. I understand that some Class D amps are load-dependent, so I tried using a dummy load in series with a 22uh inductor.

My setup for Class D is: Amp - Dummy load - LPF - Pins 2/3 of the audio interface.

My LPF circuit looks like this:
1789521029990.png


Does anyone have any feedback or suggestions on how to properly and correctly measure Class D amplifiers? I'm not chasing the ultra-high accuracy of an Audio Precision or E1DA Cosmos, but I'm confident that a Class D's THD shouldn't be as high as 1–10% at low wattages
 
Hi @catlabzone! Welcome to ASR.

For his reviews of Class D Amps, Amir uses an AP AUX-0040:

Here's a DIY clone:
 
Doesn't adding a 22 uH inductor in series with an 8 ohm resistor introduce a resonance near 1 kHz? I would leave the dummy load as a pure resistance initially. You are effectively unloading the output at high frequency.

What is the frequency response of your low-pass filter? Assuming the capacitors' values are in pF, so 100,000 pF (100 nF) and 10000 pF (10 nF), the amp's output impedance is negligible, and the audio interface's input is high impedance, I get around 20 kHz -3 dB which I assume is your target? And around 30 dB attenuation. Nothing obviously wrong. I suspect the series inductance to your load is the issue, though you could also be under- or over-driving your interface. With 30 dB attenuation, a 1 Vrms signal from the amp provides about 32 mVrms (about 90 mVpp) into the interface. More details about your test conditions and results, interface, and REW settings could be helpful.

1789523249839.png
 
Last edited:
Class D numbers are dominated by how you load and filter them: the output LC is tuned for a specific load, so measuring into a different impedance skews the response, and the leftover 300-400 kHz carrier will fold into the ADC unless you band-limit with a 30 kHz/AES17 low-pass. Use short twisted leads and a proper 4 or 8 ohm high-power resistor, measure at ~1 W first, and keep the amp well below clipping. If the response still droops into the intended load, that is the amp's filter, not your setup.
 
Hi @catlabzone! Welcome to ASR.

For his reviews of Class D Amps, Amir uses an AP AUX-0040:

Here's a DIY clone:
Wow, thank you so much! Yes, I was well aware that Amir uses Audio Precision, but I had no idea there was a DIY version available. I'll definitely check it out and read up on it. Thanks again!
 
Doesn't adding a 22 uH inductor in series with an 8 ohm resistor introduce a resonance near 1 kHz? I would leave the dummy load as a pure resistance initially. You are effectively unloading the output at high frequency.

What is the frequency response of your low-pass filter? Assuming the capacitors' values are in pF, so 100,000 pF (100 nF) and 10000 pF (10 nF), the amp's output impedance is negligible, and the audio interface's input is high impedance, I get around 20 kHz -3 dB which I assume is your target? And around 30 dB attenuation. Nothing obviously wrong. I suspect the series inductance to your load is the issue, though you could also be under- or over-driving your interface. With 30 dB attenuation, a 1 Vrms signal from the amp provides about 32 mVrms (about 90 mVpp) into the interface. More details about your test conditions and results, interface, and REW settings could be helpful.

View attachment 559016
Thank you for verifying the circuit in LTspice!
To answer your question about the target: a friend who is more experienced in this area designed this filter specifically to target a 40 kHz cutoff while interfacing with my Zoom L8


. The Zoom L8 has an input impedance of around 3 kΩ and a maximum input handling of only 400 mVrms, which is why the ~30 dB attenuation is crucial.
Regarding the series inductor on the dummy load: I added it because I saw a similar measurement profile (\(Z_L = 8\,\Omega + 22\,\mu\text{H}\)) in the CS8673E datasheet, and I might have misinterpreted its purpose for a THD sweep.
Interestingly, whether I use the series inductor or a pure resistive load, the THD numbers remain consistently bad/high. I will be uploading the REW data and plots shortly in my next post to show the exact results. Thanks again for your help!
 
Class D numbers are dominated by how you load and filter them: the output LC is tuned for a specific load, so measuring into a different impedance skews the response, and the leftover 300-400 kHz carrier will fold into the ADC unless you band-limit with a 30 kHz/AES17 low-pass. Use short twisted leads and a proper 4 or 8 ohm high-power resistor, measure at ~1 W first, and keep the amp well below clipping. If the response still droops into the intended load, that is the amp's filter, not your setup.
Thank you so much for the explanation! I am quite new to this, and I just learned from the replies above that an AES17 filter exists and can be a DIY project. I will definitely look into that and try to build one.
It makes a lot of sense that the issue might be coming from the amplifier's own internal filter. When I use this amplifier normally with real speakers, it actually sounds perfectly fine to my ears without any noticeable distortion.
As suggested, I am posting the frequency response (FR) comparison graphs below. All measurements were taken with an input voltage of 400 mV and an output of 2.8 Vrms into an 8-ohm load (~1 Watt):
  1. Dummy load + 22 µH inductor + LPF
  2. Dummy load + LPF (without the inductor)
  3. Dummy load straight to the interface (without LPF, using the interface's internal PAD activated)
Here are the graphs below. I would really appreciate any guidance or feedback you can share from looking at these plots!
 

Attachments

  • fr.jpg
    fr.jpg
    64.3 KB · Views: 39
  • dummy + L + lpf.jpg
    dummy + L + lpf.jpg
    83.8 KB · Views: 38
  • dummy + lpf.jpg
    dummy + lpf.jpg
    86.9 KB · Views: 40
  • without lpf (use internal pad of zoom l8).jpg
    without lpf (use internal pad of zoom l8).jpg
    86.4 KB · Views: 51
@catlabzone Unfortunately I don't have any spare boards left, but the board and parts are pretty cheap from JLC/mouser
 
And for practical purposes, so long as your ADC isn't overloaded by the switching residue, using REW's distortion low-pass setting accomplishes almost the same thing. The analog filter is superior in many ways, but it shouldn't be required in order to get a sensible baseline measurement on a TPA3116 amp.

So I would say, get a decent baseline first (192kHz sampling, 25kHz low pass in REW). If you want more accuracy, use the analogue filter.
 
Also your 60dB THD+N indicates a broken component, or a serious an issue with your measurement setup, not anything attributable to class-D switching noise
 
Also your 60dB THD+N indicates a broken component, or a serious an issue with your measurement setup, not anything attributable to class-D switching noise
Thank you for the excellent practical advice regarding the REW settings! I didn't know about the built-in distortion low-pass filter in REW, and I will definitely try setting the sampling rate to 192 kHz with a 25 kHz low-pass cutoff to establish a better baseline.
To confirm whether my measurement setup or Zoom L8 interface was broken, I followed your suggestion and ran a baseline test using a different amplifier. I measured an LM1875 (Inverted configuration) chip amp under the exact same test conditions: 400 mV input, 8-ohm dummy load, and ~1 Watt output (2.8 Vrms).
Here is the REW plot for the LM1875 measurement.
As you can see from the graph, the measurement setup is working correctly, and the interface is performing normally with a much cleaner noise floor and vastly lower distortion compared to the previous Class D kit.
This baseline proves that my Pin 2-3 measurement path is healthy, and the high distortion numbers seem to be unique to how that specific Class D kit behaves. Thank you again for helping me narrow this down!
 

Attachments

  • lm.jpg
    lm.jpg
    88.7 KB · Views: 42
  • lm1875.jpg
    lm1875.jpg
    66.4 KB · Views: 48
I couldn't find a version of the data sheet in English after a vey quick search. I found this: https://www.alldatasheet.net/datasheet-pdf/view/1143318/YONGFUKANG/CS8673E.html

The output filter in BTL mode is a pair of 10 uH inductors and 1 uF capacitors to ground. I would try using that filter (not a single 22 uH inductor) and an 8-ohm resistor as your dummy load. Since there are two active amplifier outputs, you must place an individual filter as shown with the capacitor connected to ground (without getting into equivalence filter architectures) for each output. In BTL mode you must also ensure that the load is not grounded anywhere but placed across the two active driver terminals, so in this case your load resistor replaces the speaker in the diagram, and then your filter network goes across the resistor. That is how I set up my schematic. Hopefully your interface has, and you are using, a differential input, or common-mode swings may corrupt your results. I am suspecting you do not have the proper output filter implemented for the amplifier, and are not using a differential (truly balanced) interface input with one side grounded, and that is affecting your test. Or something else is going on.

1789535836393.png


From what I could quickly find, the LM1875 is not a BTL device, but a conventional amplifier with single-ended output and load referenced to ground. That could explain the drastically different measurements.
 

Attachments

  • 1789536472641.png
    1789536472641.png
    43.1 KB · Views: 32
Last edited:
An LM1875 should have roughly 80dB SINAD in even the most basic configuration, but you are getting 65dB. Something else is wrong
 
Back
Top Bottom