Electronic – RGB led weird color behaviour (blue except when touched to skin)

ledrgb

I have an RGB LED, which I belive to be the diffuse version of this one:
https://www.sparkfun.com/datasheets/Components/YSL-R596CR3G4B5C-C10.pdf, though I am not completely sure, as I bought it some while ago.

I have a 5V power supply (USB), and based on the data sheet I would calculate the needed resistor values as 90 Ohm for green and blue and 150 Ohm for red. I'm using a 100 Ohm resistor for green and blue each and 100+47 Ohm for red, i.e. pin 2, the common ground, connected to ground and each of the other pins connected to 5V through the respective resistor(s).

I am doing my connections on a breadboard.

Now if I connect any of the pins separately, leaving the others disconnected, the LED lights up more or less blue. Except if, after having connected the red pin, I touch the blue pin with a wire which is touching my skin, then it actually lights up red. If I now touch the green pin with the wire it reverts to blue.
By playing with touching and connecting the pins in different orders I manage to get a nice white color, and I have managed yellowish hues and something remsembling violet or pink. I haven't managed to get green and I've even had what I think are mixed colors from just one pin connected.
The blue from the red pin is fainter (because of the larger resistor, would be my guess), but the red is quite bright.

What is happening? I have multiple LEDs of the same type and all the ones I tested show this or similar behaviour.

Best Answer

Sounds like you are touching the wrong pins or you have wiring issues. These are very common LEDs and work as expected.

Your resistor values are incorrect. There is no way the red should be the brightest, green should be the brightest with the least resistance and highest luminous intensity. You most certainly have wiring issues.

Yellow would be a combination of red and green.
Pink, magenta, and violet would be a combination of red and blue.

enter image description here



Resistor Values

You need to balance the red and blue by luminous intensity and forward voltage .

You then must reduce the green to the luminous intensity of the red and blue.

Notice the red has a Vf of 2.2V and blue 3.4V

enter image description here


Red has the least luminous intensity so run it at the max current of 20 mA.

At 20 mA the red resistor should be about 150 Ω where intensity ≈ 800 mcd

Blue has 900 mcd and should be reduced by about 11% from red.
At 18 mA the blue should have a resistor of about 90 Ω where intensity ≈ 800 mcd

Then green should be about 5 mA to drop the luminous intensity from 4000 mcd at 20 mA to 1000 mcd at 4-5 mA with a resistor of about 300 - 400 Ω intensity ≈ 800 mcd