Author Topic: Analog Disovery as Audio Analyzer  (Read 72695 times)

0 Members and 1 Guest are viewing this topic.

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Analog Disovery as Audio Analyzer
« on: December 10, 2015, 05:30:03 pm »
First off, I know a lot of people on this board got some some misconception that audio is not engineering and everything sounds the same due to many of Dave's comments on the subject. If you feel this way, feel free to skip this thread.

Anyway, there is a lot of interesting engineering associated with audio. Personally I wanted to do some measurements on a couple of amplifiers using the software supplied with my Digilent Analog Discovery unit, but I really find it somewhat limited for this purpose, sure it will do most measurements, but it's very time consuming and the supplied software is a little buggy, not always showing the truth.

I am aware using a PC soundcard is an option (even up to 24 bits/low bandwidth) but I find the sound card option being somewhat limited as you don't know what level you are testing at and often very fiddly to configure.

The Analog Discovery is "only" 14 bits, so limited on the dynamic range, but on the positive side it's got up to ~10MHz+ bandwidth. Anyway, as I got some experience with the API from other projects, I have decided to write some dedicated software for this purpose.

Primary purpose is amplifier measurements.
Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 
The following users thanked this post: Heffa

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #1 on: December 10, 2015, 05:31:17 pm »
Here the screen to measure THD+N vs frequency at a specific power/output level:



Note, minimum THD+N is about 0.01% due to limitations in the Discovery unit. But unlikely anyone can identify distortion that low anyway, especially considering even the best speakers distort 0.1% +++ in an anechoic chamber without any reverberations. Living room conditions is unlikely to every be below 1% distortion even a low levels.

More important is the ability to analyze the harmonics causing the distortion, generally even harmonics are considered much more pleasant than odd harmonics.
« Last Edit: December 10, 2015, 06:04:51 pm by jaxbird »
Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline Lightages

  • Supporter
  • ****
  • Posts: 4314
  • Country: ca
  • Canadian po
Re: Analog Disovery as Audio Analyzer
« Reply #2 on: December 10, 2015, 05:38:08 pm »
Who said that audio electronics is not an engineering topic? It is very much so! I think you are mistaking the disdain here for woo woo claims in the audiphool realm as a disdain for all subjects about audio. Not so.

Looks like you have a winner there with that set up. The Analog Discovery is a great bit of kit and it is very capable of doing many things for a cheap price. I could only dream of having those capabilities when I was younger.

What amplifier are you measuring in that image?
 

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #3 on: December 10, 2015, 05:48:21 pm »
Who said that audio electronics is not an engineering topic? It is very much so! I think you are mistaking the disdain here for woo woo claims in the audiphool realm as a disdain for all subjects about audio. Not so.

Looks like you have a winner there with that set up. The Analog Discovery is a great bit of kit and it is very capable of doing many things for a cheap price. I could only dream of having those capabilities when I was younger.

What amplifier are you measuring in that image?

Thanks, I agree, unfortunately some seem to lack the insight to discern the difference e.g. I've seen using a film capacitor instead of a ceramic as coupling being called audiophoolery, instead of common sense.

Anyway, thanks for the positive comment, much appreciated.

This is a measurement of a tiny little class D amplifier based on a Tripath chip, I will post more details.



Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #4 on: December 10, 2015, 05:51:17 pm »
Here measuring the output level vs % THD+N, useful to know how many watts you can expect from an amplifier with a specific load:



Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: Analog Disovery as Audio Analyzer
« Reply #5 on: December 10, 2015, 05:56:40 pm »
Who said that audio electronics is not an engineering topic? It is very much so! I think you are mistaking the disdain here for woo woo claims in the audiphool realm as a disdain for all subjects about audio. Not so.

Thanks, I agree, unfortunately some seem to lack the insight to discern the difference e.g. I've seen using a film capacitor instead of a ceramic as coupling being called audiophoolery, instead of common sense.

I second this. It's pretty hard to bring up any discussion of audio quality and design without the "everything is bullshit" brigade coming out. It's a cheap and easy way for people with a limited knowledge of engineering to look smart to their peers.

Subscribed, not so much for audio as for Clever Use of Analog Discovery. It's a neat little doohickey :-+
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #6 on: December 10, 2015, 06:22:32 pm »
I second this. It's pretty hard to bring up any discussion of audio quality and design without the "everything is bullshit" brigade coming out. It's a cheap and easy way for people with a limited knowledge of engineering to look smart to their peers.

