Operational Amplifier Comparator Circuit

In summary: The op-amp has an open-loop gain of 100. So even if Vin = 5 V, the output will only be 4.95 V.The op-amp has an open-loop gain of 100. So even if Vin = 5 V, the output will only be 4.95 V.
  • #1
Taniaz
364
1

Homework Statement


The variation with time t of the potential Vin at the inverting input of the op-amp is shown in Fig. 10.2.
On the axes of Fig. 10.2, draw the variation with time t of the output potential of the op-amp.
(pictures attached)

Homework Equations


The potential divider equation to find the V+ (the non inverting input)

The Attempt at a Solution


I know the graph has to look like a square hat function and I know that 5 V will be the saturation limit but I'm not entirely sure where the graph starts or the important part of the graph or why they've drawn the 1.0 V line on the graph.
Please help. Thank you.
 

Attachments

  • Screenshot 2017-02-22 at 19.41.48.png
    Screenshot 2017-02-22 at 19.41.48.png
    41 KB · Views: 493
  • Screenshot 2017-02-22 at 19.41.57.png
    Screenshot 2017-02-22 at 19.41.57.png
    37 KB · Views: 418
Physics news on Phys.org
  • #2
Taniaz said:
I know the graph has to look like a square hat function and I know that 5 V will be the saturation limit but I'm not entirely sure where the graph starts or the important part of the graph or why they've drawn the 1.0 V line on the graph.
Please help. Thank you.
Examine the op-amp circuit. What type of configuration is this? What determines the threshold value where the circuit changes states?

By the way, I plan to change the name of this thread to make it more specific (too general thread names are not allowed). I'll change it after you've answered :smile:
 
  • #3
It's an inverting amplifier. So Vout is negative when the input voltage is positive. What do you mean by changes state?
Sure, sorry, I wanted to write something specific but I forgot while writing the thread.
 
  • #4
Taniaz said:
It's an inverting amplifier. So Vout is negative when the input voltage is positive. What do you mean by changes state?
Examine the circuit closely. Is there a feedback path? When exactly will the opamp output voltage change?
 
  • #5
There is a feedback path and if I'm not mistaken, is it going to the non inverting output?
It changes when the inputs are not the same?
 
  • #6
Taniaz said:
There is a feedback path and if I'm not mistaken, is it going to the non inverting output?
Nope. Ground is not a feedback path. No signal can pass through ground and have a potential with respect to ground.
It changes when the inputs are not the same?
True. So what sets the threshold value? What potential is at the +input?
 
  • #7
So then it doesn't seem to have a feedback system because Vout is not connected to the inverting input either.

The + potential is 1.0V, I calculated that using the potential divider equation
V+ = (1.5x2.4)/(1.2+2.4) = 1.0 V.

What is the voltage of the - potential?
 
  • #8
Taniaz said:
So then it doesn't seem to have a feedback system because Vout is not connected to the inverting input either.

The + potential is 1.0V, I calculated that using the potential divider equation
V+ = (1.5x2.4)/(1.2+2.4) = 1.0 V.
Correct.
What is the voltage of the - potential?
What is it defined to be in the problem statement?

General hint: Look up "op amp comparator circuit"
 
  • #9
Is it 5 V? I'm not so sure about this one.

According to the graph, the highest it can be is 4 V and the lowest is 0 V
 
  • #10
Taniaz said:
Is it 5 V? I'm not so sure about this one.
No.
According to the graph, the highest it can be is 4 V and the lowest is 0 V
Right. So pick a few values along the curve and decide what the op-amp output will be for those values of the input.
 
  • #11
So when Vin = 2V, Vout= V+ - V- = 1 - 2 = -1 V but what is the gain? Since it's an idea op-amp that means the gain is infinite but isn't Vout = G (V+ - V-) how do I substitute for the gain as it's infinite?

V+ will always be 1 V in this case? Because the resistances don't change?
 
  • #12
Also, I don't get a value of Vout as 5 V, the maximum it goes is from -3V till 1 V
 
  • #13
Taniaz said:
So when Vin = 2V, Vout= V+ - V- = 1 - 2 = -1 V but what is the gain? Since it's an idea op-amp that means the gain is infinite but isn't Vout = G (V+ - V-) how do I substitute for the gain as it's infinite?
While the gain may be very large (infinite for an ideal op amp), a real op amp has real-life constraints. What limits a real operational amplifier's output excursions?
V+ will always be 1 V in this case? Because the resistances don't change?
Yes.

You need to follow the hint I provided in post #8. A little research will answer all your questions :wink:
 
  • #14
I don't get a value of Vout as 5 V at any point, the maximum it goes is from -3V till 1 V
 
  • #15
Taniaz said:
I don't get a value of Vout as 5 V at any point, the maximum it goes is from -3V till 1 V
You're not accounting for the open-loop gain of the op amp (infinite for the ideal op amp, but still very large for a real op amp).
 
  • #16
If V+ is greater is magnitude than V-, the comparator will just take the value equal to the positive power supply voltage and if V+ is slightly smaller in magnitude than V- then Vout will be equal to the negative power supply voltage?

So what I did by taking values and subtracting them to find Vout was wrong?
 
  • #17
