LED Circuit Design: Create w/1 Power Supply & 50mA Max

Click For Summary

Discussion Overview

The discussion revolves around designing a circuit to control an LED based on specific input voltage conditions, utilizing a single power supply of ±5V and adhering to a maximum current draw of 50mA. Participants explore various circuit configurations, including the use of op-amps and comparators, to achieve the desired functionality.

Discussion Character

  • Homework-related
  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant proposes using an op-amp to output a negative value for input voltages between 1V and 2V, and a positive value otherwise.
  • Another participant recalls a similar problem involving two comparators, suggesting that this might be a viable approach.
  • Concerns are raised about the 50mA limit, with a suggestion to use a 100 ohm resistor in front of each diode to limit current.
  • There is a discussion about whether the LED needs to draw 50mA and the importance of considering voltage drops across components.
  • Questions arise regarding the need for feedback in the comparators to achieve the desired voltage levels.
  • Participants discuss using potential dividers to obtain the necessary 1V and 2V from the power supply.
  • Clarifications are made about the requirement for two resistors in a voltage divider setup, rather than one.
  • A participant shares that they successfully set up the circuit in the lab after initial confusion.
  • There is a question about how to connect the LED to the outputs of the op-amps.

Areas of Agreement / Disagreement

Participants express various approaches and ideas, but no consensus is reached on a single design or method. The discussion remains exploratory with multiple competing views on circuit design and component usage.

Contextual Notes

Participants mention limitations regarding the power supply and current draw, as well as the need for careful consideration of voltage levels and component specifications. Some assumptions about circuit behavior and component requirements remain unresolved.

Who May Find This Useful

This discussion may be useful for students and hobbyists interested in circuit design, particularly those working with op-amps, comparators, and LED control in electronic projects.

wany
Messages
72
Reaction score
0

Homework Statement


I need to create a circuit that will take in a Vin, and then for a Vin of less than or equal to 1V, or a Vin greater than or equal to 2V, an led will light up.

For this I can only use one power supply of +-5V, and the circuit cannot draw more than 50mA.


Homework Equations


Basically, its Vin goes to the Circuit which goes to the led


The Attempt at a Solution


I'm having a hard time imagining this, but I was thinking that this will probably require an op-amp where the power supply is connected to it at +5V on one terminal and -5V on the other. Then I would need this opamp for the Vin, to output a negative value if Vin is between 1V and 2V; and positive otherwise.

However, I am not sure how to do that.

any help would be appreciated.
 
Physics news on Phys.org
I seem to recall a problem here very similar to this from 4 or 5 days back. It probably used two comparators.
 
Ok, so I looked into that. So i decided to draw this out. Does my drawing appear to be correct.
 

Attachments

  • Window Comparators.jpg
    Window Comparators.jpg
    11.8 KB · Views: 921
Thinking about the 50mA limit, would I need to add a resistor after each opamp in front of each diode. Seeing that the PS is +-5V, so using V=IR, R=V/I=5/.05=100 ohms

So would using a 100 ohm resistor in front of each diode work. Then the two branches meet up and go to the led.
 
Last edited:
wany said:
Thinking about the 50mA limit, would I need to add a resistor after each opamp in front of each diode. Seeing that the PS is +-5V, so using V=IR, R=V/I=5/.05=100 ohms

So would using a 100 ohm resistor in front of each diode work. Then the two branches meet up and go to the led.
The word "work" can carry a number of connotations. :smile:

If you are designing for a target current through the LED, then you need to take into account the voltage drops across the diodes and LED. Does your LED even need 50mA?

"The circuit cannot draw more than 50mA" might mean that the op-amps plus the indicator LED in total must not exceed 50mA draw. So best to design for a small but adequate LED current, and check the data sheets for your dual comparator chip to see what it will draw. Some op-amps or comparators will draw less current than others.

What you have looks promising. You have one power supply, so where are you going to obtain the 2v and 1v? Your diodes form an OR gate and isolate the output of one comparator from the other.
 
Alright, so would I need to have feedback for each comparator in order to get the 1v and the 2v?
 
wany said:
Alright, so would I need to have feedback for each comparator in order to get the 1v and the 2v?
Just use potential dividers across the 5v to obtain 1v and 2v. Often circuits do use positive feedback, but you are not asked to here.
 
Oh ok. So would I split the output from the 5V power supply into three branches:
one going directly to the opamp, another going through a resistor of X ohms then providing 2v, and a third going through a resistor of Y ohms then providing 1v.
 
Each potential divider involves a pair of resistors, not a single resistor.

To demonstrate a working circuit, you'll probably use a variable resistor across the 0..+5 rails to obtain an input that can be swung over 0 to 5v to test you have the correct triggering levels of your comparators. Is this what you meant as going directly to the op-amp?

I'm still not sure that you understand the op-amps require power to run them, quite separate to their signal inputs, even though this is not shown on normal circuit diagrams.
 
  • #10
Ok, so would the beginning of the circuit look like the picture I have attached?
 

Attachments

  • diagram.jpg
    diagram.jpg
    15 KB · Views: 966
  • #11
You won't get 2v and 1v that way. For a voltage divider you need two resistors. One goes to +5v, the other to ground, and you tap off in the middle.
 
  • #12
Thanks a lot for your help, you I realized that after I drew that picture, but we set it up in the lab and i got it working. Thanks a lot once again.
 
  • #13
Wait, would you connect the LED to the vOUT of both of the op amps?
 
  • #14
hayniesk said:
Wait, would you connect the LED to the vOUT of both of the op amps?
Hi hayniesk. http://img96.imageshack.us/img96/5725/red5e5etimes5e5e45e5e25.gif

This thread you just posted carried its final message two years ago. Was there something new you wanted to ask about it?
 
Last edited by a moderator:

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
5
Views
2K
Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
15
Views
3K
Replies
34
Views
4K