

Here are two screenshots of supplier websites ( Sparkfun and Adafruit). It’s called diffused because the epoxy casing is scratchy and not perfectly transparentĪ clear Common Cathode RGB LED from Sparkfun. Instead, consult the supplier website, the datasheet, or experiment with the LED yourself (remember, diodes only work in one direction so as long as you include your current limiting resistors, you should be fine!).Ī diffused Common Anode RGB LED from Adafruit. You cannot tell whether you have a Common Anode or Common Cathode RGB LED by visual inspection. How can I tell if I have a Common Anode or Cathode RGB LED? So, you drive each individual color leg with a higher voltage source. Here, all three embedded LEDs share the cathode leg.

In contrast, the Common Cathode works much more like a typical LED ( e.g., like the red LED from our previous lessons).For example, with a 5V voltage source connected to the common anode leg, setting the three other legs (red, green, blue) to 5V would, somewhat counterintuively, turn off the LED. To control the RGB LED’s color, you must hook up the anode to the higher voltage source and connect the red, green, and blue legs to lower voltage levels ( e.g., ground). With the Common Anode, the three embedded LEDs share the anode leg.Importantly but somewhat confusingly, there are two RGB LED designs-the Common Anode and the Common Cathode-which differ in the leg shared between the three embedded LEDs. While capable of displaying thousands of color combinations, RGB LEDs are actually quite simple they contain three separate LEDs in one package: red, green, and blue. RGB LED (Either Common Cathode or Common Anode) L4: Feature Selection and Hyperparameter Tuning.
