Can I make a circuit that responds to the number of volts in the input ?

Discussion in 'General Electronics Chat' started by Michael George, Feb 8, 2015.

  1. Michael George

    Thread Starter Member

    Feb 8, 2015
    52
    2
    Hello everybody, Would you give me a hand ?
    I need to make a circuit that has Inputs and outputs. I assume that the circuit has 3 LEDs as outputs.
    1- When I connect the Input to 1 volt the first LED will light.
    2- When I connect the same Input to 2 volts The second LED will light, In this case it doesn't matter if the first LED is on or off.
    3- When I connect the same Input to 3 volts The Third LED will light, and also I don't care about the first and the second LED.

    The voltage step should not be 1 volt only, It may be 2 volts or any value. I mean if I connect 2 volts the first LED will light. If I connect 4 volts the second LED will light and so on..

    Is it possible to make this circuit using transistors ?
    What is the schematic of the circuit ? ( Just give me a link or a reference that I can learn how to make this circuit )
     
  2. bertus

    Administrator

    Apr 5, 2008
    15,647
    2,346
    Hello,

    Have a look at the LM3914 chip.

    Bertus
     
    cmartinez and Michael George like this.
  3. GopherT

    AAC Fanatic!

    Nov 23, 2012
    6,031
    3,800
    Yes.
    Look at a chip called LM3914

    It is like a volt meter with 10 outputs. It powers up the 10 outputs step by step.

    There are other options like a window comparitor but will take several chips.
     
    Michael George likes this.
  4. tracecom

    AAC Fanatic!

    Apr 16, 2010
    3,869
    1,393
    It can also be done quite easily with a microcontroller; the PICAXE is one that is suitable.
     
    Michael George likes this.
  5. Reloadron

    Active Member

    Jan 15, 2015
    963
    232
    As you are seeing there are a number of ways to go about doing what you are looking to do. The LM3914 is a good choice and using a micro-controller is another good choice. Another option as Gopher mentioned is using a comparator type chip like the LM 339 which gives you 4 comparators in a single chip. Give this a read as to using comparators. Deciding what works best for your application and needs is a matter of really defining them. For example I want to turn on a LED at 1 volt, 1.5 volts and then 3 volts but I won't always use those voltages, I want to be able to easily change and adjust what voltages I turn a LED On / Off at.

    Ron
     
    Michael George likes this.
  6. GopherT

    AAC Fanatic!

    Nov 23, 2012
    6,031
    3,800
    @Michael George
    The circle on left is your input.
    Adjust resistors on left of the comparitors to adjust voltage levels.
    This is really what is happening inside the LM3914 chip. This option simplifies because you would need a 10 volt power source to make the LEDs turn on at 1, 2 and 3 volts exactly (or you would have to somehow play with the high input limit. This seems easier if you want a versatile option for when the LEDs turn on.
    image.jpg
     
    Michael George likes this.
  7. cmartinez

    AAC Fanatic!

    Jan 17, 2007
    3,572
    2,536
    Great chip... didn't know about it, must have hundreds of different uses. Thanks.
     
  8. WBahn

    Moderator

    Mar 31, 2012
    17,743
    4,790
    Well, you've given conflicting specs.

    In #3 you stated that if you connect it to 3V then the third LED should be on and you don't care about the first two. But then you say that if you connect 4V that the second LED should be on (and, presumably, the third should be off).

    Which is it?

    What are your requirements?

    How is the circuit supposed to know what voltage step you have in mind?

    If that is part of the spec, namely that you apply the amount of the step voltage to one input and the input voltage to the other, then fine. But you need to make that part of your spec. Similarly, if you set the step voltage using a switch or a pot or something else, that needs to be part of your spec.
     
  9. #12

    Expert

    Nov 30, 2010
    16,283
    6,795
    One really slick feature of the 3914 is that you can choose a bar graph display or just one LED at a time.
     
    Michael George likes this.
  10. GopherT

    AAC Fanatic!

    Nov 23, 2012
    6,031
    3,800
    And the lm3915 has a log response to the input that is perfect for audio.
     
    Michael George and cmartinez like this.
  11. cmartinez

    AAC Fanatic!

    Jan 17, 2007
    3,572
    2,536
    When I was kid I wanted to build a circuit to monitor a water tank's level, either with one or two wires, or with coaxial tubes... I didn't know back then how difficult it would be for someone with zero knowledge about electric signals... back then datasheets were extremely hard to get (and keep)... maybe I would've persevered and experimented lots more if I had known that a single chip had the essential function for a bar-type display, like this one.
     
    Michael George likes this.
  12. Michael George

    Thread Starter Member

    Feb 8, 2015
    52
    2
    Thank you very much GopherT. It's really good Idea to design the circuit using comparators. I like it :)
    Thank you all for helping me and also LM3914 chip is a good idea :)
     
Loading...