Author Topic: Triangle wave oscillator switching noise  (Read 8148 times)

0 Members and 1 Guest are viewing this topic.

Offline DaveHardyTopic starter

  • Regular Contributor
  • *
  • Posts: 103
Triangle wave oscillator switching noise
« on: January 09, 2017, 03:38:38 am »
I'd like to employ this circuit in a design I am working on, but it makes too much noise on the power rails and it radiates into another part of my circuit.  I have found that slowing down the switching speed of the comparator removes the radiation and power rail noise, but I'm not sure about the best way to do this.   Does anyone have suggestions or experience with this circuit?

Can I replace R2 with a small cap or put a cap on the output of the comparator?
 

Offline nugglix

  • Regular Contributor
  • *
  • Posts: 209
  • Country: de
Re: Triangle wave oscillator switching noise
« Reply #1 on: January 09, 2017, 07:10:39 am »
What about proper decoupling?



 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19962
  • Country: gb
  • 0999
Re: Triangle wave oscillator switching noise
« Reply #2 on: January 09, 2017, 09:28:12 am »
The TL082 doesn't make a very good comparator. Try the LM393 or LM311 for the comparator section.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22434
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Triangle wave oscillator switching noise
« Reply #3 on: January 09, 2017, 12:08:51 pm »
TL082 isn't going to "radiate"...

What are you actually seeing?  And as above, do you have supply bypassing in place?

Note that an op-amp integrator is not an ideal integrator, but has limited high frequency gain.  The result is feed-forward on rapid transitions: instead of a clean triangle wave, you get a triangle with, er, "nipples" on the peaks.  This is not a supply bypass problem, or a "radiating" problem, but fundamental to the design of the circuit shown.

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

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Triangle wave oscillator switching noise
« Reply #4 on: January 09, 2017, 12:14:19 pm »
Bypassing on rails should consist of a MLC type cap, say .01 to ,1 uF,
and a polymer tantalum cap, size depends on current drain/load. Rep-
resentative values 12 - 10 uF typical.

Both these technologies, MLC and Polymer, have excellent ESR vs frequency
characteristics. Read the cap datasheets, not all caps from vendors, for the
same values, behave the same electrically.


http://www.vishay.com/docs/40076/polymerguide.pdf

What is your load ? Scope probes compensated properly ? Using 10X to minimize
C loading on comparator output ?


Rewgards, Dana.
« Last Edit: January 09, 2017, 12:18:37 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22434
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Triangle wave oscillator switching noise
« Reply #5 on: January 09, 2017, 12:39:19 pm »
Well gee, even a 10uF aluminum electrolytic is enough.  It's a TL082, not a GPU core switching regulator.

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

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
« Last Edit: January 09, 2017, 01:51:11 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline Audioguru

  • Super Contributor
  • ***
  • Posts: 1507
  • Country: ca
Re: Triangle wave oscillator switching noise
« Reply #7 on: January 09, 2017, 05:16:12 pm »
I agree that a TL082 is not a comparator because its output slews rather slowly. If its output is overloaded or is driving a capacitor to ground then it will cause a little noise on the power rails and will cause interference by capacitive coupling between all the messy wires and rows of contacts on a solderless breadboard.
 

Offline DaveHardyTopic starter

  • Regular Contributor
  • *
  • Posts: 103
Re: Triangle wave oscillator switching noise
« Reply #8 on: January 09, 2017, 05:41:35 pm »
My supply is very sound and I've taken extra measures to make sure it is properly damped.  The problem is when the comparator transitions.  The edge is extremely sharp and radiates EMI into a high impedance part of my circuit.  I have done experiments to slow it down and the EMI disappears if I insert a 4.7uf cap between the comparator output  and ground.  I was looking to see if there are other solutions to this problem because I don't like putting a huge cap on the output.
 

Offline RandallMcRee

  • Frequent Contributor
  • **
  • Posts: 542
  • Country: us
Re: Triangle wave oscillator switching noise
« Reply #9 on: January 09, 2017, 06:00:31 pm »

Instead of tying the TL082 V+,V- directly to your power rail, isolate it using two (say) 100 ohm resistors. 47uf caps after that, as well as bypass caps as advised by others.

Does this help? If not, the problem is not in the power coupling. Then I would suspect ground layout.

After bypass caps and supply decoupling, if problem persists, we would need details, photos, schematic, etc.
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14795
  • Country: de
