Balanced Soundcard Interface for Power Amplifier Distortion Measurement - diyAudio
Go Back   Home > Forums > Amplifiers > Pass Labs

Pass Labs This forum is dedicated to Pass Labs discussion.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 21st October 2011, 06:26 PM   #1
lhquam is offline lhquam  United States
diyAudio Member
 
Join Date: Mar 2010
Location: Olalla, Oregon: Land of the 100 Valleys
Default Balanced Soundcard Interface for Power Amplifier Distortion Measurement

This thread describes a simple interface to an M-Audio Audiophile-192 (AP-192) balanced soundcard for measuring the distortion of balanced and unbalanced amplifiers. Equivalent results should be obtainable using other high-quality soundcards. Although the results shown are for the Pass F5 unbalanced amplifier, the same circuits are applicable to balanced amplifiers.

Background:

About a year ago I built multiple channels of the Nelson Pass F5 amplifier, but had no objective way (other than my ear) to measure their performance. I built a Cordell Distortion Magnifier (DM) and installed an M-Audio Audiophile-192 soundcard on my Linux machine. After some modifications to the DM, I had very good results tweaking the F5 performance. But, I discovered that the AP-192 by itself could measure distortions to below .001%, without needing the Distortion Magnifier.

Relevent Specifications of the AP-192:

See M-AUDIO - Audiophile 192 - High-Definition 4-In/4-Out Audio Card with Digital I/O and MIDI

. 24-bit, 192KHz max
. Balanced inputs and outputs
. Max input voltage: 4 V rms (5.66 V peak)
. Input impedence: 20K balanced, 10k unbalanced.
. Max output voltage: 1.95 RMS unbal (2.8V peak)

In order to protect the AP-192 soundcard input from overload due to the full output voltage of the amplifier, a 4:1 resistive attenuator is placed between the amplifier output and the soundcard input.

Requirements for testing the F5:

. Unbalanced inputs and outputs

. Maximum output signal of 20V peak for 25W into 8 ohms.

. Amplifier Gain: 6x
(Note: 6 x 2.8V = 16.8V attainable from AP-192 output)

Note that the F5 channel being tested was built using Cviller V1.1 boards and matched Toshiba 2SK1530 and 2SJ201 MOSFETs. This F5 channel also contains the P3 potentiometer described in F5 power amplifier, which was adjusted for minimum 2nd harmonic distortion.

Shown below are schematics for both a balanced and unbalanced amplifier, and a spectrum measurement of the F5 output at 1.05KHz 1 watt output into 8 ohms.

Final warning: Since there is no protection against overloading your soundcard input, be careful to provide an appropriate attenuation ratio the resistor dividers.
Attached Images
File Type: jpg bal-interface.jpg (60.3 KB, 1360 views)
File Type: jpg unbal-interface.jpg (63.4 KB, 1353 views)
File Type: jpg F5-1R-x1.jpg (66.3 KB, 1326 views)
  Reply With Quote
Old 21st October 2011, 06:40 PM   #2
Did it Himself
diyAudio Member
 
richie00boy's Avatar
 
Join Date: Nov 2003
Location: Gloucestershire, England, UK
What do you use on Linux to measure and generate tones?
__________________
www.readresearch.co.uk my website for UK diy audio people - designs, PCBs, kits and more.
  Reply With Quote
Old 21st October 2011, 08:58 PM   #3
lhquam is offline lhquam  United States
diyAudio Member
 
Join Date: Mar 2010
Location: Olalla, Oregon: Land of the 100 Valleys
Sorry, but I forgot to mention that all of my measurements are made using the Sillanumsoft Visual Analyser Visual Analyser 2011 XE software, which runs natively on Windows and on Linux using Wine.
  Reply With Quote
Old 22nd October 2011, 05:40 PM   #4
Did it Himself
diyAudio Member
 
richie00boy's Avatar
 
Join Date: Nov 2003
Location: Gloucestershire, England, UK
Thanks, use Windows anyway so even better!
__________________
www.readresearch.co.uk my website for UK diy audio people - designs, PCBs, kits and more.
  Reply With Quote
Old 22nd October 2011, 05:46 PM   #5
diyAudio Member
 
Zero Cool's Avatar
 
Join Date: Sep 2004
Location: MN
I am using the Echo Mia sound card that has balanced inputs in a dedicated Lunchbox style computer for Spectrum Analysis using the SMAART software with good results as well!
__________________
It's not about what you can BUY...It's about what you can BUILD!
  Reply With Quote
Old 22nd October 2011, 06:50 PM   #6
Tea-Bag is offline Tea-Bag  United States
not politcally affiliated
diyAudio Member
 
Tea-Bag's Avatar
 
Join Date: Feb 2006
Location: Kennebunk
Blog Entries: 7
THIS thread could not have come at a better time, just got the same sound card for the same porposes, and was wondering about measuring an amp.
  Reply With Quote
Old 23rd October 2011, 06:33 PM   #7
lhquam is offline lhquam  United States
diyAudio Member
 
Join Date: Mar 2010
Location: Olalla, Oregon: Land of the 100 Valleys
Default Interpreting THD measurements

Some of you who know better are suspicious (or should be) of the .0007% THD measurement shown in the spectrum plot in post #1. I have made distortion measurements of the same F5 board using the Cordell Distortion Magnifier (DM) and measure a THD of around .0011%. Both sets of measurements are repeatable. I do not believe that these results are due to random measurement error.

Here is an partial explanation for difference in the THD measurements:

