Simple Arduino RGB Led

2.3K234

Intro: 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:

3 Comments

You should not connect this like that, because of not having a resistors. You could break a LED or your arduino.
Thanks for the hint i update the instructable soon!
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 ;)