Author Topic: World-class sine wave generator for cheap?  (Read 3457 times)

0 Members and 1 Guest are viewing this topic.

Online basinstreetdesignTopic starter

  • Frequent Contributor
  • **
  • Posts: 466
  • Country: ca
World-class sine wave generator for cheap?
« on: February 15, 2020, 07:40:11 pm »
Back when building a tube stereo amp I needed a fairly good sine signal to test distortion but I didn't have such a thing. So building one went on my long-term ToDo list. I've heard about oscillators with THD at -120dB and I thought it would be cool to have that. But how? They cost mucho$ (Audio Precisions' System One). Building a digital source needed an elaborate DDS system, parts I didn't have and probably SW so didn't attract me. So I thought maybe it could be done with a good 'ol Wein bridge oscillator.

I posted a question about this project some time ago.  Thanks for all who responded to it but I ended up choosing a more low-class solution to my problem than what I had originally hoped.

Here is a picture story documenting progress...
https://imgur.com/a/Buj8WfD
It's not finished, but,
what do you think?
« Last Edit: February 15, 2020, 09:03:44 pm by basinstreetdesign »
STAND BACK!  I'm going to try SCIENCE!
 
The following users thanked this post: AndyC_772

Offline Conrad Hoffman

  • Super Contributor
  • ***
  • Posts: 2078
  • Country: us
    • The Messy Basement
Re: World-class sine wave generator for cheap?
« Reply #1 on: February 15, 2020, 08:34:55 pm »
Nice! The bulb solution works well but usually limits the THD at low frequencies. I assume you've read all the historical stuff on the HP200A that Bill Hewlett did his thesis on. I've used the oscillator in the Bob Cordell spectrum analyzer article as inspiration. http://www.cordellaudio.com/papers/build_a_thd_analyzer.shtml It's very inexpensive to build and does about 0.0002% if well tweaked. There are some threads about ultra low THD oscillators at the DIYaudio forum too.
 

Online Vovk_Z

  • Super Contributor
  • ***
  • Posts: 1478
  • Country: ua
Re: World-class sine wave generator for cheap?
« Reply #2 on: February 15, 2020, 09:14:33 pm »
The cheapeast, simplest and the best one is Victor's ultra low distortion oscillator.
 

Offline duak

  • Super Contributor
  • ***
  • Posts: 1048
  • Country: ca
Re: World-class sine wave generator for cheap?
« Reply #3 on: February 15, 2020, 11:19:44 pm »
Interesting design and build.  Thx for sharing!

If you're having trouble with the EM field from the transformer, a copper strap around the winding and core can help.  I can't find an image of exactly how it's done, but the attached image should give you a good idea.  It doesn't go through the core otherwise it would form a shorted turn.  I can't remember if its supposed to be grounded or not.  I expect it should be.  It is a complete loop with the ends electrically connected together.


« Last Edit: February 15, 2020, 11:23:02 pm by duak »
 

Offline mcovington

  • Regular Contributor
  • *
  • Posts: 191
  • Country: us
Re: World-class sine wave generator for cheap?
« Reply #4 on: February 15, 2020, 11:52:54 pm »
Wien, not Wein.

Pronounced 'veen.'
 
The following users thanked this post: basinstreetdesign

Online basinstreetdesignTopic starter

  • Frequent Contributor
  • **
  • Posts: 466
  • Country: ca
Re: World-class sine wave generator for cheap?
« Reply #5 on: February 16, 2020, 12:10:32 am »
Wien, not Wein.

Pronounced 'veen.'
Oops, my mistake.  Thanks
STAND BACK!  I'm going to try SCIENCE!
 

Offline mcovington

  • Regular Contributor
  • *
  • Posts: 191
  • Country: us
Re: World-class sine wave generator for cheap?
« Reply #6 on: February 16, 2020, 01:46:10 am »
It's wrong in a lot of textbooks -- don't feel bad.  I looked up Wien's original 1890 (?) article in the Annalen der Physik.  He was experimenting with an "optical telephone," which was an earphone with a mirror with light reflecting off it to make a primitive oscilloscope.  He was one of the first people to see waveforms.
 

Offline jonpaul

  • Super Contributor
  • ***
  • Posts: 3656
  • Country: fr
  • Analog, magnetics, Power, HV, Audio, Cinema
    • IEEE Spectrum
Re: World-class sine wave generator for cheap?
« Reply #7 on: February 17, 2020, 04:33:50 pm »
See the classic Jim Williams National Semiconductor app notes on HP 200 and ultra low thd oscillators.
Jim RIP, was the expert


Jon
An Internet Dinosaur...
 

Online basinstreetdesignTopic starter

  • Frequent Contributor
  • **
  • Posts: 466
  • Country: ca
Re: World-class sine wave generator for cheap?
« Reply #8 on: April 01, 2020, 12:52:55 am »
Quote
See the classic Jim Williams National Semiconductor app notes on HP 200 and ultra low thd oscillators.
Yeah I've read one that a few times.

There were a couple of issues with the last effort.

First there was some power-line crap leaking into the signal that I saw on my audio spectrum analyzer, a HP 3580A that I re-calibrated a while ago. I had to track that down. I didn't want my box spewing that out.

Secondly, the oscillator worked so well that the distortion products would not show up above the noise floor of the SA. I couldn't turn the input sensitivity of the SA up to bring them into view or else the fundamental would overdrive it and I would see nothing BUT LOTS of harmonics. So a notch filter for the signal was in order.

Now I have worked through those issues and here
https://imgur.com/a/6C434zj
is the result.  Except for the op-amps I didn't have to buy anything.

What do you think?
STAND BACK!  I'm going to try SCIENCE!
 
The following users thanked this post: AndyC_772

Online trobbins

  • Frequent Contributor
  • **
  • Posts: 826
  • Country: au
Re: World-class sine wave generator for cheap?
« Reply #9 on: April 01, 2020, 04:11:00 am »
I reckon you would enjoy using an external USB soundcard interface, like a 2i2 for low cost, or if your lucky a decade old EMU.  You should be able to set that up to better your SA by 10-20dB, and it can lead you in to a wide range of tests that weren't available 10-20 years ago (due to software development).  At least you would appreciate that any form of test setup requires attention to shielding and ground loops, and the advantage of most modern equipment like soundcards and PCs is that they can be battery powered to negate most forms of ground loop.
 

Offline toli

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: il
Re: World-class sine wave generator for cheap?
« Reply #10 on: April 01, 2020, 01:28:40 pm »
A little while ago I've assembled a test setup for audio stuff at home (for hobby use).
I'm using an EMU 0404 USB as the generator/recording device, a DIY pre-amplifier as the interface, and for extreme needs I'm using Victor's oscillator that was mentioned here.

I've ended up building a small PS for the oscillator to fit inside its case, and modding the EMU soundcard to improve THD at higher frequencies, and designed the measurement pre-amplifier to fit my needs. I've shared some of it here on the forum, but everything can be seen on my blog: www.tolisdiy.com
You can take a look and see if some of it is useful to you. The EMU is an excellent solution for DIY measurements on the cheap, with fairly good performance. I got mine for close to nothing on eBay.
If you are using a desktop PC and not a laptop, you might have even nicer options since you won't have to use a USB solution.
My DIY blog (mostly electronics/stereo related):
http://tolisdiy.com/
 
The following users thanked this post: trobbins

Online basinstreetdesignTopic starter

  • Frequent Contributor
  • **
  • Posts: 466
  • Country: ca
Re: World-class sine wave generator for cheap?
« Reply #11 on: May 25, 2020, 06:35:13 am »
OK, Chapter 2 in the tale of making a REALLY low distortion audio oscillator...
At the end of the tale before at https://imgur.com/a/Buj8WfD  the oscillator works fairly well but had two issues.

First, there was some 60 Hz power line crap leaking into the signal and was being displayed on my HP 3580A spectrum analyzer.  I had to find out where this was coming from and do something about it.

Secondly, the THD of the oscillator was so low that it completely disappeared below the noise floor of the SA 90 dB down.  So I couldn't tell just how far down it was.  The solution to that, for me, was to make a notch filter to pass the signal through to suppress the fundamental of the signal.  That would allow me to crank the sensitivity of the SA up to bring the distortion products into view.  But the filter had to be tuneable and tuneable over pretty much the whole audio range.

Here is my attempt at solving those two issues:
https://imgur.com/a/6C434zj

I might as well say it again, but my motivation in building this was more academic than pragmatic.  Yeah, I'll use it if when (or if) I build another stereo amp but, mostly, it was just an intellectual exercise in seeing what I could do with glory-box proceeds and little to nothing in the way of out-of-pocket spending.
STAND BACK!  I'm going to try SCIENCE!
 

Online trobbins

  • Frequent Contributor
  • **
  • Posts: 826
  • Country: au
Re: World-class sine wave generator for cheap?
« Reply #12 on: May 25, 2020, 07:29:30 am »
One issue you encountered is ground loops with multiple equipment powered from the mains AC.  That gets worse when the EUT is mains powered too.  Battery powering everything but the EUT is an easy-out option.

Do you reach any overload/damage level if the notch gets accidentally changed when you are at -70dB setting ?  I can see an overload indicator.
 

Offline TheUnnamedNewbie

  • Super Contributor
  • ***
  • Posts: 1211
  • Country: 00
  • mmwave RFIC/antenna designer
Re: World-class sine wave generator for cheap?
« Reply #13 on: May 25, 2020, 07:35:07 am »
This might be too much of the RF guy in me talking, but what is wrong with making a mediocre oscillator, and just having a boatload of bandpassfilters after it to isolate the desired tone? This is how most of the ultra-pure RF generators work.
The best part about magic is when it stops being magic and becomes science instead

"There was no road, but the people walked on it, and the road came to be, and the people followed it, for the road took the path of least resistance"
 

Offline srce

  • Regular Contributor
  • *
  • Posts: 175
  • Country: gb
Re: World-class sine wave generator for cheap?
« Reply #14 on: May 25, 2020, 09:28:05 am »
This might be too much of the RF guy in me talking, but what is wrong with making a mediocre oscillator, and just having a boatload of bandpassfilters after it to isolate the desired tone? This is how most of the ultra-pure RF generators work.
How do you make the filters? The non-linearity of just resistors and capacitors can introduce distortion at these sort of levels (i.e. 140dB), no?
 
The following users thanked this post: djadeski

Offline TheUnnamedNewbie

  • Super Contributor
  • ***
  • Posts: 1211
  • Country: 00
  • mmwave RFIC/antenna designer
Re: World-class sine wave generator for cheap?
« Reply #15 on: May 25, 2020, 09:37:58 am »
I was thinking (air) inductors and capacitors. I am not aware how linear these are. I know that MLCC will be atrocious for this, but thought film or mica capacitors could offer very good performance?

I am not an expert in this field myself, but I do know that this is how at work we tested some amplifiers for a hobby project of one of my colleagues. Started with a simple signal generator, and then just had filter banks we could tune to eliminate the harmonic. I think we got -120 dBc or better with that method.
The best part about magic is when it stops being magic and becomes science instead

"There was no road, but the people walked on it, and the road came to be, and the people followed it, for the road took the path of least resistance"
 

Online basinstreetdesignTopic starter

  • Frequent Contributor
  • **
  • Posts: 466
  • Country: ca
Re: World-class sine wave generator for cheap?
« Reply #16 on: May 25, 2020, 08:38:47 pm »
Do you reach any overload/damage level if the notch gets accidentally changed when you are at -70dB setting ?  I can see an overload indicator.

The overload indicator on the SA indicates that, any higher signal level will distort internally and render the display full of harmonics.  Now, the HP scope is damage-proof from high signal levels by limiting the signal if too large (clipping).  The overload indicator comes on just short of actual distortion-inducing internal clipping, though.  So I can increase the input sensitivity up to the point where that light JUST comes on (about 4 dB above the top line of the display) but internal distortion has not yet occurred.  So if the input signal were to be accidentally changed upwards in level by a bunch of dB while the scopes input sensitivity is set quite high, (-70 dBV) there will be no damage.
STAND BACK!  I'm going to try SCIENCE!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf