The RGB LEDs are LEDs that are tricolor and can offer a wide range of colors.
The RGB LEDs (RGB for Red, Green, Blue) are available in two versions: common anode or common cathode.
The common cathode versions are simpler to use for beginners because more intuitive. In this configuration, a voltage of 5 volts turns on the LED and a voltage of 0 volts turn it off.
Generally, in a real application, it is preferable to use RGB LEDs with common anode rather than the RGB LEDs with common cathode.
However, RGB LEDs with common anode have 8 colors while RGB LEDs with common cathode have 16.7 MILLION colors.
ConnectionsWith common anode:
Arduino to LED
D11 --> First pin
5V --> Second pin
D10 --> Third pin
D9 --> Fourth pin
With common cathode:
Arduino to LED
D11 --> First pin
GND --> Second pin
D10 --> Third pin
D9 --> Fourth pin
Comments
Please log in or sign up to comment.