RGB LED Interfacing with Arduino

In some cases you need to display a static text with different colors, for this purpose you can use RGB LED Strips. In this tutorial we will learn how to interface RGB LED strip with arduino and drive it using ULN2003.

rgb-led-strip

This is a basic tutorial for using Common Anode RGB LED Strip, PWM, and switch. By the end, you will have single switch to control colors of the LED strip. Connect the LED’s anode lead to +12V and connect the 3 RGB cathode leads to digital pins 9, 10, 11 through ULN2003 respectively.

RGB LED Strip Pin out
RGB LED Strip Pin out

RGB LED Strip Connections with Arduino

To drive complete RGB LED Strip we have used ULN2003 as a driver circuit, LED strip works at 12V. You can combine ULN2003 driver outputs to get more current.

RGB LED Arduino Interfacing Circuit
RGB LED Arduino Interfacing Circuit

Arduino Code for RGB LED Color Control

Results

Press switch and see that we have around ten different colors; You can change the color using SetColor(R,G,B). try different values of RGB.

Leave a Reply