Re: Triangle wave oscillator switching noise
« Reply #10 on: January 09, 2017, 06:04:21 pm »
To slow done the OP one could use a capacitor in feedback. So add a resistor to the GND connection of the inverting input and than add a capacitor from the output to that input.

For high impedance circuit parts, there could be direct capacitive coupling. So add a grounded shield.
 
The following users thanked this post: Someone

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13121
Re: Triangle wave oscillator switching noise
« Reply #11 on: January 09, 2017, 06:18:02 pm »
I've modelled inserting a 2K2 resistor between the comparator -in and ground and adding a 1nF cap between the comparator's output and its -in to limit the slew rate, (using the T.I. TL082 PSPICE model under LTspice) as has also just been suggested by Kleinstein, and the results look promising.  Caution: too big a cap and/or resistor will cause excessive waveform distortion.

You should also decouple the supplies to the OPAMP as suggested by Randall, though personally, I'd start with 10 Ohm resistors
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22434
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Triangle wave oscillator switching noise
« Reply #12 on: January 09, 2017, 06:27:30 pm »
My supply is very sound and I've taken extra measures to make sure it is properly damped.

Okay, fine.  How damped is it?  If you've "taken measures", show us the measurements! ;D

Quote
The problem is when the comparator transitions.  The edge is extremely sharp and radiates EMI into a high impedance part of my circuit.

Show the measurements.

There is nothing about a TL082's capability that I would call "extremely sharp", or "radiating", or "EMI".

I have to assume what you really mean is: the voltage is capacitively coupled into a nearby high impedance node.

These terms (EMI, radiating, sharp, coupling) all assume something about the nature of the circuit that created the signal.  EMI is usually a lower impedance, common mode signal.  Radiation is a high frequency, modest impedance, propagating signal.  "Extremely sharp" suggests, at most, tens of nanoseconds risetime.

"Capacitively coupled" simply means you have an effective C-R (high pass) network, where the C might be the accidental capacitance between wires or traces, and R is the impedance of the affected node.

As the origins differ, so do the solutions: for this case, simply reduce or eliminate the coupling capacitance.  Or reduce the impedance of the affected node, or both.

A simple way to reduce coupling capacitance is to reroute wires/traces to greater separation distances, and add ground traces or fill between them (shielding).  A simple way to reduce node impedance, at the frequencies where it matters, is by adding a bypass capacitor.  At high frequencies, this leads to a capacitive divider effect, so that the error signal will not be eliminated, but will be significantly reduced.

Whereas, EMI usually needs a common mode choke, and local filtering; and radiation needs filtering and shielding.  A TL082 might be capable of producing signals of this nature if it's badly abused, say by placing a resonant circuit in the power supply pins, or something; but this should be prevented by your "properly damped" supply.  But again, you haven't told us a lick about your system, so for all we know, it might well be resonating!

Quote
I have done experiments to slow it down and the EMI disappears if I insert a 4.7uf cap between the comparator output  and ground.  I was looking to see if there are other solutions to this problem because I don't like putting a huge cap on the output.

