Author Topic: Comparators vs Op Amps  (Read 15330 times)

0 Members and 1 Guest are viewing this topic.

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
Comparators vs Op Amps
« on: March 08, 2012, 03:23:34 pm »
Probably simple but what is the difference between Comparators and Op amps I looked all over Google and can't find anything.
I know you can hook up a op amp as a comparator but can't find out how there different.
Thanks



 

Offline Armin_Balija

  • Regular Contributor
  • *
  • Posts: 161
  • Country: 00
Re: Comparators vs Op Amps
« Reply #1 on: March 08, 2012, 03:47:03 pm »
Operational Amplifiers use differential inputs to produce an amplified output hundreds of thousands of times the difference in voltage of the input. An operational amplifier can be hooked up without feedback to be used as a comparator which compares the inputs and gives you an output close to the supply voltage based on if the inputs are outside of the threshold you put.

So say you set up your Op-Amp as a comparator and set the sensitivity of the op-amp to give you an output when the difference between the inputs is past a certain voltage, say 50 mV. So when the inputs of the Op-Amp are the same voltage (or within 50 mV of each other) you will not get an output close to the supply voltage. Once the 50 mV threshold is broken you will get an output close to supply voltage.

Operational Amplifiers can be used as voltage amplifiers through the use of feedback to drive it's inputs.

That's how I understand them at least.
« Last Edit: March 08, 2012, 03:49:32 pm by Armin_Balija »
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7548
  • Country: 00
  • +++ ATH1
Re: Comparators vs Op Amps
« Reply #2 on: March 08, 2012, 03:54:05 pm »
Read this Texas Instrument App Note -> "Op Amp and Comparators – Don’t Confuse Them!" -> http://www0.fh-trier.de/~berres/Datenbl%E4tter/TEXAS/sloa067.pdf

Here quote from the final paragraph of this paper ->

"Comparators and op amps, although similar, are very different components. It is unlikely that a comparator will be used as an op amp. However, Texas Instruments applications have received a number of inquiries about using op amps as comparators in an open loop. The best advice Texas Instruments can give is to not do this. The very best a designer can expect is very poor performance; the worst is a circuit that does not work or even burns out."
« Last Edit: March 08, 2012, 03:58:53 pm by BravoV »
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
Re: Comparators vs Op Amps
« Reply #3 on: March 08, 2012, 05:06:32 pm »
You can use an op amp as a comparator except you have to design it to compensate for its op amp flaws, and insure its performances thereafter is within your specification.  Today, with premade comparators to choose from already optimized for digital logic, its less practical to do this, unless you simply have an extra op amp say after using what you need from a dual or quad package, and want to drive say an LED as an annunciator.  Many design texts from the 1980s onward op amp comparators in detail.

http://en.wikipedia.org/wiki/Comparator#Op-amp_voltage_comparator

http://www.ecircuitcenter.com/circuits/op_comp/op_comp.htm

In the metrologic grade voltage reference EDC MV106 than Dave reviewed a while back, it uses a 741 op amp as a comparator to switch on the overload output indicator; it works perfectly well in that simple task and this device has been in existence since 1989.

Likewise, when analog designers were fairly prolific, it was acceptable use to purpose logic gates as linear devices when needed, just to squeeze more functions from excess parts you have left over.

http://www.electronics-related.com/usenet/design/show/2285-1.php

There are no hard rules so long as you play within the boundaries of anticipated performance.







« Last Edit: March 08, 2012, 07:22:20 pm by saturation »
Best Wishes,

 Saturation
 

Offline jahonen

  • Super Contributor
  • ***
  • Posts: 1054
  • Country: fi
Re: Comparators vs Op Amps
« Reply #4 on: March 08, 2012, 06:45:10 pm »
One major difference is that not all opamps tolerate large differential input voltage, so that may prevent using them as a comparator.

Regards,
Janne
 


Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Comparators vs Op Amps
« Reply #6 on: March 08, 2012, 09:58:52 pm »
You cannot use a comparator as a negative feedback stabilized opamp (like the instrumental amplifier circuit in your link).

LM324's have an internal capacitor to guarantee they will be stable with resistive negative feedback.

