SIMPLE RGB LED ARDUINO PROJRCT

4,563

17

3

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: 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);}

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

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    3 Discussions

    None
    MrLunk

    2 years ago

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