And I wired it like on this site (RGBLED \ Learning \ Wiring) using 100 and 180 ohm resistors. But it doesn't work a bit.
I also tried to do a simple test, connect the ground of the Led and with pin 8 set on HIGH, I tried every color, but only blue was working (I mean , green and red were blue too)
Hi, first of all, never connect it to any voltage without a series resistor. You could damage it. Anything around 100-300R should be ok with 5V.
Sounds like the connections are not what you expected. According to the data sheet you linked, the longest lead shoul be the cathode and connected to ground. Maybe the led you have is not the same. Try connecting that lead to 5V instead, and connect the other leads to ground using your series resistor.
PaulRB:
Hi, first of all, never connect it to any voltage without a series resistor. You could damage it. Anything around 100-300R should be ok with 5V.
Sounds like the connections are not what you expected. According to the data sheet you linked, the longest lead shoul be the cathode and connected to ground. Maybe the led you have is not the same. Try connecting that lead to 5V instead, and connect the other leads to ground using your series resistor.
Paul
I tried what you recommended. Of course I was using resistors. It is the same blue color for each lead.. the only thing that changes is the intensity. When I flicker the contact on the left lead, it turns red for 1/4 of a second.. a little, barely noticeable. Is the LED broken? or I don't know how to connect it..
PTH is generally Plated Thru Hole, vs SMD, Surface Mount Device.
PTH usually refers to a board type tho, with just Through Hole used to refer to the package type for a part with leads that are intended to go in a PTH for mounting.