Tri-Colored LEDs

flyntm

  • Jr. Member
  • **
    • Posts: 7
    • View Profile
I'm trying to figure out how to hook up some Tri-Colored LEDs to a TinyDuino with a PROTO TERMINAL BLOCKS TINYSHIELD.  The LEDs I'm looking at have 4 wires and the following specs.
DC 2V-2.2V(R) 3V-3.2V (G/B) Volt 20mA, Polarity (2 V) : Cathode "-" (Longer Leg) | Anode "+" (Shorter Leg)

So If I read this right, The red requires a different V than the G/B.  I'd like to wire up 4 of these LEDs

I'm certainly no EE so any help you can give on how to hook this up would be appreciated.  And I probably need some hints as to how to write the code too.

Or if you have a better way to approach this, I'm not stuck on these LEDs :)

Thanks so much for your kind attention.


lennevia

  • Administrator
  • Hero Member
  • *****
    • Posts: 133
    • View Profile
Hello,

I cannot be quite sure since I don't know what exact LEDs you have, but it sounds like you have tricolor LEDs that may require some resistors to be connected in series with each of the "colored" leads. I found a tutorial that might be helpful: https://create.arduino.cc/projecthub/muhammad-aqib/arduino-rgb-led-tutorial-fc003e

I believe the best way to approach would be to use some RGB LED Wirelings and a Wireling Adapter TinyShield - this way you do not have to worry about connecting these tricolor LEDs and keeping track of the pins, just the labeled ports - you can also string them together, and there is an easy-to-use library, FastLED, that includes a lot of functionality that makes it easy to work with.

It depends on what you would like to accomplish!

I hope that helps!

Thanks


flyntm

  • Jr. Member
  • **
    • Posts: 7
    • View Profile
That was very helpful. Thank you.  The wirelings seem like a great idea but my project is for the outdoors.  I don't see a good way to weatherize the RGB LED Wireling.


flyntm

  • Jr. Member
  • **
    • Posts: 7
    • View Profile
The link you sent me was quite helpful and I'm hoping you can point me in the right direction a bit further.  The link you provided showed me how to power the LEDs from the Arduino, but what I really need to do is power the LEDs from a separate 12 V power source but control them from the Arduino. Can you point me at something to give me a hit as to how to go about this?


lennevia

  • Administrator
  • Hero Member
  • *****
    • Posts: 133
    • View Profile
I would say that you might need a voltage regulator to step down the voltage.

You can look for more resources on the Arduino forum: https://forum.arduino.cc/

Or I would advise you to contact the vendor of your tricolor LEDs and ask them.


 

SMF spam blocked by CleanTalk