![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hello, i have to design a citcuit which will light a colred LED if the voltage is less than 5v and another LED would light if the voltage is more than 5v. i would like some ideas or tips on how to construct such a circuit and what type of components is need. if you could pass on any helpful websites that would be great. thanks a lot | |
| |
| | (permalink) |
| It sounds like you're looking for a LOGIC PROBE. here is a link to a recent discussion on Logic probes, which has some good links to circuits, as well as a circuit diagram included. http://www.electro-tech-online.com/viewtopic.php?t=8005 Also, if you search the web under logic probe, I'm sure you'll find plenty of circuits. Good luck. I hope this is what you're looking for. | |
| |
| | (permalink) |
| Without bothering to look at the link johnson supplied, couldn't you just use a comparator with voltage dividing network??
__________________ www.winpicprog.co.uk - Great PIC language tutorials. | |
| |
| | (permalink) |
| i've heard ideas of using opamps to construct this circuit, any suggestions as to how i can go about it using opamps? | |
| |
| | (permalink) |
| Use the 5 volt rail as a reference, and it becomes easy. John | |
| |
| | (permalink) |
| ok, how would i use the opamp so that the LED knows how much voltage its getting? this is the first time ive had to design a circuit and i really appreciate all the advice. | |
| |
| | (permalink) |
| Using an Op-amp here would suggest a comparitor circuit, as mentioned above by Pike. check here for an op-amp tutorial which describes a comparator. http://www.uoguelph.ca/~antoon/gadgets/741/741.html here http://faculty.dbcc.cc.fl.us/cox/Op_amp%20B.htm This should give you a good start! Good luck! | |
| |
| | (permalink) |
| thanks a lot for the links, i'll try to see if i can make sense of it and try to make a design for my circuit | |
| |
| | (permalink) |
| Ok, i think i understand the concept of how a comparator works, but i'm still having trouble applying it to the circuit i need. how do i make it so that it responds to the 5v cut off range (green led on when above 5V, red on when below). ive heard that i only need one op-amp to do this, but i still need to figure out what kind of resistors i need and how to connect the LED's to the op-amp. any advice would be greatly appreciated, i'll try to look around for more info as well thanks | |
| |
| | (permalink) |
| Here is a suggestion. Len | |
| |
| | (permalink) |
| Hey thanks for the suggestion. i've done my best to figure this all out and i think i've found a good design. i wasn't too sure about what the value of my resistor should be though or about the positive or negative power supply's sorry for the crude drawing | |
| |
| | (permalink) |
| This one has two disadvantages. 1. there is no hystersis. So if the input voltage is close to 5 Volt, neither of the LEDs will glow. However you can add hystersis to your circuit by providing a feedback resistor from the output to the + input and series resistors as in my circuit. If you use the same resistor values, you will have about 60 mV of hystersis. 2. you need two supply voltages. However, it has the advantage that there will be less current required since it does not have the 2 resistors in series across the supply that mine does. As for your question about the about the positive or negative power supply's, I don't know which IC you intend to use, so I don't know what common mode range it has. In general, you would need supply voltages of at least 8 Volt. If you make the resistor in series with the LEDs 1k, you will have a LED current of about 6 mA for supply voltages of +/- 8 Volt. If you want the LEDs brighter or dimmer, change the resistor to another value. You should check the data sheet of the IC you use to ensure that it can source the LED current. | |
| |
| | (permalink) |
| Appears to be a good app for a comparator IC such as a LM339, heres a link to some info. http://home.cogeco.ca/~rpaisley4/Comparators.html
__________________ Two roads diverged into a woods...i took the one less travelled by. R. Frost. | |
| |
| | (permalink) |
| Yes but, unlike the op amps, comparitors have open collector outputs. So if the LM311 is used, 2 resistors are necessary to make 2 LEDs work. If the LM339 is used, 3 resistors will be necessary since the emitter of the output transistor is connected to the negative supply pin. Len | |
| |
| | (permalink) |
| wow, ok im pretty sure the circuit i posted up before works. only problem is im having a lot of trouble trying to get it made correctly on a breadboard. if anyone knows how to put such an opamp on a breadboard correctly, your advice would be so great. the way i set up up, i have the opamp staddling the break in the middle of the breadboard. im sure i have a wire out of place somewhere so that all the connections aren't being made right, if anyone can help me correct this it would be awesome thank you | |
| |