BV4615 RC-5 IR Decoder icon BV4615 RC-5 IR Decoder Adds IR sensor support and button mapping for USB joysticks in ARC, enabling remote control functions; third-party hardware supported. Try it →
Asked — Edited

Is it possible to connect a RGB LED with a common cathode (or anode for that matter) to three different digital ports and be able to control the intensity of each color via the servo control window?

I imagine it would be something along the lines of one negative connection, and each colors positive connection going to 3 different digital ports.

Looking to use something along these lines : RGB LED

Is this possible or am I thinking about this incorrectly?


ARC Pro

Upgrade to ARC Pro

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

#1  

I think your right on that 3 port option.

I imagine it would be something along the lines of one negative connection, and each colors positive connection going to 3 different digital ports.

Then in the ARC just use servo command windows to control the current to each port. The only real way to see is if you test it out. Dont worry about blowing the LED, you can buy RGB LED's from radio shack for less than a few bucks anyway.

#2  

I know this is an old thread, just wondering if this was the correct approach as I am ordering some RGB 10mm or 5mm for omnibot build (eyes). I was thinking this would be the way as well but just wanted to see how it worked out. Also, is ez easier to use with cathode, anode or either?

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#3  

Use three pwm controls (not servo controls). One pwm for each color of the rgb.