Author Topic: Basic Opamp Inverting Buffer HUM  (Read 9251 times)

0 Members and 1 Guest are viewing this topic.

Offline FearLabsTopic starter

  • Contributor
  • Posts: 11
Basic Opamp Inverting Buffer HUM
« on: October 15, 2014, 03:53:25 am »
I was wondering if anyone has any input on this:


I have attached a schematic.  It's a basic opamp buffer followed by an inverting buffer.   This is to create a phase splitter for an audio signal, the two outputs drive the next stage which apply quite a bit of gain, so keeping the noise floor very low is important.   

I attached FFT plots of both outputs.  The nonInverting buffer works perfectly, the noise floor on the output of this stage is so low, it's barely different than using a cable.   The Inverting stage has at least 25db more 60hz hum plus a ton of it's harmonics.  It's fairly low, but once I boost it in the following stage, it causes a limited dynamic range in the whole design. 

I tried a few different opamp IC's.   The decoupling caps are very close to the power pins.  I initially tried the design on a PCB with a ground plane, I tried re-laying it out on different PCB with star grounding, then on a breadboard, all with the same results.  I tried different resistor values, different decoupling caps, changing the orientation, all with no change.

Are inverting opamp stages more susceptible to hum somehow?  :wtf:

Let me know what you all think, and thanks lots for the input!
« Last Edit: October 15, 2014, 04:32:03 am by FearLabs »
 

Offline BradC

  • Super Contributor
  • ***
  • Posts: 2198
  • Country: au
Re: Basic Opamp Inverting Buffer HUM
« Reply #1 on: October 15, 2014, 04:20:48 am »
You appear to have 2 non-inverting buffers in series. Have another look at the inverting buffer. Your +ve should be connected to gnd and the -ve input should be at the tap of a voltage divider between the output of amp 1 and the output of amp 2.

To put it another way, take the connection off the +ve output of the inverting amp and just switch it to the -ve input. Gnd the +ve input.
 

Offline FearLabsTopic starter

  • Contributor
  • Posts: 11
Re: Basic Opamp Inverting Buffer HUM
« Reply #2 on: October 15, 2014, 04:34:22 am »
You appear to have 2 non-inverting buffers in series. Have another look at the inverting buffer. Your +ve should be connected to gnd and the -ve input should be at the tap of a voltage divider between the output of amp 1 and the output of amp 2.

To put it another way, take the connection off the +ve output of the inverting amp and just switch it to the -ve input. Gnd the +ve input.

You are right, however that is just a typo in the drawing!!!  Oops  :P  I re-drew it from a bigger design.  The way you described is the way it is.   I corrected the schematic in the original post.   

Same problem as described tho.
« Last Edit: October 15, 2014, 04:43:58 am by FearLabs »
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2087
  • Country: sk
