I'd like to use a bicolor LED powered from a single power supply (either 0-5V or 0-12V). I have two applications. One driven by a comparator (LM393 most likely) and the other driven by a simple transistor with both emitter and collector available. But for some reason the solution elludes me and I can't figure out how on paper to make it work. Specifically, I'm looking at All Electronics Parts LED-6 (2 pin, reverse polarity to change color), and LED-141 (3 pin).
You just use a single resistor depending on the voltage you're using... How do you intend to reverse the polarity of the LED using only a comparator or a transistor?
An H-bridge circuit (look at it in Google) reverses the voltage to a DC motor. It can also reverse the voltage to your bi-color LED.
The H-bridge has 2 inputs. One input will light one color and the other input will light the other color.
Think about what happens when you activate both inputs.
You just use a single resistor depending on the voltage you're using... How do you intend to reverse the polarity of the LED using only a comparator or a transistor?
An H-bridge circuit (look at it in Google) reverses the voltage to a DC motor. It can also reverse the voltage to your bi-color LED.
The H-bridge has 2 inputs. One input will light one color and the other input will light the other color.
Think about what happens when you activate both inputs.
Not having a chance to draw it out, lighting the 3 pin led from a single output has become easier said than done. As for the 2 pin led, I can follow Diver300's idea; it may even work on an open collector output selecting the right pull up resistor.
It is extremely simple if you look at the schematic of how the LEDs are connected on the website of the manufacturer.
Many people here have said that the cheap Chinese "common-cathode" LEDs they bought off E-Bay are actually common-anode. Since you bought a cheap Chinese LED from E-Bay then I am sorry for you.
It is extremely simple if you look at the schematic of how the LEDs are connected on the website of the manufacturer.
Many people here have said that the cheap Chinese "common-cathode" LEDs they bought off E-Bay are actually common-anode. Since you bought a cheap Chinese LED from E-Bay then I am sorry for you.
I've tried simulating any number combinations in Protel, but can't come up with a circuit to light both LEDs. I can light one but not the other. Do you have a sketch you could post? I could light both if they were in series Anode1-Cathode1/Anode2-Cathode2. But that's not the part I am looking at from ALL ELECTRONICS. (where did eBay enter into this? but thanks for the warning)
I've tried simulating any number combinations in Protel, but can't come up with a circuit to light both LEDs. I can light one but not the other. Do you have a sketch you could post? I could light both if they were in series Anode1-Cathode1/Anode2-Cathode2. But that's not the part I am looking at from ALL ELECTRONICS. (where did eBay enter into this? but thanks for the warning)
Yep knew that. But I didn't have a Dual LED symbol and when I put two in to make one, I put them head to tail. I could get that to work. Unfortunately, I realized after a few minutes of relishing in my success that my schematic didn't match my part and haven't been able to devise a circuit to do so. I'm think it's writer's block. This can't be that hard.
I have an open collector output (LM393) and a NPN transistor output (from an opto-coupler, both collector and emitter are available). All powered from a 0/5V power supply.
I have an open collector output (LM393) and a NPN transistor output (from an opto-coupler, both collector and emitter are available). All powered from a 0/5V power supply.
Sorry. I was trying to be succinct from my first post. I have two scenerios, one has an open collector output, the other a transistor (easily configured as open collector, but the emitter is available if necessary). I'm looking to use one LED or the other, but would like to know what options there are make either work (trying to improve my knowledge base). Very simple states; on steady one color, off steady the other color.
I was thinking about the 2-pin circuit for a moment and tried to simulate it (see attached sketch NOT from the simulation)
When the ouput is off, current flow is through the pullup through the LED through R2 to ground (upper left to lower right). When the output is on, the current flow is through R1 through the LED then the transistor to ground (upper right to lower left). When the output is off there is less current than when it is on.
R1 must equal R2 to produce 2.5V. Then mathematically the pull-up resistor must be 0 ohms in order to have the same current through both resistors in the on and off states. BUT if the pull-up is 0 ohms, then (A) 1 led is tied to +5V and will never light and (B) when the output turns on it will short the power supply and blow the output. Is it possible to get the same current through both leds in a circuit close to this?
What if you added a resistor between the transistor and ground the same size as the pull up?
I think you also need a current limiter in series with the LED