EveryCircuit
Contact
Reviews
Home
thebugger
modified 2 years ago

How to Measure THD in EC

1
5
151
01:10:00
I've always used the notch filter method in EC to suppress the fundamental frequency and measure distortion in my simulated amps, but lately I've been using this method instead, because other than initial set-up, it doesn't have any settling time, whereas the notch method takes up to 5-10 minutes to get an accurate reading. The idea behind this method is the following: 1. Make a bode plot of the output. Take note of the phase shift at the selected frequency. In this case, it's 0.201 degrees. 2. Measure the output voltage - in our case it's 6.81V 3. Add a new source in antiphase with the output and set the parameters as above (appropriate phase shift and voltage level). 4. Create a resistive bridge between the output and the new AC source. Tweak the source's voltage until you get lowest fundamental frequency amplitude at the mid-point of the resistive bridge. As they are in anti-phase, only the fundamental frequency should cancel out in the bridge and the noise should remain. For example in this example I have a 6.81V output at 0.201 degrees phase shift from the simple amplifier. I have added an AC source with 180 degrees plus 0.201 degrees phase shift, with the same amplitude to cancel out the fundamental. After canceling out, I'm getting 48mV of distortion. Measuring for the distortion we get: THD = (Vdistortion / Vout) * 100 = (0.048V / 6.81V) * 100 = 0.007 * 100 = 0.7%
published 2 years ago
592azy2circuitdude
2 years ago
Hi. This is very interesting and I want to understand it better. I hope you don't mind me asking some beginners questions. Is this distortion caused by the cross-over of the push-pull transistors?
thebugger
2 years ago
Yes, in this particular example, the crossover is the main contributor to distortion.
592azy2circuitdude
2 years ago
OK. So, does this distortion show up as a phase shift (201 milli degrees) or as a change in the shape of the output signal?
thebugger
2 years ago
The phase shift is just to synchronize the two oscillators in order to cancel out the fundamental. Everything else is distortion
592azy2circuitdude
2 years ago
The blue waveform is the distortion (right?). So the output across the 4ohm resistor has this distortion hidden in it, and your method filters that out so the distortion can be measured?

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy