Simple Arduino RGB Led

Introduction: Simple Arduino RGB Led

This is an simple RGB led for arduino you can plug it in and it takes pin:13(green) 12(red) 11(blue).
you can buy modules for 5$ that have ic2 or spi but they are a lot more complicated tot program
and for lees than 2$ you can make your town thats much simplyer tot program

Step 1: Things You Need

you will need a trough hole print, 4 headers, an soldering iron + tin, any common andode RGB led (i recommend a high power surface mount RGB led like this)

Step 2: Make It

1 - you take the though hole print and solder the led on it make sure it is in the right position
2 - start With one snap of tin
3 - solder the led on the tin
4 - solder all pins to the board
5 - solder all ground pins together
6 - solder on the headers
7 - now you have created your very own RGB led module for arduino or other things

Step 3: Try It

Plug it in your arduino or breadboard or solder it in a trough hole print,

Step 4: The Code

For the people who want to use it in arduino here a little demo code :

int red = 12;
int green = 13;
int blue = 11;

void setup() {
pinMode(red, OUTPUT);
pinMode(green, OUTPUT);
pinMode(blue, OUTPUT);
}

void loop() {
digitalWrite(red, HIGH);
delay(500);
digitalWrite(red, LOW);
delay(500);
digitalWrite(green, HIGH);
delay(500);
digitalWrite(green, LOW);
delay(500);
digitalWrite(blue, HIGH);
delay(500);
digitalWrite(blue, LOW);
delay(500);
}

Step 5:

i'am new on instructables and i'am fron Holland so if i make a mistake let me know about it

Step 6:

Share

Recommendations

  • Tiny Home Contest

    Tiny Home Contest
  • Water Contest

    Water Contest
  • Metalworking Contest

    Metalworking Contest

3 Discussions

You should not connect this like that, because of not having a resistors. You could break a LED or your arduino.

2 replies

And if you use pins 9, 10 and 11 (I know it's hard because of distance from GND) you would be able to make even more colours using analogWrite ;)