Circuit Design - Comparators to light an LED

Click For Summary

Discussion Overview

The discussion revolves around designing a circuit using comparators to control an LED based on specific input voltage conditions. The circuit must activate the LED when the input voltage is outside the range of 1V to 2V, using a single power supply of +/-5V and not exceeding a current draw of 50mA. Participants explore circuit design concepts, including the use of voltage dividers and operational amplifiers.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants suggest using two comparators to determine when the LED should light up based on the input voltage.
  • There is a contention regarding the wording of the problem statement, specifically the logical conditions under which the LED should be activated.
  • One participant proposes that the LED should be ON when the input voltage is less than 1V or greater than 2V, and OFF when the input voltage is between 1V and 2V.
  • A suggestion is made to use a diode/resistor logic OR gate to combine the outputs of the comparators to control the LED.
  • Another participant expresses confusion about the problem and seeks clarification on how to manipulate the circuit design to meet the specified conditions.

Areas of Agreement / Disagreement

Participants express differing interpretations of the problem statement, particularly regarding the logical conditions for the LED activation. There is no consensus on the correct interpretation, and the discussion remains unresolved.

Contextual Notes

Participants have noted potential ambiguities in the problem statement, particularly the use of "and" versus "or" in the context of voltage ranges. The discussion includes various assumptions about circuit design and the functionality of comparators without definitive resolutions.

hayniesk
Messages
3
Reaction score
0
Circuit Design -- Comparators to light an LED

Homework Statement


I need help designing a circuit that takes an input voltage and then lights a single LED if and only if V in is greater than or equal to 2V and less than or equal to 1 V.
It can only use 1 Power Supply unit, +/-5V
Circuit must not draw more than 50mA

Homework Equations


voltage divider = vtotal*R1/(R1+R2)

The Attempt at a Solution


I know that there definitely needs to be a voltage divider of some sort (potentiometer?) range the voltage between 0V and 5V, and I probably will need 2 op amps. But I don't know how to design the circuit such that the LED will only light up if the voltage is within the given range.

Help appreciated!
 
Physics news on Phys.org
hayniesk said:

Homework Statement


I need help designing a circuit that takes an input voltage and then lights a single LED if and only if V in is greater than or equal to 2V and less than or equal to 1 V.
It can only use 1 Power Supply unit, +/-5V
Circuit must not draw more than 50mA


Homework Equations


voltage divider = vtotal*R1/(R1+R2)


The Attempt at a Solution


I know that there definitely needs to be a voltage divider of some sort (potentiometer?) range the voltage between 0V and 5V, and I probably will need 2 op amps. But I don't know how to design the circuit such that the LED will only light up if the voltage is within the given range.

Help appreciated!

I think there is a typo in your problem definition where I bolded it. Can you check to see if the wording of the voltage range shoule be fixed?

And I think you should initially try to do this using 2 comparators... Does that help?
 
The part that you bolded is in fact correct. Those are indeed the instructions. That is where my problem lies.

I am thinking about setting up two comparators, and i have a sketch of it. I just don't know how to manipulate it to turn off only when vIN is between 1 and 2V.
 
hayniesk said:
The part that you bolded is in fact correct. Those are indeed the instructions. That is where my problem lies.

I am thinking about setting up two comparators, and i have a sketch of it. I just don't know how to manipulate it to turn off only when vIN is between 1 and 2V.

Sorry, but that makes no sense. The two voltage ranges are mutually exclusive, so you cannot AND them.

"if and only if V in is greater than or equal to 2V and less than or equal to 1 V"
 
It makes sense to me although I agree the wording could be better. The word "and" is not being used to mean the logical AND.

The LED should be ON for Vin is <1V OR Vin >2V and OFF when Vin is between 1V and 2V.

Two comparators can be used to test Vin. Consider making an OR gate from diodes.
 
Or the same class from two years back? I'm actually working on this same problem now and can't really figure it out...
 
Wany posted a circuit on that other thread. Works like this..

One comparator generates a logic 1 (5V) output if the input is below 1V
Second comparator generates a logic 1 (5V) output if the input is above 2V.

A Diode/Resistor Logic OR gate is used to OR the two outputs of the comparators (google Diode OR gate).

Such an OR gate is built from two diodes and a resistor. The resistor is also used to limit the LED current.

If you don't know how to set up the comparators there are plenty of guides on the web.

Otherwise tell us where you are stuck.
 
Isn't there a car commercial running now that points out how important AND versus OR is?

Sweet OR Sour Pork...

Hide OR Seek...

:smile:
 

Similar threads

  • · Replies 19 ·
Replies
19
Views
3K
Replies
5
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
3
Views
2K
  • · Replies 34 ·
2
Replies
34
Views
6K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
15
Views
3K