0% found this document useful (0 votes)
10 views5 pages

Simple THD Measurement

Following the building of a few power amps, curiosity dictated the need to find what sort of harmonic distortion these amplifiers produced. Some people prefer 2nd harmonic whilst others prefer 3rd harmonic. A usable approach seemed to be this, recommended by SveinB.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views5 pages

Simple THD Measurement

Following the building of a few power amps, curiosity dictated the need to find what sort of harmonic distortion these amplifiers produced. Some people prefer 2nd harmonic whilst others prefer 3rd harmonic. A usable approach seemed to be this, recommended by SveinB.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Measuring Total Harmonic Distortion(thd) - a simple approach

1. The Objective. Following the building of a few power amps, some from published circuits and some from scratch, curiosity dictated the need to find what sort of harmonic distortion these amplifiers produced. There are a few different types of distortion of interest to amplifier designers, such as intermodulation distortion(IMD) and noise distortion, but this is a fairly rudimentary exercise and is limited to harmonic distortion. Having built a number of Nelson Pass's amplifiers, and read the accompanying background, curiosity was further fired with the discussion that revolved around preference for certain types of harmonic distortion. It would seem that some people prefer 2nd harmonic whilst others prefer 3rd. The predominance of one or the other would seem to give a different presentation.

2. The Method From research it would seem there are a number of methods for determining harmonic distortion level, chief amongst them seemingly to purchase a purpose built distortion analyser such as HP333A. In its most basic form the same can be achieved by applying a notch filter to isolate the harmonic frequencies. This exercise relates to a budget approach and uses a pc, soundcard, studio recording software, and FFT spectrum analyser. No matter which approach, the method involves presenting a clean sine wave to the amplifier and measuring the output of the amplifier at the fundamental frequency together with the output at all the harmonic frequencies. By summing the power of all the harmonics, the percentage relationship to the fundamental can be determined. It is this percentage relationship figure which seems to be favoured in the advertising for mainstream amplifiers.

3. The Signal Initially it was decided to build a clamp/buffer to attenuate the output from the amplifier, prompted by reading various reports explaining how easy it was to fry a sound card. It proved difficult to find a standard or even any input specs for sound cards in regard to voltage tolerance, so the question was put on the Diyaudio forum.

Ed Swift - Vitalstates Ltd 2010

Page 1 of 5

7.6.10

A usable approach seemed to be this, recommended by SveinB.

The above circuit is configured for microphone input. The voltage divider was configured to produce 0.775vrms(representing 0db) when the output from the amplifier was 2.83vrms(1watt), which seemed a good starting point. The voltage divider used was 2k2 and 820R with 2.4v zeners. This seemed to present ample protection for even the most timid of soundcards.

A future enhancement to the buffer is planned, to incorporate a switchable voltage divider. This would allow input voltages of 4, 4.9, 5.65, 6.33 etc, representing the amplifier output at 2, 3, 4, and 5 watts. Further, it has been suggested that the zener clamp may itself introduce a factor of distortion. Future testing will involve measurement without the zener diodes in place.

Ed Swift - Vitalstates Ltd 2010

Page 2 of 5

7.6.10

4. The Measurement. The pc originally earmarked for the exercise was that used for studio recording, principally because it had a high spec digital interface. This was the reason for wanting a clamp. In reality the discovery of a usable USB audio interface allowed a cheap Samsung netbook to be used. The soundcard/interface used here was the Behringer UCA222 [ref1]which came bundled with free recording software. The UCA222 unit seems to work better with the ASIO4ALL [ref2]drivers, but this may vary from machine to machine. The free recording software, energyXT[ref3] works perfectly well as the host for the spectrum analyser. It should be noted that any recording software should be capable of running this spectrum analyser providing it can support the VST plugin standard[ref4] and at the same time allow hardware monitoring. The analyser used here was the VST plugin 'span' produced by Voxengo[ref5] which proved more than adequate for producing the required rudimentary graph. To make life super easy, a version of the span plug-in is also provided in the Behringer bundle. The measurement chain:
LFM4 Signal generator Amplifier Clamp/buffer PC EnergyXT/span

With the set-up described and shown here

Ed Swift - Vitalstates Ltd 2010

Page 3 of 5

7.6.10

The following graph was produced

5. The Calculation Using the previous graph as an example the following readings were extracted: F2 F3 F4 F5 -39dbu -49dbu -68dbu -81dbu 0.008vrms 0.002vrms 0.0003vrms 0.00006vrms

The Db figures were converted into Vrms using the conversion calculator found here: [ref6] The voltages were squared and added together and the square root of the result was obtained. The relationship of this result to 0db voltage was then deemed to be the percentage thd figure. In this example 1.06%. A detailed explanation of this calculation can be found on wikipedia at the following location: [ref7]

Ed Swift - Vitalstates Ltd 2010

Page 4 of 5

7.6.10

6. Conclusions

It is considered that the precision of the equipment used here is probably not going to compete with a dedicated distortion analyser. However, for the purposes of this exercise, roughly determining the percentage thd and highlighting the type(i.e 2nd or 3rd etc) is thought to be perfectly adequate in terms of precision. It is worth noting that similar results could probably be obtained on an even tighter budget by substituting the signal generator for a software version. Using a software signal generator may introduce its own harmonic distortion in which case it may produce less accurate results.

7. References.

Ref1: Ref2: Ref3: Ref4: Ref5: Ref6: Ref7:

[Link] [Link] [Link] [Link] [Link] [Link] [Link]

Ed Swift - Vitalstates Ltd 2010

Page 5 of 5

7.6.10

Common questions

Powered by AI

Ed Swift proposed using a budget-friendly approach involving a PC, sound card, studio recording software, and an FFT spectrum analyzer. This method involves applying a notch filter to isolate harmonic frequencies and using a sine wave to measure the amplifier's output at various harmonic frequencies to calculate THD .

Substituting a hardware signal generator with a software version might introduce its own harmonic distortion, potentially resulting in less accurate THD measurements .

To prevent damage to the soundcard, a voltage clamp/buffer was implemented, using a voltage divider and zener diodes to ensure that the input voltage remained within a safe range for the soundcard .

The precision of Swift's setup cannot compete with dedicated distortion analyzers. While it can adequately determine THD percentage and type, results might not be as precise due to the budget equipment used .

Certain people prefer amplifiers with predominant 2nd harmonic distortion, while others prefer those with 3rd harmonic distortion. The predominance of one over the other affects the presentation style of the amplifier, possibly providing a different audio experience .

Ed Swift suggests converting decibel measurements to voltage RMS, squaring these voltages, summing them, and taking the square root of the result. This value, related to the 0db voltage, gives the percentage THD .

It was suggested to incorporate a switchable voltage divider into the clamp/buffer, allowing for various input voltages to accommodate different amplifier output powers. Additionally, future testing without zener diodes, which might introduce distortion, was recommended .

A voltage clamp/buffer was considered necessary to attenuate the amplifier's output and protect the soundcard from excess voltage, as soundcard input voltage tolerance standards were unclear .

FFT spectrum analysis is used to isolate harmonic frequencies of the amplifier’s output, allowing precise measurement of these frequencies for calculating the total harmonic distortion .

The Behringer UCA222 served as a low-cost USB audio interface enabling the use of a Samsung netbook for measurement. It was effective with ASIO4ALL drivers, working well with the EnergyXT and Voxengo SPAN plugin for spectrum analysis .

You might also like