Offline
Newbie
Karma: 0
Posts: 3
|
 |
« on: April 28, 2012, 08:22:09 am » |
Hi
I help with the programming for an RGB led. The problem is, unlike other LED's I have seen, it only has two prongs....... so i have no idea how to program each individual colour. I know it is an RGB because when its at maximun voltage, it flashes all these colours by itself, so Im a little confused.
|
|
|
|
|
Logged
|
|
|
|
|
overseas
Offline
Newbie
Karma: 0
Posts: 3
newb....go easy
|
 |
« Reply #1 on: April 28, 2012, 08:28:34 am » |
2 lead RGB LED's dont exist. you would have to have an led with 4 leads for it to be a RGB LED. one lead for each color and a common anode or cathode. Unfortunatly you have a single color LED.
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Online
Edison Member
Karma: 43
Posts: 2475
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #2 on: April 28, 2012, 08:53:04 am » |
Or possibly a two-color LED, I think they make for instance red and green LEDs in one package connected in reverse parallel.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #3 on: April 28, 2012, 08:59:11 am » |
Well my LED has two pins, and uses three colours....... which is why Im so confused
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19001
I don't think you connected the grounds, Dave.
|
 |
« Reply #4 on: April 28, 2012, 09:16:58 am » |
2 lead RGB LED's dont exist. But they do on ebay. Not controllable RGB LEDs, but LEDs with built-in blinker ICs.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Grand Blanc, MI, USA
Online
Edison Member
Karma: 43
Posts: 2475
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #5 on: April 28, 2012, 09:24:51 am » |
Well my LED has two pins, and uses three colours....... which is why Im so confused
Perhaps you have a datasheet or a link to the part that you could share. There are literally millions of different LEDs out there, so it's pointless speculating about which one this happens to be.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #6 on: April 28, 2012, 09:41:54 am » |
Well my LED has two pins, and uses three colours....... which is why Im so confused
Perhaps you have a datasheet or a link to the part that you could share. There are literally millions of different LEDs out there, so it's pointless speculating about which one this happens to be. No I don't sorry. U just needed an RGB for Uni, and they gave me that one....... so I dunno. I think I'll buy a proper one to save myself the time.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 269
Posts: 25390
Solder is electric glue
|
 |
« Reply #7 on: April 29, 2012, 05:48:08 am » |
U just needed an RGB for Uni, and they gave me that one So if they are expecting you to control it with an arduino all you can do is turn it on or off. I think either your Uni made a mistake, or they are idiots.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 1
|
 |
« Reply #8 on: March 12, 2013, 04:29:32 pm » |
I know this is an old thread but I just wanted to point out that the previous posters are incorrect in that there are multicolored LEDs with only 2 leads.
|
|
|
|
|
Logged
|
|
|
|
|
Colorado
Offline
Edison Member
Karma: 39
Posts: 1202
Reviving dead brain cells with Arduinos.
|
 |
« Reply #9 on: March 12, 2013, 04:33:44 pm » |
I know this is an old thread but I just wanted to point out that the previous posters are incorrect in that there are multicolored LEDs with only 2 leads.
Care to point one out? Specifically what the original poster wanted, an RGB LED.
|
|
|
|
|
Logged
|
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2304
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #10 on: March 13, 2013, 11:35:41 am » |
I would assume that the OP wanted to do something besides watch it flash?..? Unfortunately ALL the 2 wire RGB LED''s DO IS FLASH... Great attention getters though, nice for overcurrent alarms.
Bob
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Offline
God Member
Karma: 9
Posts: 836
|
 |
« Reply #11 on: March 15, 2013, 09:15:12 am » |
You'll also find a lot of "phototransistors" with only 2 leads, on ebay.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 269
Posts: 25390
Solder is electric glue
|
 |
« Reply #12 on: March 15, 2013, 09:40:43 am » |
You'll also find a lot of "phototransistors" with only 2 leads, on ebay.
What relevance is that? Most photo transistors only have two wires.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 9
Posts: 836
|
 |
« Reply #13 on: March 16, 2013, 02:32:30 am » |
How can you have a transistor with only 2 wires ? Transistors have 3.
I suspect that these alleged 2-wire transistors, are actually diodes.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 269
Posts: 25390
Solder is electric glue
|
 |
« Reply #14 on: March 16, 2013, 03:01:12 am » |
Because the base is not brought out but is just recieving a photo current. Photo diodes work and are connected in your circuit a diffrent way.
|
|
|
|
|
Logged
|
|
|
|
|
|