1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LED Circuit Design

  1. Oct 24, 2011 #1
    1. The problem statement, all variables and given/known data
    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.


    2. Relevant equations
    Basically, its Vin goes to the Circuit which goes to the led


    3. 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.
     
  2. jcsd
  3. Oct 24, 2011 #2

    NascentOxygen

    User Avatar

    Staff: Mentor

    I seem to recall a problem here very similar to this from 4 or 5 days back. It probably used two comparators.
     
  4. Oct 25, 2011 #3
    Ok, so I looked into that. So i decided to draw this out. Does my drawing appear to be correct.
     

    Attached Files:

  5. Oct 25, 2011 #4
    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: Oct 25, 2011
  6. Oct 25, 2011 #5

    NascentOxygen

    User Avatar

    Staff: Mentor

    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.
     
  7. Oct 26, 2011 #6
    Alright, so would I need to have feedback for each comparator in order to get the 1v and the 2v?
     
  8. Oct 26, 2011 #7

    NascentOxygen

    User Avatar

    Staff: Mentor

    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.
     
  9. Oct 26, 2011 #8
    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.
     
  10. Oct 26, 2011 #9

    NascentOxygen

    User Avatar

    Staff: Mentor

    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.
     
  11. Oct 26, 2011 #10
    Ok, so would the beginning of the circuit look like the picture I have attached?
     

    Attached Files:

  12. Oct 27, 2011 #11

    NascentOxygen

    User Avatar

    Staff: Mentor

    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.
     
  13. Oct 27, 2011 #12
    Thanks a lot for your help, ya I realized that after I drew that picture, but we set it up in the lab and i got it working. Thanks alot once again.
     
  14. Oct 22, 2013 #13
    Wait, would you connect the LED to the vOUT of both of the op amps?
     
  15. Oct 23, 2013 #14

    NascentOxygen

    User Avatar

    Staff: Mentor

    Hi hayniesk. http://img96.imageshack.us/img96/5725/red5e5etimes5e5e45e5e25.gif [Broken]

    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: May 6, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: LED Circuit Design
  1. LED Circuit Question (Replies: 1)

  2. Circuit Design (Replies: 25)

Loading...