Re: Basic Opamp Inverting Buffer HUM
« Reply #3 on: October 15, 2014, 04:53:12 am »
in general (haven't had a deeper look at your schematic):
- add more decoupling - i can't see any electrolytes/tantalum there - use ceramic + electrolytic
- use a low noise op-amps
- use high quality "low noise" resistors for the inverting buffer - resistor might be a source of noise
- add shielding
 

Offline FearLabsTopic starter

  • Contributor
  • Posts: 11
Re: Basic Opamp Inverting Buffer HUM
« Reply #4 on: October 15, 2014, 05:05:24 am »
in general (haven't had a deeper look at your schematic):
- add more decoupling - i can't see any electrolytes/tantalum there - use ceramic + electrolytic
- use a low noise op-amps
- use high quality "low noise" resistors for the inverting buffer - resistor might be a source of noise
- add shielding

- I've tried ceramic and poly caps up to 1uF.  Also paralleled them with some low esr 100uF electrolytics, as well as 22uF organic ones.  Decoupling doesn't seem to be an issue

- Started with a Burr-Brown opa2134 (very low noise opamps).  Also tried Tl074s and 5532 amongst others. 

- Using 1/4 and 1/2 watt metal film resistors of varying sizes.  The only time I was able to get measurable resistor noise was when I got to very high values.  The 60 hum isn't resistor noise.

- Tried enclosing the circuit in a grounded aluminum enclosure 1/8" thick.  No change.  I'm sure at some point with some expensive MU-Metal can I could get some NASA grade shielding, but it seems odd that the inverting buffer with NO gain is noisy compared to a noninverting buffer with NO gain.   Orientation of the circuit doesn't change anything either.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2087
  • Country: sk
Re: Basic Opamp Inverting Buffer HUM
« Reply #5 on: October 15, 2014, 05:26:27 am »
how good is the power supply ? give it a try running from batteries and measure the 60Hz hum. probably your supply has insufficient filtering.
 

Offline FearLabsTopic starter

  • Contributor
  • Posts: 11
Re: Basic Opamp Inverting Buffer HUM
« Reply #6 on: October 15, 2014, 05:34:53 am »
how good is the power supply ? give it a try running from batteries and measure the 60Hz hum. probably your supply has insufficient filtering.

Good call, just popped a couple of 9 volts on there and BOOM, problem gone. 

Now to figure out how to add more filtering.  Any suggestions?  My first thought is to try some resistors in series with the power supplies, so those plus the decoupling caps make some RC filters.

Thanks, I was feeling like I was going crazy!
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2087
  • Country: sk
Re: Basic Opamp Inverting Buffer HUM
« Reply #7 on: October 15, 2014, 05:49:40 am »
i would add more "raw" filtering (right after the rect. bridge) and add a RC filter to both supply rails for the op-amps - experiment with values,but i would start with something like 47R + 220uf for the RC filters. and of course keep the decoupling as close as you can to ther op-amps , do not use the decoupling caps as part of the low-pass RC filter.
 

Offline Galaxyrise

  • Frequent Contributor
  • **
  • Posts: 531
  • Country: us
Re: Basic Opamp Inverting Buffer HUM
« Reply #8 on: October 15, 2014, 06:16:10 am »
but it seems odd that the inverting buffer with NO gain is noisy compared to a noninverting buffer with NO gain.   

Thanks, I was feeling like I was going crazy!

Well, you're half-way there: you know where the hum comes from (and why shielding didn't help.)  And since the inverting amp is taking the non-inverting amp's output, it's not surprising that it has more hum.  But I would expect twice the hum, not 10x...  I'm still curious where that comes from. 

As you can see from rob's suggestion, 60Hz is very hard to be rid of through decoupling.  It's just too low a frequency.
I am but an egg
 

Offline BradC

  • Super Contributor
  • ***
  • Posts: 2198
  • Country: au
Re: Basic Opamp Inverting Buffer HUM
« Reply #9 on: October 15, 2014, 06:32:32 am »
The inverting amp is directly ground referenced by virtue of the link between +vin & gnd. The non-inverting amp is ground referenced but via the 1M input & whatever impedance the input cap and source present, most of which will be filtered out because the output is going to sit at a virtual ground between +ve & -ve.
Try replacing the gnd connection (+ve in) on the second op amp with a resistive divider between the rails (decoupled). That'll take the earth noise out of the equation.

A schematic of the PSU would help.
 

Offline FearLabsTopic starter

  • Contributor
  • Posts: 11
Re: Basic Opamp Inverting Buffer HUM
« Reply #10 on: October 15, 2014, 07:09:37 am »
The inverting amp is directly ground referenced by virtue of the link between +vin & gnd. The non-inverting amp is ground referenced but via the 1M input & whatever impedance the input cap and source present, most of which will be filtered out because the output is going to sit at a virtual ground between +ve & -ve.
Try replacing the gnd connection (+ve in) on the second op amp with a resistive divider between the rails (decoupled). That'll take the earth noise out of the equation.

A schematic of the PSU would help.


I just tried a voltage divider btw +15 and -15 with two 10k resistors.  I connected the mid point to the +ve on the inverting stage instead of to ground.   Same amount of hum, but now there was a subtle DC bias (a fraction of a volt really), because  +15 is 15.14v and and -15 is 14.94v. 

Attached is the schematic of the power supply.   I plan on adding reverse protection diodes to it, but they're not on there yet.

I've been experimenting with calculating and adding LC filters to it.  Did a lowpass filter with the -3db point at 1hz and no change (huge caps).  I dropped the ripple by at least 30db and no change at all to the operation of the circuit.     Ugh!  This is crazy!   

I'm starting to wonder if the wires or resistors are behaving as parasitic inductors or something.    I'm just surprised  I'm getting such an effect with gain=1.

 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Basic Opamp Inverting Buffer HUM
« Reply #11 on: October 15, 2014, 07:10:06 am »
Why is your power supply generating so much 60Hz?  It should be 120Hz.  Is it grounded (and your signal source or load as well)?  Also, what's the PSRR on the op-amps?

I would be surprised if PSRR were the problem, sounds like ground loop.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline FearLabsTopic starter

  • Contributor
  • Posts: 11
Re: Basic Opamp Inverting Buffer HUM
« Reply #12 on: October 15, 2014, 07:27:06 am »
Why is your power supply generating so much 60Hz?  It should be 120Hz.  Is it grounded (and your signal source or load as well)?  Also, what's the PSRR on the op-amps?

I would be surprised if PSRR were the problem, sounds like ground loop.

Tim


It's not.  When I look at the power rails on the oscilloscope, even on the smallest setting, there is no visible ripple.  I actually see the noise of the regulator way more more than any ripple.   

If you look at the FFT plot, 60hz does dominate, but there is lots of harmonic content too, 120,180,240,300, etc...   

Here's a datasheet to the opamp, shows 106db PSRR.  Most certainly not the problem.
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CC4QFjAB&url=http%3A%2F%2Fwww.ti.com%2Flit%2Fds%2Fsymlink%2Fopa134.pdf&ei=zCA-VNrxLoP2yQTF_4CoBQ&usg=AFQjCNHNHJLdDVmojLs1G7jCBRJB12rgAw&sig2=ln0Ru8yweQXp1WWX3DWOcw&bvm=bv.77412846,d.aWw 

Don't understand how a ground loop could occour if every ground connection is ONE POINT.   

Baffled.
 

Offline wiss

  • Frequent Contributor
  • **
  • Posts: 486
  • Country: ch
Re: Basic Opamp Inverting Buffer HUM
« Reply #13 on: October 15, 2014, 07:35:33 am »
Is the power-supply half-wave rectified?

Once I hacked up a +-12 V from a single secondary wall-wart, half-wave rectified into either rail and stabilized by 78/79-12`s.
Hummed badly...
 

Offline FearLabsTopic starter

  • Contributor
  • Posts: 11
Re: Basic Opamp Inverting Buffer HUM
« Reply #14 on: October 15, 2014, 07:45:39 am »
Why is your power supply generating so much 60Hz?  It should be 120Hz.  Is it grounded (and your signal source or load as well)?  Also, what's the PSRR on the op-amps?

I would be surprised if PSRR were the problem, sounds like ground loop.

Tim

I should also mention that I've built this circuit with two different PCB layouts, plus about 3 times on a breadboard.   First PCB had a ground plane, the second a star ground.

I've tried 3 different "low noise" opamps plus several others.  Burrbrown, 5532, Tl074

I've tried two different power supplies.

I've tried ceramic, poly, and electrolytic decoupling caps.  Ranging from 100nF to 10000uF is various combinations.

My power rails have NO ripple (it's below the thermal noise floor of the regulators).

Everything is grounded to one point.

I've tried metal film as well as 1/2watt carbon comp resistors.

The output of the noninverting stage is PERFECT.  Same as a wire to my interface.

Tried 20ohm resistor with 10000uF caps on the power rails,  (lowpass filter at .8hz).  This makes the thermal noise on the power rails unmeasurable on my oscilloscope- perfect flat line).

Shielding inside a 1/8" aluminum enclosure does nothing.

Using batteries is the only way I've seen the hum go away (unfortunately not an option in this project).


So....  Maybe this is unsolvable?   Seems pretty crazy since it's such a basic textbook circuit.     :wtf:
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2087
  • Country: sk
Re: Basic Opamp Inverting Buffer HUM
« Reply #15 on: October 15, 2014, 07:52:51 am »
are you experimenting on a breadboard now ? or did you solder the RC filters to a PCB version of the circuit ?
just asking because some breadboards are excellent in picking up noise from the environment (especially the 50/60Hz in a noisy environment)
 

Offline IconicPCB

  • Super Contributor
  • ***
  • Posts: 1574
  • Country: au
Re: Basic Opamp Inverting Buffer HUM
« Reply #16 on: October 15, 2014, 08:19:55 am »
How is Your source connected to the circuit?

How are their earths connected? if at all?
 

Offline FearLabsTopic starter

  • Contributor
  • Posts: 11
Re: Basic Opamp Inverting Buffer HUM
« Reply #17 on: October 15, 2014, 08:28:22 am »
are you experimenting on a breadboard now ? or did you solder the RC filters to a PCB version of the circuit ?
just asking because some breadboards are excellent in picking up noise from the environment (especially the 50/60Hz in a noisy environment)

I'm on a breadboard now.  Honestly the ripple on the power supply is buried in the noise of the regulators when I really zoom in on it, and even that isn't much without the filters..  I'll give it a shot for sure.   I'll try in a bit and report back.
 

Offline FearLabsTopic starter

  • Contributor
  • Posts: 11
Re: Basic Opamp Inverting Buffer HUM
« Reply #18 on: October 15, 2014, 08:31:50 am »
How is Your source connected to the circuit?

1/4" jack. 

How are their earths connected? if at all?
To the star ground point.

The signal is getting into the circuit just fine.  The first stage is working perfectly.  Something about the second inverting stage is adding about 25db to the level of the 60hz and it's harmonics.
 

Offline deephaven

  • Frequent Contributor
  • **
  • Posts: 796
  • Country: gb
  • Civilization is just one big bootstrap
    • Deephaven Ltd
Re: Basic Opamp Inverting Buffer HUM
« Reply #19 on: October 15, 2014, 08:41:18 am »
Try going back to your hum-less situation by powering off batteries. Then try touching just the 0V line of the power supply on the 0V of your circuit. Then turn your power supply on and off. This should narrow down where you need to look. Sounds like a ground loop problem.
 

Offline FearLabsTopic starter

  • Contributor
  • Posts: 11
Re: Basic Opamp Inverting Buffer HUM
« Reply #20 on: October 15, 2014, 08:52:04 am »
Try going back to your hum-less situation by powering off batteries. Then try touching just the 0V line of the power supply on the 0V of your circuit. Then turn your power supply on and off. This should narrow down where you need to look. Sounds like a ground loop problem.

Right on!  Getting somewhere!   The hum cam back as soon as the ground on the power supply was connected, and not even powered on.   I'm assuming it's a loop between the power supply and the interface i'm using to get the FFT.  Using one of those dangerous ground-lifters on the power supply also did it.   

Hmmm... ok.   I think I can get on with my life! 

Thanks everyone!


 

Offline BradC

  • Super Contributor
  • ***
  • Posts: 2198
  • Country: au
Re: Basic Opamp Inverting Buffer HUM
« Reply #21 on: October 15, 2014, 08:56:58 am »
An Isolation transformer is a handy dandy thing to have around. Before I scored my 2400W ex Hospital unit I used 2 24V transformers wired back to back for low power stuff.
 

Offline bobcat

  • Regular Contributor
  • *
  • Posts: 94
  • Country: us
Re: Basic Opamp Inverting Buffer HUM
« Reply #22 on: October 15, 2014, 11:10:29 am »
Have you looked at whatever is connected to the non-inverting output of your amp section. It is connected directly to the input of your inverting amp. Noise could be coming back in from the next section. Also, because it is DC connected, it could be affecting the bias point of the inverting amp.
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 17751
  • Country: us
  • DavidH
Re: Basic Opamp Inverting Buffer HUM
« Reply #23 on: October 19, 2014, 03:14:15 pm »
Why is your power supply generating so much 60Hz?  It should be 120Hz.  Is it grounded (and your signal source or load as well)?

It's not.  When I look at the power rails on the oscilloscope, even on the smallest setting, there is no visible ripple.  I actually see the noise of the regulator way more more than any ripple.   

If you look at the FFT plot, 60hz does dominate, but there is lots of harmonic content too, 120,180,240,300, etc...

If it was just lack of power supply and circuit ripple rejection, then the 60 Hz noise would not be there.  The full wave rectifier in the power supply produces 120 Hz ripple.

Quote
Don't understand how a ground loop could occour if every ground connection is ONE POINT.

Is the power supply ground connected to earth ground?  If so then when the oscilloscope probe ground is connected to the circuit ground, there is a ground loop through the oscilloscope and power supply and that will result in 60 Hz noise.  Even if the power supply output is completely isolated, capacitive coupling through the transformer may still cause this.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf