I played around with them a bit when I bought them, but never really ended up using them for anything. I broke them out again today to see if they might be useful for a Halloween project, but it does not seem possible to light up more than one element (red, green, or blue) simultaneously. From that, I’m assuming that the only way to mix the colors would be to drive the individual LED pins via PWM.
The dumb question is, is that the correct assumption and/or the right way to do color mixing in this kind of RGB LED.
And yes, I do have a good supply of WS2811/2812 RGB LED strips…just don’t want to cut them up where a couple of the PIranha LEDs might do the trick.
OK. Looks like maybe I was misunderstanding what I was seeing. I’ve got both the green and red elements wired up on a breadboard to ground through the appropriate resistors, and to power via separate momentary switches.
It looked like when I was pressing both buttons that only the red element was lighting up, but now that I look again, it appears that the green element is lighting up, but is completely overwhelmed by the intensity of the red LED element.
So I guess you’re correct that I don’t need PWM to get both elements lighting up…but it appears that I DO need PWM if I want to get finer control over the color mixing.
Thanks, gents! As always, when I post here, I learn something.
Yup…just played with that a bit, and with my wiring. Ended up moving the resistors and switches onto the positive leads, since this LED is common cathode, so trying to do the resistors on ground doesn’t work very well.
Will likely go with PWM just for the sake of easier color mixing…I’m thinking this may be a good opportunity to use one of my medusa mini boards. Or, possibly an mBuino.
Looking at the datasheet, the luminous intensity of the green element is more than twice that of the red element, so in theory it should have been the other way around, especially since I used a larger resistor with the red element, based on an LED calculator using the 5v source and the 1.8v forward voltage values.
They’re cheap LEDs, so perhaps some inconsistencies are normal.
I did not play much with my Medusa Mini, but I am reasonably confident that mbed is a smoother experience.
I have not yet even bothered using an off-line compiler, the online IDE and compiler works a treat. In fact I ordered a few extra mBuinos to send to my Dad. Of everything I have tinkered with I think this is the easiest entry point, no firmware to update no software to install… It just works, at least with the mBuino. I have a few STM Nucleo boards, but I have not tried them yet.
I would be interested to hear what your experience is.