Subscribed, not so much for audio as for Clever Use of Analog Discovery. It's a neat little doohickey :-+

Thanks, appreciate your contribution, hope it will help define the border between actual engineering and foolery, it's really a difficult topic as often some foolery claims are indeed somewhat true at high frequencies, but completely negligible below 20kHz.

Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #7 on: December 10, 2015, 06:31:51 pm »
This is the board I'm testing here: (it's a small class D amplifier)




This is the test setup:




Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #8 on: December 10, 2015, 06:53:24 pm »
Short video demonstrating the functionality implemented so far, it's still work in progress:



Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline mtdoc

  • Super Contributor
  • ***
  • Posts: 3575
  • Country: us
Re: Analog Disovery as Audio Analyzer
« Reply #9 on: December 10, 2015, 06:54:22 pm »
Very cool. Any chance you'll be releasing your "Audio Analyzer Suite"?

I just recently upgraded to the Waveforms 2015 software (now available for Linux, MacOS and ARM!) .  I like the changes they've made.  Your applications seems like a very useful addition. :-+
 

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #10 on: December 10, 2015, 07:06:36 pm »
Very cool. Any chance you'll be releasing your "Audio Analyzer Suite"?

I just recently upgraded to the Waveforms 2015 software (now available for Linux, MacOS and ARM!) .  I like the changes they've made.  Your applications seems like a very useful addition. :-+

Sure, as soon as I am somewhat happy with it :). This is just a very early version. I do want to add a small plug in PCB design. The Discovery unit max input is +/- 25V, that is a bit limited for testing larger amplifiers, so adding a small board with a programmable divider is needed. Plus perhaps some phono jacks or just screw terminals and perhaps some added protection to make sure the unit is never damaged.

I haven't tried the Waveforms 2015, my current version is 2.7.5 and it's got some bugs, not so obvious ones, but I've noticed it doesn't always display the spectrums correctly depending on settings.

My goal is to make it really easy to do audio measurements.
Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Analog Disovery as Audio Analyzer
« Reply #11 on: December 11, 2015, 04:28:26 am »
Nice, Also I'm going to upgrade to Waveforms 2015 since I saw the new Analog Digital Discovery 2 and had a link to the updated software, but have not had a chance.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 16664
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #12 on: December 11, 2015, 06:53:37 am »
I second this. It's pretty hard to bring up any discussion of audio quality and design without the "everything is bullshit" brigade coming out. It's a cheap and easy way for people with a limited knowledge of engineering to look smart to their peers.

OK, I'm here now. What audio bullshit are we discussing today? My $100 system sounds fine to me.

 

Online moffy

  • Super Contributor
  • ***
  • Posts: 1735
  • Country: au
Re: Analog Disovery as Audio Analyzer
« Reply #13 on: December 11, 2015, 07:07:52 am »
Really nice plots and board. Have you tried THD+N vs frequency for your D Class amp yet? That would be interesting. Also even though it is 14 bits can't you oversample to increase your resolution?
 

Offline rjeberhardt

  • Regular Contributor
  • *
  • Posts: 62
  • Country: fr
Re: Analog Disovery as Audio Analyzer
« Reply #14 on: December 11, 2015, 11:49:16 am »
Can you do intermodulation distortion with that kit?  I've often thought that intermodulation is more significant than THD especially when you see how THD rises at higher frequencies.  Music is almost never just a single tone.

Russell.
Retired Chartered Engineer
 

Offline RobK_NL

  • Frequent Contributor
  • **
  • Posts: 250
  • Country: nl
Re: Analog Disovery as Audio Analyzer
« Reply #15 on: December 11, 2015, 02:45:46 pm »
This is the board I'm testing here: (it's a small class D amplifier)
It would be interesting to see if you can actually measure any difference between the two channels, seeing as how you've got a broken filter inductor on channel 2  :)
Tell us what problem you want to solve, not what solution you're having problems with
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: Analog Disovery as Audio Analyzer
« Reply #16 on: December 11, 2015, 02:46:48 pm »
Can you do intermodulation distortion with that kit?  I've often thought that intermodulation is more significant than THD especially when you see how THD rises at higher frequencies.  Music is almost never just a single tone.

Russell.

That should be possible, in theory.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #17 on: December 11, 2015, 06:17:27 pm »
Can you do intermodulation distortion with that kit?  I've often thought that intermodulation is more significant than THD especially when you see how THD rises at higher frequencies.  Music is almost never just a single tone.