The M-Audio AP-192 DAC(D-to-A converter) and ADC (A-to-D converter) introduce harmonic distortion to analog chain. The M-Audio spec sheet provides ADC THD=.0006% and DAC THD=.0023%, at 1 KHz and 2 V RMS signal levels.

When a signal is passes thru a chain of distorting elements, each component in the chain contributes, in a complex fashion, to final output signal. Thus if we pass a pure sine wave of amplitude X[f] at frequency f, thru a distorting element with harmonic coefficients H[i], we get signal whose spectrum is:

Y[i*f] = H[i] * X[f]

Consider a chain of 2 distorting components with coefficients H1[i] and H2[i]. If H[i]/H[1] are very small for i>1, then second order distortions such as produced when the the harmonic i*f passes thru H2[j] for i>1 an

H3[i] = H1[i] + H2[i]

What is critical to understand is that the harmonic coefficients H[i] are COMPLEX NUMBERS. They represent both a scaling and phase-shift of the signal. Depending on the phase-shifts, distortions in the component chain can reinforce or cancel one another.

BRACKETING THE AMPLIFIER THD:

To determine the error bounds on the amplifier THD measurement, you must measure both the loopback THD
of the soundcard, and the total THD of the DAC, AMP, and DAC analog chain.

THD_total - THD_lb <= THD_amp <= THD_total + THD_lb

Shown below are 4 measured spectra for the F5 board. They provide the soundcard loopback measurement and
combined amplifier measurements using the soundcard interface in post #1, and using the Cordell Distortion Magnifier (DM).

MEASUREMENTS USING THE CORDELL DISTORTION MAGNIFIER:

The DM measurements were made using x10 magnification, where the harmonic components (other than the fundamental) are multiplied by x10 (+20db).

Thus loopback THD of .0010 becomes .0001.

THD_loop = .0001
THD_total = .0011

.0010% <= THD_amp <= .0012

Soundcard caused distortions are attenuated by a factor of 10 using the DM in x10 mode, thus THD_total is
mostly influenced bt the distortions of the amplifier.

MEASUREMENTS USING THE RESISTOR DIVIDER INTERFACE OF POST #1:

THD_loop = .0006
THD_total = .0007

.0001% <= THD_amp <= .0013

Thus using the interface of post #1, it appears that the soundcard distortions are out-of-phase with the F5 amplifier distortions, thus causing significant harmonic cancellation.

I hope this helps to explain how to interpret the THD measurements.
Attached Images
File Type: jpg loopback-mag10.jpg (62.6 KB, 1183 views)
File Type: jpg F5-1R-mag10.jpg (62.6 KB, 1150 views)
File Type: jpg loopback-noDM-unbal.jpg (61.8 KB, 250 views)
File Type: jpg F5-1R-resdiv.jpg (65.9 KB, 253 views)
  Reply With Quote
Old 23rd October 2011, 07:05 PM   #8
diyAudio Member
 
buzzforb's Avatar
 
Join Date: Oct 2010
Location: Burlington, NC
Great thread. Huge help to a noob like me. One question, How good is the signal generator quality of the soundcard. Many suggest a standalone unit.
  Reply With Quote
Old 23rd October 2011, 07:51 PM   #9
lhquam is offline lhquam  United States
diyAudio Member
 
Join Date: Mar 2010
Location: Olalla, Oregon: Land of the 100 Valleys
Quote:
Originally Posted by buzzforb View Post
Great thread. Huge help to a noob like me. One question, How good is the signal generator quality of the soundcard. Many suggest a standalone unit.
My configuration is M-Audio AP-192 and Sillanumsoft Visual Analyser running under Wine on Linux. For some reason, the anti-aliasing shelf filters of the DAC and ADC are being set to 20 KHz for all sample rates, thus making useful harmonic analysis impossible above about about 6 KHz fundamental.

Because of the way that the Cordell Distortion Magnifier does its nulling of the fundamental test frequency, distortion components from the DAC are also subtracted. This means that the loopback measurements thru the DM are measuring mainly the distortions due to the ADC. This suggests that the difference between the loopback measured without and with the DM might be a reasonable estimate of the DAC THD.

Using the data given above, that gives THD_DAC in the range .0005 to .0007.

OTOH, the M-Audio spec sheet says that the DAC THD+NOISE is .0023% at 1 KHz -1db below full output.

Bottom line: Without a super-duper low distortion signal generator, I cannot be sure.
  Reply With Quote
Old 24th October 2011, 01:37 AM   #10
skidave is offline skidave  United States
diyAudio Member
 
skidave's Avatar
 
Join Date: Jul 2006
Location: York, Pennsylvania
lhquam,

Thanks for the info and the thread. Just a few days ago I started this thread THD & IM Software Suggestions

I was looking at RealRTA, then I saw ARTA and now you are using Visual Analyzer and there is SMAART.

Have you used anything other than Visual Analyzer?

I read your post about the Cordell DM, but it sounds like it is truly not necessary. I'm still going through all of your data and I appreciate your input.

Thanks,

Dave
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Test & Measurement interface for Soundcard pmillett Tubes / Valves 696 12th May 2014 04:23 PM
anyone built an amplifier Distortion measurement circuit steevo Solid State 16 3rd May 2010 05:46 PM
Recommendations on pc audio interface for loudspeaker measurement diypole Multi-Way 9 15th July 2009 12:45 PM
Tenma Speaker Measurement Interface johngalt47 Multi-Way 1 6th January 2007 02:17 AM
Soundcard interface. Mr Evil Everything Else 5 12th July 2005 11:38 PM


New To Site? Need Help?

All times are GMT. The time now is 12:12 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2