Electronic – RGB LED brightness levels

ledraspberry pirgbtransistors

Do RGB LEDs have very different brightness levels?

I'm running an RGB LED (common cathode) via some TIP120 transistors, controlled from a raspberry Pi.

There is a 5v feed from the rPi.

Initially I had ~2k resistors in series with the output pins and the base of the trans. but they were failing to trigger so I've removed them.

I also then had what I thought were the correct resistor values in series with the LED (82R and 150R for red and blue / green respectively) but they were so dim as to be useless.

So those have gone as well.

So against everything I know to be "right" I've got no resistors on the LED or the output pins.
The red is nice and bright but green and blue are still both pretty dim.
I'm controlling with software PWM from the pi and have had to limit the red channel to 25% of the green and blue just to level things out a bit.

Any idea what's going on?

Best Answer

Without a schematic, based on your question, you have Common Cathode Led with TIP120 transistors? I assume you have them connected backwards from normal.

schematic

simulate this circuit – Schematic created using CircuitLab

The TIP120 is a NPN darlington pair transistor. It normally expects to be on the low side of the load. You are using them for High Side Switching, which won't work. If your led was common anode, you could swap them around, and it would work (WITH THE RESISTORS).

But in this case, you have 1) A different signal level from the led power level (3.3v vs 5v) so Direct PNP transistor won't work, and 2) The Raspberry PI GPIO cannot source a lot of current. 16mA at max. So You need both NPN and PNP transistors. Some 2n3904 and 2n3906 Common npn and pnp transistors, but any similar would work

schematic

simulate this circuit

I only show the blueled (5v source voltage - 3.2v forward voltage - 0.2v VCE drop / 20mA = 80Ω), do the same for the green led, and use a 140Ω or higher resistor for the red led.