• Support PF! Buy your school textbooks, materials and every day products Here!

Circuit Design - Comparators to light an LED

  • Engineering
  • Thread starter hayniesk
  • Start date
  • #1
3
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!
 

Answers and Replies

  • #2
berkeman
Mentor
57,305
7,285

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?
 
  • #3
3
0
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.
 
  • #4
berkeman
Mentor
57,305
7,285
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"
 
  • #5
CWatters
Science Advisor
Homework Helper
Gold Member
10,529
2,295
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.
 
  • #6
CWatters
Science Advisor
Homework Helper
Gold Member
10,529
2,295
  • #7
4
0
Or the same class from two years back? I'm actually working on this same problem now and can't really figure it out...
 
  • #8
CWatters
Science Advisor
Homework Helper
Gold Member
10,529
2,295
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.
 
  • #9
berkeman
Mentor
57,305
7,285
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:
 

Related Threads on Circuit Design - Comparators to light an LED

  • Last Post
Replies
13
Views
5K
Replies
1
Views
6K
  • Last Post
Replies
1
Views
1K
Replies
2
Views
847
Replies
17
Views
780
  • Last Post
Replies
24
Views
3K
  • Last Post
Replies
3
Views
3K
Replies
6
Views
1K
  • Last Post
Replies
7
Views
5K
Top