Yes, that's what I want.Not certain how to answer your question. But here's what I'm seeing: Two LED's and two controlling inputs. Assume inputs are labeled A & B. If A is high and B is low then one LED (lets call it LED1) will light up. If B is high and A is low then LED2 will light up. If both A & B are high then neither LED will light up. If both A & B are LOW then neither LED will light up.
Is that what you want?
And clarify please: You said you have two white LED's of differing colors ? ? ?
Current consumption is not a main concern, but I do agree it's a bit high. I do want to keep the cost to minimum, so I don't really want to use a h-bridge, relay etc. I deally, I would want to control it with 3.3V or 5V logic.What were you planning for resistor values? I haven't simmed or calculated anything for real, but off the top of my head it seems like you're going to be dumping a LOT of current through whichever top resistor (R1 or R2) is above the active transistor.
Maybe there's a combination of resistance values that balances better than I'm imagining, or maybe the wasted current doesn't bother you, but it certainly looks strange to me.
I would've expected one of two likely solutions:
- H-bridge arrangement
- One pin controlling on/off function (bjt, MOSFET, relay, whatever) and the other pin controlling polarity reversal through a DPDT relay.
Q1 active, Q2 off lights D2.Since it can only be reversed biased D2 will never turn on.
Kind of low on the voltage for that long a run. May work. Might have to get a "Good" wire. Something like a good ethernet like wire, one that is rated for long runs of data transmission. You may even need a power source at the lights just so you can switch them on and off. 3.3 volts is already close to the forward voltage of a white LED; depending on the exact LED you have. And I don't know if you're going to be able to turn on a regular transistor with just 5 volts. Might have to go with a logic level MOSFET. Of course, then the solution becomes even more simple. I'd bang out a drawing but it's close to my bed time and I have a few things to do before I hit the hay.Ideally, I would want to control it with 3.3V or 5V logic.
Why do you suggest adding 1n4148 in series with R3 and R4?Reduce the values of R3 and R4, and in series two 1N4148 with two led and be careful their polarity.
Sorry I mean to say the output voltage of my MCU to the transistor inputs are 3.3V or 5V. The 40M wires are referring to the two wire between the two LEDs and my transistors.Kind of low on the voltage for that long a run. May work. Might have to get a "Good" wire. Something like a good ethernet like wire, one that is rated for long runs of data transmission. You may even need a power source at the lights just so you can switch them on and off. 3.3 volts is already close to the forward voltage of a white LED; depending on the exact LED you have. And I don't know if you're going to be able to turn on a regular transistor with just 5 volts. Might have to go with a logic level MOSFET. Of course, then the solution becomes even more simple. I'd bang out a drawing but it's close to my bed time and I have a few things to do before I hit the hay.
Because when anyone of the led is turn on and the other one is turn off, but the polarity was reversed, that will causes the led damaged anytime.Why do you suggest adding 1n4148 in series with R3 and R4?
I thought that each LED allowed enough current to flow that it limited the voltage across it to its forward voltage rating (Vf.) The Vf of each LED should be much lower than the reverse voltage it would take to a damage an LED, so effectively each LED is protecting the other LED from dangerous reverse-voltage levels.Because when anyone of the led is turn on and the other one is turn off, but the polarity is reversed, that will causes the led damaged anytime.
If we considering two situations that the first is pin to pin and one of led reverse the polarity and the second is like the first posted, now we discuss the first posted, what do you think that how many volts will be cross on the led which is turn off and comparing to the led which turn on ?I thought that each LED allowed enough current to flow that it limited the voltage across it to its forward voltage rating (Vf.) The Vf of each LED should be much lower than the reverse voltage it would take to a damage an LED, so effectively each LED is protecting the other LED from dangerous reverse-voltage levels.
Sorry, I get it now. @dendad set me straight with that last post. I apologize.If we considering two situations that the first is pin to pin and one of led reverse the polarity and the second is like the first posted, now we discuss the first posted, what do you think that how many volts will be cross on the led which is turn off and comparing to the led which turn on ?