LM393's are designed to be as fast as possible, so they do not have any compensation to make them stable with negative feedback.
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 12029
  • Country: us
Re: Comparators vs Op Amps
« Reply #7 on: March 09, 2012, 03:44:51 am »
Probably simple but what is the difference between Comparators and Op amps I looked all over Google and can't find anything.
I know you can hook up a op amp as a comparator but can't find out how there different.

I guess the short answer is that a comparator is a digital component, i.e. its output is designed to be fully high or fully low but nowhere in between.

An op amp is designed to be an analog amplifier--its output can be anywhere between high and low and remain stable in that position.

You can sometimes (mis)use one as the other, but only if you account for the limitations and don't try to exceed the capabilities of the device.
 

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
Re: Comparators vs Op Amps
« Reply #8 on: March 09, 2012, 04:21:00 am »
OK thank I'll do some pin swapping
One of the lm324 outputs are running a led any way so I think every thing will work out great.
Thanks everyone.
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11701
  • Country: my
  • reassessing directives...
Re: Comparators vs Op Amps
« Reply #9 on: March 09, 2012, 09:17:46 am »
high slew rating can be had cheap on comparator, but only if you do not care "linear region" (opamp)
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7548
  • Country: 00
  • +++ ATH1
Re: Comparators vs Op Amps
« Reply #10 on: March 09, 2012, 09:57:02 am »
Just remember an excellent illustration and analogies on both at different output from my mentor long time ago ......


Comparator, either ON or OFF at it's output and it will perform really fast and no hesitation.



Op amps, though it can be made to behave like a comparator to swing to both extreme sides, it will be slower and other complications might arised, since its designed to give the output result swinging "in between" both ends.



Hence, its very unlikely to make a comparator to behave like an op amp. ;)
« Last Edit: March 09, 2012, 10:00:33 am by BravoV »
 

Offline Spiro

  • Contributor
  • Posts: 34
  • Country: cs
Re: Comparators vs Op Amps
« Reply #11 on: March 10, 2012, 03:15:32 pm »
Some comparators have open colector as output.
 

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
Re: Comparators vs Op Amps
« Reply #12 on: March 20, 2012, 04:27:06 am »
I'm sorry about bringing this up again.  But I was thinking that if op amps are analog and comparators are digital can't you use a comparator for a switching power supply?  Or would that be hard on it?
Sorry again Dave's last video got me thinking on some stuff.
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: Comparators vs Op Amps
« Reply #13 on: March 21, 2012, 12:24:11 pm »
I'm sorry about bringing this up again.  But I was thinking that if op amps are analog and comparators are digital can't you use a comparator for a switching power supply?  Or would that be hard on it?
Sorry again Dave's last video got me thinking on some stuff.
Lots of switching power supplies have been based around the LM339 quad comparator. They are perfect for a custom switching power supply as long as you are not expecting it to run at 1MHz or something. The LM339 designs I can think of were in sub-100KHz supplies.

If you want to switch at 200KHz or more, it is hard to beat the new generation of controller IC's that usually either include the switching mosfets, or the mosfet drivers.

Richard.

 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: Comparators vs Op Amps
« Reply #14 on: March 21, 2012, 03:51:08 pm »
For up to 500kHz the legendary UC384X series is hard to beat .
Anything above that obviously are for the new range of chips .
The TL494 is similarly overused and it only has 300kHz operation speed ,
A computer PSU i found that is the same size as newer PSU's of 800W ( this one is 200W ) uses both TL494 and LM339 .

But yeah , UC384X chips were found in higher end power supplies of back then ( The one i have from a tape drive is still perfectly clean and it's silkscreen is sex on a stick ! )
« Last Edit: March 21, 2012, 03:56:11 pm by Dave.S »
 

Offline marinedalek

  • Contributor
  • Posts: 22
  • Country: gb
Re: Comparators vs Op Amps
« Reply #15 on: March 21, 2012, 10:01:32 pm »
A little off-topic, but here's a fun example of what you can achieve by (mis)using 4000-series digital logic in analogue designs.

A voltage-controlled sawtooth oscillator with a second voltage-controlled PWM output: http://www.uni-bonn.de/~uzs159/vco4069.html
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf