Introduction: SIMPLE RGB LED ARDUINO PROJRCT

Picture of SIMPLE RGB LED ARDUINO PROJRCT

For begginers ......just like mr ;)

Step 1: THAT'S ALL

Picture of THAT'S ALL

WHAT YOU NEED:

KEYES RGB MODULE

ARDUINO

PC

------------------------------------------------------------------------------------------------------------------------------------------------------

SIMPLY CONNECT THE THE NEGATIVE PIN TO THE GND ,THE RED PIN TO PIN 13 ,THE GREEN PIN TO 12 PIN ,THE BLUE PIN TO THE 13 PIN ........AND THERE YOU ARE

------------------------------------------------------------------------------------------------------------------------------------------------------

HERE'S THE 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);}

------------------------------------------

Comments

MrLunk (author)2017-05-03

Nice short and simple ;)
Allthough pasting the code in proper formatting would be nice :P

MsSweetSatisfaction (author)2014-09-27

Interesting, there's definitely not enough arduino stuff on this site for beginners. Thanks for sharing!

I know!!!!!! so i decide to upoload ..thanks

About This Instructable

3,937views

17favorites

License:

More by creator45:The Easiest way to make your own  pcbThe easiest way to make  wardrobe lightsTHE ULTIMATE CONTROL BOX
Add instructable to: