I am trying to figure out how to mix colors using the RGB LED. sending equal values using analogWrite does not really work, and the scaling does not seem to be linear when I try to compensate that way.
Has anyone figured out how to mix colors using this RGB LED?
Typically, the red, green, and blue LEDs in a RGB LED are not all the same intensity and voltage level.
Part of the discrepancy is because the human eye does not perceive equal wattage red, green, and blue lights as being equally bright.
If you are using 1 resistor per LED, on the common leg, you will need to change to 3 resistors - one for each color. The resistors will not all be the same value. You'll need to experiment with different values to get the LED to show colors that you like.