Adjusting Op Amps for LED Lighting: Understanding Comparator Behavior

In summary, the conversation was about solving a circuit problem involving a comparator op-amp and an LED. The problem was to determine the value of the 5V source needed to light up the LED when Vin reaches 9V. The solution involved using voltage division to find the voltages at the inverting and non-inverting terminals of the op-amp, which were 1V and 6V respectively. As the voltage at the non-inverting terminal was greater than the voltage at the inverting terminal, Vout was equal to +VSat, which would turn on the LED. The summary also pointed out that the individual's understanding of voltage division needed to be re-examined.
  • #1
rms5643
20
0
Edit: I solved it, and found that it should be 30v because that causes a 24v drop across 40kohm resistor which is 6v, which is equal to the voltage at the non inverting terminal, meaning Vout will be +VSat, but I don't understand why this is correct, because my notes say that if the voltage at the non inverting terminal is greater than the voltage at the inverting terminal, then Vout will be +VSat, which is what we want to power the LED, but assuming the opposite that is, assuming Vout will be +VSat if the inverting terminal is **greater** than the non inverting terminal led to the correct answer. I do not understand why, though

Homework Statement


For the circuit below, to what value would the 5 V source have to be changed so that the LED lights when Vin reaches 9V?
Figure: http://i.imgur.com/1AIQvVy.jpg

Homework Equations


Vout = -VSat if VRef > VSignal
Vout = VSat if VRef < VSignal

The Attempt at a Solution


I used voltage division to find VRef and VSignal:
40000/(40000+10000)*5=V drop across 40kΩ = 4
3000/(3000+6000)*9=V drop across 3kΩ = 3

Then, VRef = 5v-4v = 1v, and VSignal = 9v-3v = 6v

As 6v > 1v, Vout = VSat, which should power on the LED, which means the 5 V source should not have to be changed.

Though, this clearly circumvents what this problem is trying to show me so I think there's something fundamental I am not understanding about comparator op amps.
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
The op-amp doesn't share your confusion. :smile:

Each source, in conjunction with its associated potential divider, places a voltage at an input of the op-amp. If the voltage on the + input is more positive than the voltage on the - input, the op-amp output will be at +ve saturation. Just as you say you were told. :wink:

Your approach to potential dividers needs re-examining.
 
  • #3
NascentOxygen said:
Your approach to potential dividers needs re-examining.

So, my understanding of voltage division is the following:
Suppose you have a circuit with a voltage V and two resistors R1 and R2 shown as follows:

--R1--
|...|
V...R2
|...|
-------

Then, the voltage drop across R1 is defined as follows: Vr1=R1/(R1+R2)*V
And the voltage drop across R2 is defined as follows: Vr2=R2/(R1+R2)*V

So, applying this to the circuit above, the voltage drop across the 40kΩ resistor is defined to be:
40,000/(40,000+10,000)*5=4

So, that means that there is a 4v drop across the 40kΩ resistor. So the voltage at the inverting terminal is Vin minus the drop across the 40kΩ resistor, or 5-4=1v

Doing the same for the non inverting terminal:
3,000/(3,000+6,000)*9=3,
Thus, the voltage at the non inverting terminal is 9-3=6v.

Since the voltage at the non inverting terminal is greater than the voltage at the inverting terminal, Vout is equal to +VSat, which would turn on the LED.
 
  • #4
All clear now?
 
  • #5


Dear student,

Your solution is correct. The reason why your notes state that Vout = +VSat if the inverting terminal is greater than the non-inverting terminal is because they assume that the op amp is ideal and has infinite gain. In reality, op amps have a finite gain, which means that the output voltage will not be exactly equal to the supply voltage.

In this circuit, the inverting terminal is connected to ground, so the non-inverting terminal will always have a higher voltage (due to the voltage divider). Therefore, Vout will always be +VSat, which is what we want in order to power the LED.

I hope this clarifies your confusion about comparator behavior. Keep up the good work in solving problems and understanding concepts!
 

1. What is an op amp comparator?

An op amp comparator is a type of operational amplifier that is specifically designed for comparing two input voltages and producing a digital output based on that comparison. It is typically used in analog-to-digital converters, voltage level detectors, and other electronic circuits where accurate comparisons between two voltages are necessary.

2. How does an op amp comparator work?

An op amp comparator works by amplifying the voltage difference between its two input terminals and then comparing that amplified voltage to a reference voltage. If the amplified voltage is higher than the reference voltage, the output of the comparator will be high (logic 1), and if it is lower, the output will be low (logic 0). This comparison process happens very quickly, making the op amp comparator a fast and accurate tool for voltage comparison.

3. What are the advantages of using an op amp comparator?

There are several advantages to using an op amp comparator. These include high speed, high accuracy, low cost, and low power consumption. Op amp comparators also have a wide input voltage range and can operate with both positive and negative supply voltages. They are also easy to use and can be configured for different applications by adjusting the reference voltage and feedback resistors.

4. What are the limitations of using an op amp comparator?

One limitation of using an op amp comparator is that it is not suitable for continuous signals. It is designed to compare two discrete input voltages and produce a digital output. Additionally, op amp comparators have a limited input voltage range and may require additional circuitry to protect them from overvoltage. They also have a limited output current and may not be able to drive heavy loads without additional buffering.

5. How do I choose the right op amp comparator for my application?

When choosing an op amp comparator, there are several factors to consider, including input voltage range, speed, accuracy, power consumption, and cost. You should also consider the type of output (open collector, push-pull, etc.) and the supply voltage required. It is important to carefully evaluate your application's requirements and choose an op amp comparator that meets those requirements while also considering factors such as temperature range and package size.

Similar threads

  • Engineering and Comp Sci Homework Help
2
Replies
59
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
13
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
34
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
850
  • Engineering and Comp Sci Homework Help
Replies
16
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
13
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
Replies
33
Views
4K
Back
Top