If my above comment is true, what happens if both voltages are the same?
And in this case, the function does appear like a top hat function
 
  • #18
Taniaz said:
If V+ is greater is magnitude than V-, the comparator will just take the value equal to the positive power supply voltage and if V+ is slightly smaller in magnitude than V- then Vout will be equal to the negative power supply voltage?
Don't use "magnitude" here. Polarity is important. If the potential at the V+ is greater than the potential at V- then the output will head to the +5 V rail. If the potential at V+ is less than the potential at V- then the output will go to the -5V rail. (The word "rail" for the power supply voltages is used here as it sets the limits constraining the output swing. The op amp output is constrained to lie between the rails, so to speak).
So what I did by taking values and subtracting them to find Vout was wrong?
Finding the potential difference at the inputs is the first step. You then have to translate that potential difference into a resulting output. That's where the gain and limiting factors (rails) come in.
 
  • #19
What happens if both voltages are the same?
And this time, the graph does appear like a top hat function
 
  • #20
Taniaz said:
What happens if both voltages are the same?
Then the output will be zero. Depending upon the gain of the op amp there is a tiny voltage range where it can behave as a traditional inverting amplifier. The potential difference would have to be less than the rail voltage divided by the open loop gain. So if the gain of the op amp were say, 100,000, and the rail voltage 5 V, the input difference would need to be less than 50 μV for the circuit to operate as a linear amplifier.
 
  • #21
Ok so how will I show this on my graph? Are they the vertical lines of the top hat function? My top hat function doesn't look very uniform, the negative part is longer than the positive part for some strange reason.
 
  • #22
Taniaz said:
Ok so how will I show this on my graph? Are they the vertical lines of the top hat function?
There's nothing to show for this, it's covered by the vertical transitions as you surmised.

With the given input signal the output transition from rail to rail will be all but instantaneous for an ideal op amp. As long as the gain is sufficient and the input signal not of too high a frequency you won't see the "linear mode" effects in the output.

Can you post an image of your results?
 
  • #23
So this is what I got
 

Attachments

  • 16924135_10155033150388838_1131212196_n.jpg
    16924135_10155033150388838_1131212196_n.jpg
    75.3 KB · Views: 387
  • #24
Yes, that looks fine.
 
  • #25
So much more clearer to me now, thank you so much for your help :smile:
 
  • #26
I'm slightly confused with the last part of this question regarding when diode R and G will be emitting light at t1 and t2. At t1, both Vin and Vout are maximum (Vout is -5V) so they've said that R will be emitting light whereas G won't be emitting light.
And at t2, they've said the opposite where Vout is max and Vin is 0.
 
  • #27
Taniaz said:
I'm slightly confused with the last part of this question regarding when diode R and G will be emitting light at t1 and t2. At t1, both Vin and Vout are maximum (Vout is -5V) so they've said that R will be emitting light whereas G won't be emitting light.
And at t2, they've said the opposite where Vout is max and Vin is 0.
What part of that do you find confusing?

Diodes only conduct current in one direction and they need to be forward biased to do so. That means they need a particular polarity of voltage to be applied across them. Label the output with, say +5 V and see which diode can conduct. Then label it with -5 V and check again.
 
  • #28
Ok yes, makes a lot more sense now! Thank you
 

1. What is an operational amplifier comparator circuit?

An operational amplifier comparator circuit is a type of electronic circuit that uses an operational amplifier (op-amp) to compare two input voltages and produce an output based on the comparison. It is commonly used in electronic devices to detect and amplify small differences between two input signals.

2. How does an operational amplifier comparator circuit work?

The op-amp comparator circuit has two inputs, an inverting input (-) and a non-inverting input (+). The op-amp amplifies the voltage difference between these two inputs and produces an output voltage based on the comparison of the inputs. If the non-inverting input is higher than the inverting input, the output will be high, and if the inverting input is higher, the output will be low.

3. What are the applications of an operational amplifier comparator circuit?

An operational amplifier comparator circuit has various applications, including voltage level detection, signal conditioning, analog-to-digital conversion, and pulse-width modulation. It is commonly used in electronic devices such as sensors, audio equipment, and motor control systems.

4. What are the advantages of using an operational amplifier comparator circuit?

Some of the advantages of using an op-amp comparator circuit include high gain, high input impedance, and low output impedance. It also has a fast response time and can operate over a wide range of input voltages. Additionally, it is a cost-effective and versatile circuit that can be easily implemented in various applications.

5. What are the limitations of an operational amplifier comparator circuit?

One of the limitations of an op-amp comparator circuit is that it can only output two states, high or low, making it unsuitable for continuous analog signals. It also requires a stable power supply and can be affected by noise and offset voltage. Additionally, the input voltages must be within the op-amp's operating range, and the circuit may experience saturation if the input voltage exceeds the op-amp's capabilities.

Similar threads

  • Introductory Physics Homework Help
Replies
7
Views
832
  • Introductory Physics Homework Help
Replies
7
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
781
  • Engineering and Comp Sci Homework Help
Replies
34
Views
2K
  • Introductory Physics Homework Help
Replies
7
Views
1K
  • Introductory Physics Homework Help
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
2K
Replies
2
Views
423
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Introductory Physics Homework Help
Replies
2
Views
941
Back
Top