Hardware components | ||||||
| × | 1 | ||||
| × | 1 | ||||
| × | 1 | ||||
Software apps and online services | ||||||
|
DIFFERENT PATTERN LIGHT DISPLAYING ARRAYS
Read moreI am thinking of something cool for Arduino beginners. One of my brother has recently started projects with Arduino. He was unable to select any project from the Internet. So he felt sad. Then as I am experienced, I was trying to make a easy and a good Arduino project for him. And ultimately I made this Project.
If you are a very early beginner, I am sure that you will definitely like it. Try it !!!
Different Patterns Light Displaying Arrays
C/C++This is a good project for the kids and Arduino Beginners
int ledPins[] = {
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; // an array of pin numbers to which LEDs are attached
int pinCount = 9;
void setup (){
pinMode (1, OUTPUT); // different led patterns
pinMode (2, OUTPUT);
pinMode (3, OUTPUT);
pinMode (4, OUTPUT);
pinMode (5, OUTPUT);
pinMode (6, OUTPUT);
pinMode (8, OUTPUT);
pinMode (7, OUTPUT);
pinMode (9, OUTPUT);
pinMode (10, OUTPUT);
pinMode (11, OUTPUT);
pinMode (12, OUTPUT);
}
void loop (){
digitalWrite (1, LOW);
delay (60);
digitalWrite (2, LOW);
delay (59);
digitalWrite (3, LOW);
delay (58);
digitalWrite (4, LOW);
delay (57);
digitalWrite (5, LOW);
delay (56);
digitalWrite (6, LOW);
delay (55);
digitalWrite (7, LOW);
delay (54);
digitalWrite (8, LOW);
delay (53);
digitalWrite (9, LOW);
delay (52);
digitalWrite (10, LOW);
delay (51);
digitalWrite (11, LOW);
delay (50);
digitalWrite (12, LOW);
delay (49);
digitalWrite (1, HIGH);
delay (48);
digitalWrite (2, HIGH);
delay (47);
digitalWrite (3, HIGH);
delay (46);
digitalWrite (4, HIGH);
delay (45);
digitalWrite (5, HIGH);
delay (44);
digitalWrite (6, HIGH);
delay (43);
digitalWrite (7, HIGH);
delay (42);
digitalWrite (8, HIGH);
delay (41);
digitalWrite (9, HIGH);
delay (40);
digitalWrite (10, HIGH);
delay (39);
digitalWrite (11, HIGH);
delay (38);
digitalWrite (12, HIGH);
delay (37);
digitalWrite (12, LOW);
delay (60);
digitalWrite (11, LOW);
delay (59);
digitalWrite (10, LOW);
delay (58);
digitalWrite (9, LOW);
delay (57);
digitalWrite (8, LOW);
delay (56);
digitalWrite (7, LOW);
delay (55);
digitalWrite (6, LOW);
delay (54);
digitalWrite (5, LOW);
delay (53);
digitalWrite (4, LOW);
delay (52);
digitalWrite (3, LOW);
delay (51);
digitalWrite (2, LOW);
delay (50);
digitalWrite (1, LOW);
delay (49);
digitalWrite (12, HIGH);
delay (48);
digitalWrite (11, HIGH);
delay (47);
digitalWrite (10, HIGH);
delay (46);
digitalWrite (9, HIGH);
delay (45);
digitalWrite (8, HIGH);
delay (44);
digitalWrite (7, HIGH);
delay (43);
digitalWrite (6, HIGH);
delay (42);
digitalWrite (5, HIGH);
delay (41);
digitalWrite (4, HIGH);
delay (40);
digitalWrite (3, HIGH);
delay (39);
digitalWrite (2, HIGH);
delay (38);
digitalWrite (1, HIGH);
delay (37);
digitalWrite (12, HIGH);
delay (60);
digitalWrite (11, HIGH);
delay (59);
digitalWrite (10, HIGH);
delay (58);
digitalWrite (9, HIGH);
delay (57);
digitalWrite (8, HIGH);
delay (56);
digitalWrite (7, HIGH);
delay (55);
digitalWrite (6, HIGH);
delay (54);
digitalWrite (5, HIGH);
delay (53);
digitalWrite (4, HIGH);
delay (52);
digitalWrite (3, HIGH);
delay (51);
digitalWrite (2, HIGH);
delay (50);
digitalWrite (1, HIGH);
delay (49);
digitalWrite (12, LOW);
delay (48);
digitalWrite (11, LOW);
delay (47);
digitalWrite (10, LOW);
delay (46);
digitalWrite (9, LOW);
delay (45);
digitalWrite (8, LOW);
delay (44);
digitalWrite (7, LOW);
delay (43);
digitalWrite (6, LOW);
delay (42);
digitalWrite (5, LOW);
delay (41);
digitalWrite (4, LOW);
delay (40);
digitalWrite (3, LOW);
delay (39);
digitalWrite (2, LOW);
delay (38);
digitalWrite (1, LOW);
delay (37);
digitalWrite (12, HIGH);
delay (60);
digitalWrite (10, HIGH);
delay (59);
digitalWrite (8, HIGH);
delay (58);
digitalWrite (6, HIGH);
delay (57);
digitalWrite (4, HIGH);
delay (56);
digitalWrite (2, HIGH);
delay (55);
digitalWrite (1, HIGH);
delay (54);
digitalWrite (3, HIGH);
delay (53);
digitalWrite (5, HIGH);
delay (52);
digitalWrite (7, HIGH);
delay (51);
digitalWrite (9, HIGH);
delay (50);
digitalWrite (11, HIGH);
delay (49);
digitalWrite (11, LOW);
delay (48);
digitalWrite (9, LOW);
delay (47);
digitalWrite (7, LOW);
delay (46);
digitalWrite (5, LOW);
delay (45);
digitalWrite (3, LOW);
delay (44);
digitalWrite (1, LOW);
delay (43);
digitalWrite (2, LOW);
delay (42);
digitalWrite (4, LOW);
delay (41);
digitalWrite (6, LOW);
delay (40);
digitalWrite (8, LOW);
delay (39);
digitalWrite (10, LOW);
delay (38);
digitalWrite (12, LOW);
delay (37);
digitalWrite (2, HIGH);
delay (60);
digitalWrite (4, HIGH);
delay (59);
digitalWrite (6, HIGH);
delay (58);
digitalWrite (8, HIGH);
delay (57);
digitalWrite (10, HIGH);
delay (56);
digitalWrite (12, HIGH);
delay (55);
digitalWrite (1, HIGH);
delay (54);
digitalWrite (3, HIGH);
delay (53);
digitalWrite (5, HIGH);
delay (52);
digitalWrite (7, HIGH);
delay (51);
digitalWrite (9, HIGH);
delay (50);
digitalWrite (11, HIGH);
delay (49);
digitalWrite (1, LOW);
delay (48);
digitalWrite (3, LOW);
delay (47);
digitalWrite (5, LOW);
delay (46);
digitalWrite (7, LOW);
delay (45);
digitalWrite (9, LOW);
delay (44);
digitalWrite (11, LOW);
delay (43);
digitalWrite (2, LOW);
delay (42);
digitalWrite (4, LOW);
delay (41);
digitalWrite (6, LOW);
delay (40);
digitalWrite (8, LOW);
delay (39);
digitalWrite (10, LOW);
delay (38);
digitalWrite (12, LOW);
delay (37);
digitalWrite (12, LOW);
delay (60);
digitalWrite (11, HIGH);
delay (59);
digitalWrite (10, LOW);
delay (58);
digitalWrite (9, HIGH);
delay (57);
digitalWrite (8, LOW);
delay (56);
digitalWrite (7, HIGH);
delay (55);
digitalWrite (6, LOW);
delay (54);
digitalWrite (5, HIGH);
delay (53);
digitalWrite (4, LOW);
delay (52);
digitalWrite (3, HIGH);
delay (51);
digitalWrite (2, LOW);
delay (50);
digitalWrite (1, HIGH);
delay (49);
digitalWrite (12, LOW);
delay (48);
digitalWrite (11, HIGH);
delay (47);
digitalWrite (10, LOW);
delay (46);
digitalWrite (9, HIGH);
delay (45);
digitalWrite (8, LOW);
delay (44);
digitalWrite (7, HIGH);
delay (43);
digitalWrite (6, LOW);
delay (42);
digitalWrite (5, HIGH);
delay (41);
digitalWrite (4, LOW);
delay (40);
digitalWrite (3, HIGH);
delay (39);
digitalWrite (2, LOW);
delay (38);
digitalWrite (1, HIGH);
delay (37);
digitalWrite (12, HIGH);
delay (60);
digitalWrite (11, LOW);
delay (59);
digitalWrite (10, HIGH);
delay (58);
digitalWrite (9, LOW);
delay (57);
digitalWrite (8, HIGH);
delay (56);
digitalWrite (7, LOW);
delay (55);
digitalWrite (6, HIGH);
delay (54);
digitalWrite (5, LOW);
delay (53);
digitalWrite (4, HIGH);
delay (52);
digitalWrite (3, LOW);
delay (51);
digitalWrite (2, HIGH);
delay (50);
digitalWrite (1, LOW);
delay (49);
digitalWrite (12, HIGH);
delay (48);
digitalWrite (11, LOW);
delay (47);
digitalWrite (10, HIGH);
delay (46);
digitalWrite (9, LOW);
delay (45);
digitalWrite (8, HIGH);
delay (44);
digitalWrite (7, LOW);
delay (43);
digitalWrite (6, HIGH);
delay (42);
digitalWrite (5, LOW);
delay (41);
digitalWrite (4, HIGH);
delay (40);
digitalWrite (3, LOW);
delay (39);
digitalWrite (2, HIGH);
delay (38);
digitalWrite (1, LOW);
delay (37);
digitalWrite (1, LOW);
delay (60);
digitalWrite (12, LOW);
delay (59);
digitalWrite (2, LOW);
delay (58);
digitalWrite (11, LOW);
delay (57);
digitalWrite (3, LOW);
delay (56);
digitalWrite (10, LOW);
delay (55);
digitalWrite (4, LOW);
delay (54);
digitalWrite (9, LOW);
delay (53);
digitalWrite (5, LOW);
delay (52);
digitalWrite (8, LOW);
delay (51);
digitalWrite (6, LOW);
delay (50);
digitalWrite (7, LOW);
delay (49);
digitalWrite (12, HIGH);
delay (48);
digitalWrite (1, HIGH);
delay (47);
digitalWrite (11, HIGH);
delay (46);
digitalWrite (2, HIGH);
delay (45);
digitalWrite (10, HIGH);
delay (44);
digitalWrite (3, HIGH);
delay (43);
digitalWrite (9, HIGH);
delay (42);
digitalWrite (4, HIGH);
delay (41);
digitalWrite (8, HIGH);
delay (40);
digitalWrite (5, HIGH);
delay (39);
digitalWrite (7, HIGH);
delay (38);
digitalWrite (6, HIGH);
digitalWrite (12, LOW);
delay (60);
digitalWrite (1, LOW);
delay (59);
digitalWrite (11, LOW);
delay (58);
digitalWrite (2, LOW);
delay (57);
digitalWrite (10, LOW);
delay (56);
digitalWrite (3, LOW);
delay (55);
digitalWrite (9, LOW);
delay (54);
digitalWrite (4, LOW);
delay (53);
digitalWrite (8, LOW);
delay (52);
digitalWrite (5, LOW);
delay (51);
digitalWrite (7, LOW);
delay (50);
digitalWrite (6, LOW);
delay (49);
digitalWrite (1, HIGH);
delay (48);
digitalWrite (12, HIGH);
delay (47);
digitalWrite (2, HIGH);
delay (46);
digitalWrite (11, HIGH);
delay (45);
digitalWrite (3, HIGH);
delay (44);
digitalWrite (10, HIGH);
delay (43);
digitalWrite (4, HIGH);
delay (42);
digitalWrite (9, HIGH);
delay (41);
digitalWrite (5, HIGH);
delay (40);
digitalWrite (8, HIGH);
delay (39);
digitalWrite (6, HIGH);
delay (38);
digitalWrite (7, HIGH);
}
Thanks to Rohan Sardar.
Comments