Well, slowing down the output is one way, but this directly impairs the performance of the circuit in the first place (and, as you note, isn't friendly to the op-amp!).

But now you need to tell us more about your circuit: its application (what, precisely, do you actually need from it?), what the nearby circuit is, and so on.

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

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Triangle wave oscillator switching noise
« Reply #13 on: January 10, 2017, 12:05:54 am »
You mention loading output with 4.7 uF. That would be considered normally
a poor practice due to excessive phase shift, reduced phase margin. Its G
runs out of gas at 4 Mhz.  Not to exclude the fact significant currents would
be flowing. Even though amp has current limited outputs one does not know
what their AC response look like, you could be generating some significant
current spikes.

What is the spectrum look like of the EMI ? Meaning is the comparator oscillating ?


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline eblc1388

  • Frequent Contributor
  • **
  • Posts: 400
  • Country: gb
Re: Triangle wave oscillator switching noise
« Reply #14 on: January 10, 2017, 02:25:59 am »
The TL082 output cannot drive much loading and integator R1C1 (2K2 / 0.1uF) might be too heavy a load for it.

I would use 22k/0.01uF instead which gives the same output frequency and avoid possible overloading its output. Just a thought.
 

 

Offline Audioguru

  • Super Contributor
  • ***
  • Posts: 1507
  • Country: ca
Re: Triangle wave oscillator switching noise
« Reply #15 on: January 10, 2017, 03:01:17 am »
A capacitor to ground at the output of any opamp causes it to ring or oscillate. A comparator has no frequency compensation like an opamp has so it is simply slowed with a capacitor to ground on its output.

You have a comparator circuit then why are you using an opamp instead??
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17167
  • Country: us
  • DavidH
Re: Triangle wave oscillator switching noise
« Reply #16 on: January 10, 2017, 10:59:19 pm »
I have difficulty imagining a TL082 used as a comparator switching quickly enough to cause significant EMI except in a design which is already excessively sensitive do to for instance poorly situation high impedance nodes or inadequate decoupling.

Operational amplifiers driven into saturation like when used as a comparator sometimes behave oddly and this goes double for some dual and quad parts where saturation in one amplifier may affect the others on the same die.
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Triangle wave oscillator switching noise
« Reply #17 on: January 10, 2017, 11:28:28 pm »
I have difficulty imagining a TL082 used as a comparator switching quickly enough to cause significant EMI
So do I, imagine what a fast comparator in there would do!
A very poor gnd somewhere seems more likely, or a very high impedance or OC on the sensitive analogue circuit.
« Last Edit: January 10, 2017, 11:42:06 pm by StillTrying »
.  That took much longer than I thought it would.
 

Offline DaveHardyTopic starter

  • Regular Contributor
  • *
  • Posts: 103
Re: Triangle wave oscillator switching noise
« Reply #18 on: January 11, 2017, 12:55:53 am »
Radiation is probably the most appropriate term.  When I get a scope probe too close to it, I can see the transitions.

Here is a better diagram of my circuit.  A diode is present in my circuit and there is also a 100k potentiometer mounted on a 8 inch connector to control the speed.  The comparator has a 100K  and a 50K resistor to get it to saturate.

This is an audio amplifier and has a 500 megohm input impedance.
 

Offline DaveHardyTopic starter

  • Regular Contributor
  • *
  • Posts: 103
Re: Triangle wave oscillator switching noise
« Reply #19 on: January 11, 2017, 01:01:35 am »
I have difficulty imagining a TL082 used as a comparator switching quickly enough to cause significant EMI except in a design which is already excessively sensitive do to for instance poorly situation high impedance nodes or inadequate decoupling.

Operational amplifiers driven into saturation like when used as a comparator sometimes behave oddly and this goes double for some dual and quad parts where saturation in one amplifier may affect the others on the same die.

This is my conclusion too.  I'm using a TLO74 and could probably replace it with a different quad package.  I'm still scared to put a cap on the output because I've been taught that it will be unstable; this is why I posted the question.  In practice, it behaves quite stable but who knows what will happen if I build a few of them. 
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17167
  • Country: us
  • DavidH
Re: Triangle wave oscillator switching noise
« Reply #20 on: January 11, 2017, 04:48:54 am »
A capacitor to ground at the output of any opamp causes it to ring or oscillate. A comparator has no frequency compensation like an opamp has so it is simply slowed with a capacitor to ground on its output.

Operational amplifiers can be frequency compensated with a capacitor from their output to ground.  Usually this takes the form of a relatively small series RC circuit but brute force with a large capacitor also works if very low bandwidth is acceptable.

Here is a better diagram of my circuit.  A diode is present in my circuit and there is also a 100k potentiometer mounted on a 8 inch connector to control the speed.  The comparator has a 100K  and a 50K resistor to get it to saturate.

I do not know if the text mentions it but the 301 is more suitable than most operational amplifiers for use as a comparator; it has a wide differential input range and uses external frequency compensation.

What specific diode did you use?  A switching diode would be suitable but a standard recovery rectifier like a 1N4001 could conceivably cause EMI problems by acting as a snap-off diode.
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 20684
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Triangle wave oscillator switching noise
« Reply #21 on: January 11, 2017, 08:28:48 am »
I'd like to employ this circuit in a design I am working on, but it makes too much noise on the power rails and it radiates into another part of my circuit.  I have found that slowing down the switching speed of the comparator removes the radiation and power rail noise, but I'm not sure about the best way to do this.   Does anyone have suggestions or experience with this circuit?

You haven't built it on a solderless breadboard have you?

If you have, stop now and build it "properly" on a PCB using manhattan or dead-bug techniques. Pay attention to minimising wire lengths and to decoupling capacitors.

If you haven't, post a picture of the circuit and its connections.

Whenever someone asks me to debug a circuit built on a solderless breadboard, we spend more time debugging the breadboard than their circuit.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 
The following users thanked this post: nugglix


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf