Discrete audio amplifier project PT20 Measuring distortion with computer

Ғылым және технология

In this episode, I look at the feasibility of using the computer to measure the amplifier's THD.
Patreon www.patreon.com/user?u=12254451
Mail: PO box 362, Vandalia, OH 45377
Email: johnaudiotech@gmail.com
Thank You!

Пікірлер: 55

  • @johnyang799
    @johnyang7994 жыл бұрын

    Hi john. You can turn on the THD (no Noise) legend in Arta. Just in the settings. Also you can use REW as well. A little bit more clumsy software written in Java, but it can show you amplitude of all the distortion harmonics which is really convenient. Also just use 48khz. It's good enough. For 20khz distortion just use 96khz.

  • @joepalovick1915
    @joepalovick19154 жыл бұрын

    Great video! Looking forward to Part II. I would also suggest looking at the Analog Discovery2. I couldn’t find a video or very much info on the QA401 so will be interested in a review if you get your hands on one.

  • @MarcelOoms
    @MarcelOoms4 жыл бұрын

    Hope the amp will turn out well! Btw, the Digilent Analog Discovery 2 is a nice device for audio measurements over usb as well. Blueglow electronics on youtube demoed this with other software, very nice and less expensive.

  • @markanderson8066

    @markanderson8066

    4 жыл бұрын

    our ECSE students get them and thus have a "testbench" in their backpack!

  • @peteb2
    @peteb24 жыл бұрын

    Thanks for the reminder that ARTA exists... I’ve been scratching around trying to find out how I can update my old Tek scope for FFT which appears greyed out on the screen menus

  • @tangerinq
    @tangerinq4 жыл бұрын

    In the digital audio realm, you have tons of tools that could work for you. Normally these are being used in audio production. First, you could record the measured signal as audio and then selectively remove the unwanted noise with an EQ. Second, you could use some very advanced denoise plugin (such as izotope) that lets you analyze the noise pattern and then intelligently remove that from your signal. Third, you could use a service of a local recording studio where they probably have a much better audio interface.

  • @andymouse
    @andymouse3 жыл бұрын

    This is fascinating stuff...cheers.

  • @Sevalecan
    @Sevalecan3 жыл бұрын

    Awwwwww, the kitty! Wait, I was here for audio stuff!

  • @Elecifun
    @Elecifun7 ай бұрын

    Hi John, would you make a short video showing how to calibrate ARTA. I've set mine up but with looming question marks. Having you show and tell would help me immensely, and I expect many others wishing to try out their sound card for distortions measurements.

  • @KissAnalog
    @KissAnalog4 жыл бұрын

    Interesting video John! I could see the harmonics from your sine wave at 1kHz. I wonder if the peaks at over the 40kHz (i couldn’t read their frequency) were something to do with the sampling circuit of the audio card. That’s a really interesting audio box you found.

  • @clee2423

    @clee2423

    4 жыл бұрын

    and the noise around 80kHz probably the switching frequency of the PC power supply : )

  • @KissAnalog

    @KissAnalog

    4 жыл бұрын

    Nice eye Seraph!!!

  • @zodak9999b
    @zodak9999b4 жыл бұрын

    Those spikes looked to be 1 kHz above and below 44.100 kHz. You could try a 2khz fundamental tone and see if the two spikes change to 42.1 kHz and 46.1 kHz.

  • @SianaGearz

    @SianaGearz

    4 жыл бұрын

    Yes i was thinking. It looks like it's intermodulation between 1KHz and the sample rate of the MP3 player. Maybe its internal resampler. The Rockchip processors these players are built on only have a 48KHz audio output, 44.1 audio has to be resampled by firmware.

  • @PeterKese
    @PeterKese4 жыл бұрын

    The way I do it is to use the both channels of the signal generator. Both channels have 1 Khz main signal, but only one of them has the 1% 4.5KHz guard signal. I let one one with the 1% guard signal through the AMP, while the other I subtract after the attenuation. Then all that remains after subtraction is the 1% guard signal plus harmonics and noise (so your noise levels can be compared to the 1% guard signal). In addition most of the weird noises should subtract as well. In my case part of the 2 Khz harmonic was generated by the signal generator so that went away after subtracting two signals from the same source. Plus now you're 40db down (the 1% is the largest signal) and you can measure that even on scope.

  • @jimmydburrell

    @jimmydburrell

    4 жыл бұрын

    Very interesting. Are you doing this within the ARTA software or some other software tools or do you have some dedicated hardware for this?

  • @PeterKese

    @PeterKese

    4 жыл бұрын

    @@jimmydburrell I have a Steinberg USB audio interface that has balanced inputs, so I just use the input circuitry to subtract both input channels (the one that goes through the Amp and the one that I use for reference). If you don't have balanced inputs, then just create a sound track with the one channel inverted - then a simple potentiometer is all you need: just match both levels until the master signal disappears. As for the oscilloscope software, any will do. I have been playing around with writing one myself - it works in web browser uses web audio interfaces for input and output. Albeit when I was playing with that, the web-audio standard was not completely supported in all browsers. I guess now (a year later) I should revisit that project. The good part was that I could write my own signal generators and mixers have them both in the same interface with the scope. Otherwise the whole point of that 'subtraction' approach is that after subtracting two signals, your 4.5 KHz 1% (or 0.1%) is the new reference signal, whereas the main 1 KHz signal is nullified. So you get much more dynamic depth - at 40 or 60 db down, even a cheap sound input will give you quite good accuracy.

  • @jimmydburrell

    @jimmydburrell

    4 жыл бұрын

    @@PeterKese Thanks for the tips. Inverting everything but the 1% test signal should work for me as a subtraction method, leaving nothing but the distortion. Great idea.

  • @MassimoTava
    @MassimoTava4 жыл бұрын

    I hope keysight notices you one of these days

  • @Gengh13
    @Gengh134 жыл бұрын

    Those tones are 1khz from 44.1khz, maybe some mixing between a 44.1khz clock (DAC clock?) and your output signal, I bet if you generate a 2k test signal those spikes will be at 42.1 and 46.1khz.

  • @x86FTW
    @x86FTW4 жыл бұрын

    Those peaks in the 40+ Khz range might be due to having the sampling rate too high as it seems to be around the nyquist frequency of 96Khz sampling rate. Try setting 44.1 or 48Khz as the sampling rate.

  • @JelckedeBoer
    @JelckedeBoer4 жыл бұрын

    Interesting stuff. How did you setup/make the attinuator part of this setup?

  • @JohnAudioTech

    @JohnAudioTech

    4 жыл бұрын

    A voltage divider using resistors.

  • @lightbit553
    @lightbit5534 жыл бұрын

    You could try Room EQ Wizard.

  • @eatshitgoogle
    @eatshitgoogle4 жыл бұрын

    Fascinating! Now, couldn't those peaks at 43k and 45k be related to your music players DSP, considering they only show up when the signal is playing? If so, maybe try using a cellphone to play the signal instead? Also, it's said that integrated audio cards are usually sensitive to the noise from other components on the motherboard. So maybe a cheap external USB audio device could help? Like maybe a Behringer UCA 202.

  • @sonnywilliams6566

    @sonnywilliams6566

    4 жыл бұрын

    I use Keuwlsoft's Function Generator app on my phone.

  • @dantheman1998
    @dantheman19984 жыл бұрын

    Are you going to release the amp as open source or you going to sell it on your own? Any other designs after your done with this one?

  • @JohnAudioTech

    @JohnAudioTech

    4 жыл бұрын

    Schematic and layout is fee for all (when it is finished). I announced other projects in a video not too long ago.

  • @tc-bladeofgrass6719
    @tc-bladeofgrass67194 жыл бұрын

    Hey John, thanks for another fantastic video, I've been following this project from the start. I don't suppose you could help me out, I'm looking for a simple circuit for an attenuator with the protection circuit that you mention in this video.

  • @andymouse

    @andymouse

    3 жыл бұрын

    Probaly a bit late but they show you how to make one in the ARTA manual.

  • @tc-bladeofgrass6719

    @tc-bladeofgrass6719

    3 жыл бұрын

    @@andymouse hey thanks for your reply. Yes a bit late, i solved this issue by using a DAC with a dedicated volume control with the amp which I'd built

  • @clee2423
    @clee24234 жыл бұрын

    what kind of attenuator do you use, and what the value of the attenuator for your amplifier, i have a amplifier with lm3886 chip, with + - 35v supply, what value of attenuator should i use

  • @JohnAudioTech

    @JohnAudioTech

    4 жыл бұрын

    I would use metal film resistors at the appropriate ratio needed. I will cover this in the next video.

  • @clee2423

    @clee2423

    4 жыл бұрын

    @@JohnAudioTech great !!!, my amplifier project almost finish, just waiting for my transformer to arrived, and hopefully i can do the measurement soon, even though its not really the best way to do it, but its good enough for me, hopefully my PC soundcard have a pretty low noise profile, and i'm excited to see your next video about the measurement technique, btw nice video, and hopefully i can sent you some of amplifier pcb that designed by my fellow countryman, i'll try to include the parts too, if i cant, i just send the PCB and the BOM along, so you can try to build it and do a measurement too

  • @johnyang799
    @johnyang7994 жыл бұрын

    Finally

  • @marttiinnanen4911
    @marttiinnanen49114 жыл бұрын

    FYI there is an excellent free tool called Room EQ Wizard that allows you to do audio measurements. It's far more useful than ARTA.

  • @aksela6912
    @aksela69124 жыл бұрын

    Have you tried RMAA - RightMark Audio Analyzer? I remember when i was active on Head-Fi that whas what most of the amateur amplifier designers were using. NwAvGuy did a write-up on it back in '11: nwavguy.blogspot.com/2011/02/rightmark-audio-analyzer-rmaa.html

  • @martindz8457
    @martindz84574 жыл бұрын

    I usually use the RMAA program. audio.rightmark.org/products/rmaa.shtml

  • @user-cb8hq8hf7r
    @user-cb8hq8hf7r4 жыл бұрын

    There is a free program "RightMark Audio Analyzer" with a accurate results of measuring.

  • @AlienRelics

    @AlienRelics

    4 жыл бұрын

    Not free, shareware.

  • @user-cb8hq8hf7r

    @user-cb8hq8hf7r

    4 жыл бұрын

    @@AlienRelics RMAA 6.4.5 is available for free, the RMAA 6.4.5 PRO is also available with a number of features not present in the freeware version. This I read from a program site.

  • @aljenkins9748
    @aljenkins97484 жыл бұрын

    ....@11:41 , believe 60dB would be 1/10 of one per cent for the pilot signal . . ...... ......... shalom,a.j.

  • @aljenkins9748

    @aljenkins9748

    4 жыл бұрын

    ....my Apology - - i see ur corrected presentation @12:35 . . .......shalom,a.j.

  • @micomrkaic
    @micomrkaic4 жыл бұрын

    Using your music player and your pre amp is not a good idea to generate the test signal. You should use ARTA's internal generator. It is much more accurate.

  • @JohnAudioTech

    @JohnAudioTech

    4 жыл бұрын

    I tried a loop back direct from output to input but was seeing spikes at higher frequencies.

  • @micomrkaic

    @micomrkaic

    4 жыл бұрын

    @@JohnAudioTech How high were those frequencies? What was the THD of the loop back signal?

  • @jimmydburrell

    @jimmydburrell

    4 жыл бұрын

    I have the same issue(s) with my sound card, so I am doing the same thing and using an external source.

  • @SianaGearz

    @SianaGearz

    4 жыл бұрын

    @@JohnAudioTech I'm thinking on the MP3 player at least use a 48KHz file. This way you can avoid intermodulation byproducts of resampler from 44.1 KHz to 48KHz.

  • @mansionese
    @mansionese4 жыл бұрын

    20:13 smells like dragon's breath :v :v

  • @1pcfred
    @1pcfred4 жыл бұрын

    That's the trouble with electronics. There's too much expensive gear involved.

  • @fredfabris7187

    @fredfabris7187

    4 жыл бұрын

    Paul Frederick it is a fact that new gear is expensive, but for most audio diagnostic work 50-30 year old test equipment is good enough. Don’t be fooled that you need the high price stuff

  • @1pcfred

    @1pcfred

    4 жыл бұрын

    @@fredfabris7187 that's all well and good when it comes to audio electronics I suppose. While I'm mildly interested in audio gear it is not my main focus. Combining digital and power electronics is.

  • @sonnywilliams6566
    @sonnywilliams65664 жыл бұрын

    That quantasylum looks good with the red face and white screen print. I'd like to make some headphone and small amps like that with brushed red anodized or red powder coat.

  • @sonnywilliams6566
    @sonnywilliams65664 жыл бұрын

    I've got $50 riding on .06%

  • @slap_my_hand
    @slap_my_hand4 жыл бұрын

    That "audio analyzer" probably just has a USB DAC / ADC with some filtering on the power rails in it. If you want to get more than 120 db signal to noise, you'll need toput a bandpass filter on the output, separate the fundamental from the harmonics on the input and measure them separately.

Келесі