How to make a comparator out of an opamp

Click For Summary

Discussion Overview

The discussion revolves around the construction of a comparator using an operational amplifier (op-amp). Participants are exploring the necessary configurations and components to achieve the desired functionality, including voltage divider setups and hysteresis implementation.

Discussion Character

  • Technical explanation, Conceptual clarification, Debate/contested

Main Points Raised

  • One participant describes their attempt to create a comparator with an op-amp, noting issues with output voltage consistency.
  • Another participant explains the fundamental differences between op-amps and comparators, emphasizing the need for hysteresis and suggesting specific resistor values to achieve this.
  • A request is made for a schematic to clarify the connections made to the op-amp.
  • A participant suggests searching for tutorials on op-amp comparators, providing a link to an external resource.
  • A follow-up question seeks clarification on specific component values and conditions related to the original participant's setup.

Areas of Agreement / Disagreement

Participants express differing views on the configuration of the op-amp as a comparator, with no consensus reached on the best approach or specific component values.

Contextual Notes

There are unresolved details regarding the specific values of resistors and supply voltages used in the circuit, which may affect the functionality of the comparator.

David lopez
Messages
257
Reaction score
3
I have an operational amplifier. I am
Trying to make a comparator out of
It. I built a voltage divider to provide
Different voltages. But I either get
The same voltage output regardless
Of input or the voltage is too high I think. How do you make a comparator out of an operational amplifier?
 
Engineering news on Phys.org
An op-amp is designed to operate with the both inputs at very similar voltages, with an output that rises and falls in a predictable way.

A comparator is designed to work with big input difference voltages, and to provide a small amount of hysteresis. The digital output of a comparator will switch quickly between high or low states.

To get hysteresis from an op-amp you will need to use an input resistor of 1k to the (+)input and a feedback resistor of 100k between the op-amp output and the (+)input. But that will only work if the voltage input has a low impedance.
https://en.wikipedia.org/wiki/Schmitt_trigger#Op-amp_implementations
 
Could you post a sketch showing all connections to your opamp?
 
search on opamp tutorial comparator

one of many returnshttps://www.electronics-tutorials.ws/opamp/op-amp-comparator.html

?hash=c8b8a6250136a6a166e562e4811e0c05.png
old jim
 

Attachments

  • 1553540611061.png
    1553540611061.png
    7 KB · Views: 367
  • Like
Likes   Reactions: dlgoff
David Lopez: Regarding Baluncore's
input resistor of 1k to the (+)input and a feedback resistor of 100k between the op-amp output and the (+)input
and jim hardy's schematic, what values are you using for R1 and R2, Vcc and -Vcc, and Vref? And what is/was the
The same voltage output
? I know opamps, but I need to know the above to help.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
5
Views
3K
  • · Replies 31 ·
2
Replies
31
Views
4K
Replies
3
Views
2K
  • · Replies 38 ·
2
Replies
38
Views
5K
  • · Replies 47 ·
2
Replies
47
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 20 ·
Replies
20
Views
5K
  • · Replies 78 ·
3
Replies
78
Views
6K