Electronic – Help with bipolar LED’s and Transistors

ledmicrocontrollernpnpnptransistors

Let me first say I'm new to electronics. 🙂
So, my question is will this circuit work? I'm trying to light up a 2 lead bipolar LED using 2 pins on a microcontroller.

My theory is when the mcu pin 1 is high Q1 is saturated giving voltage, and when pin 2 is low Q4 is saturated connecting the circuit to ground and allowing LED1 to light up. And LED2 will light when pin 1 is low and pin 2 is high.

Am I on the right track? Or am I over-complicating this even? I do that a lot 🙂

schematic

Best Answer

In your schematic, the PNPs need to be on the high side, and NPNs on the low side, all in the appropriate direction (+ → -). But you are overthinking it; using the MCU's standard push-pull outputs (which you've almost reconstructed in your schematic) with opposite levels will light the LED assuming the output voltage is high enough for the LEDs, and you can use alternating polarities to turn it the combined color.

schematic

simulate this circuit – Schematic created using CircuitLab