Russell.

That should be possible, in theory.

Indeed, should be doable, and a feature I surely will add. The Discovery unit includes a dual 100Msps DAC and the API exposes functions to produce regular waves (sine, square, triangle plus modulation) but not multitone directly, however it is possible to pass a 4k sample buffer and have it played back at a specified sample rate, so the challenge would be producing a continuous/repeating buffer with 2 tones without glitches. Should be doable with the common 19+20kHz test signal.

Then just display the spectrum from e.g. 20Hz to 30kHz and it should give a good view of the intermodulation distortion performance.

Another option would be to just combine the two waveform channel outputs with some resistors to form the dual tone test signal. (this I have tried already and it works fine)

If anyone got a good formula for creating a continuous/glitch free buffer with 2 or more frequencies, I'd be grateful as it would save some time :)

Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #18 on: December 11, 2015, 06:28:33 pm »
Nice, Also I'm going to upgrade to Waveforms 2015 since I saw the new Analog Digital Discovery 2 and had a link to the updated software, but have not had a chance.

Thanks, Just installed the Waveforms 2015 version 3.1.5, the UX is better and it's easier to access/switch between instruments. Have not done a lot of testing, but it appears they have actually removed some features  :o, or maybe I just can't find them.

Really I just wanted to know if they made any API changes, but everything I've written is compatible, so it seems no API changes, the API already had the features needed for a variable output PSU as now available in Discovery V2.

Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: Analog Disovery as Audio Analyzer
« Reply #19 on: December 11, 2015, 08:08:26 pm »
First off, I know a lot of people on this board got some some misconception that audio is not engineering and everything sounds the same due to many of Dave's comments on the subject.
:-DD my alias gets me into shit every time with some members around here, yet i have no association with audio only.
 

Offline rjeberhardt

  • Regular Contributor
  • *
  • Posts: 62
  • Country: fr
Re: Analog Disovery as Audio Analyzer
« Reply #20 on: December 12, 2015, 08:02:51 am »
]
Indeed, should be doable, and a feature I surely will add.
Thanks. Could give some interesting results.

Russell.
Retired Chartered Engineer
 

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #21 on: December 12, 2015, 10:10:17 pm »
Spent some hours today adding new features, first frequency response, pretty straight forward. Will show scale either referenced to input signal or referenced at 1kHz level.



« Last Edit: December 12, 2015, 10:12:19 pm by jaxbird »
Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline jaxbirdTopic starter

  • Frequent Contributor
  • **
  • Posts: 778
  • Country: 00
Re: Analog Disovery as Audio Analyzer
« Reply #22 on: December 12, 2015, 10:14:44 pm »
Also been playing around with the intermodulation distortion feature, this should give a good view of the IMD performance:




0 dB is the level of the two test tones.

« Last Edit: December 12, 2015, 10:16:17 pm by jaxbird »
Analog Discovery Projects: http://www.thestuffmade.com
Youtube random project videos: https://www.youtube.com/user/TheStuffMade
 

Offline fivefish

  • Frequent Contributor
  • **
  • Posts: 440
  • Country: us
Re: Analog Disovery as Audio Analyzer
« Reply #23 on: December 12, 2015, 10:52:53 pm »
jaxbird, that is awesome. If you keep this up, and release this software I think I will be buying an Analog Discovery and then send some $$$ your way.

Please make this a "poor man's AP setup" :)
 

Offline fpliuzzi

  • Regular Contributor
  • *
  • Posts: 157
  • Country: us
Re: Analog Disovery as Audio Analyzer
« Reply #24 on: December 13, 2015, 12:21:06 am »
Awesome is a good word for your audio analyzer suite. I was perfectly happy with the capabilities of my Analog Discovery, but now I'm really glad that I own one (although my trusty HP334A is looking a little nervous that it could be departing my main test bench soon to free up some much needed space).

Also, a quick thought about your IMD feature. If you see some value in this idea, could the amplitude of the two test tones be made independently adjustable so that you could, for example, test a vintage piece of audio gear using the older SMPTE standard (frequencies of 60Hz and 7KHz, mixed in a 4:1 ratio) if that was desired?

That could make an interesting way to compare the test results of the various IMD standards by supplying the appropriate test frequencies and amplitude ratios.

I tip my hat to you... keep up the excellent work.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf