Hardware components | ||||||
| × | 1 | ||||
| × | 1 | ||||
| × | 1 | ||||
| × | 3 | ||||
| × | 3 | ||||
| × | 3 | ||||
| × | 3 | ||||
| × | 1 | ||||
| × | 1 | ||||
| × | 3 | ||||
| × | 1 | ||||
Software apps and online services | ||||||
| ||||||
Hand tools and fabrication machines | ||||||
| ||||||
| ||||||
| ||||||
|
Hey Friends....
Merry Christmas in advance.
I know it is too early to wish Merry Christmas.
But I make an Arduino project In which you can make A DIY Christmas Tree with the help of LEDs.
You can watch the video for detailed Project or Follow the steps to make it.
Things you need
1.LaminatedthickCopperWire(19cmlong30wires)
2.ArduinoNano
3.15differentcolorsLEDs
4.PushButton
5.100Kresistor
6.Jumperwires
7.CardboardPlatformtoputtree
8.HeatShrinkTubes
StepstomakethisProject:-
1. Take 2 pieces of laminated copper wire, scratch it from above and solder led both legs to separate copper wire.
2. Solder all the 15 LEDs on copper wires tip.
3. Put heat shrink tube to cover the soldered part of led
4. Mark + and - on copper wires.
5. Twist all the copper wires to make a Tree.
6. Solder copper wires at the end and put heat shrink at the end.
7. Stick tree which you made on the cardboard platform
8. Do decorations
9. Do connections from circuit diagram
10. Upload code
Your DIY LED Christmas Tree is done...
If you have any query regarding this project,
😊Contact me
😁Facebook page : Electronics is Fun
✔Instagram Page : eif.08
Telegram id : +919557024177
You can subscribe my YouTube channel for more amazing projects.
If you want to learn about electronic components, visit my website from this link
https://www.electronicsisfun08.in/
If you wan to see more projects, visit my another website
int t = 0;
void setup()
{
for(int x = 2 ; x<=12 ; x++){
pinMode(x,OUTPUT);}
pinMode (2 , OUTPUT);
pinMode (3 , OUTPUT);
pinMode (4 , OUTPUT);
pinMode (5 , OUTPUT);
pinMode (6 , OUTPUT);
pinMode (7 , OUTPUT);
pinMode (8 , OUTPUT);
pinMode (9 , OUTPUT);
pinMode (10 , OUTPUT);
pinMode (11, OUTPUT);
pinMode (12 , OUTPUT);
pinMode(13, INPUT);
}
void loop()
{
if (digitalRead(13)==HIGH){
t++;
delay(100);}
if (t==1){
pattern1();}
if (t==2){
pattern2();}
if (t==3){
pattern3();}
if (t==4){
pattern4();}
if (t==5){
pattern5();}
if (t==6){
pattern6();}
if (t==7){
pattern7();}
if (t==8){
pattern8();}
if (t==9){
pattern9();}
if (t==10){
pattern10();}
if (t==11){
pattern11();}
if (t==12){
pattern12();}
if (t==13){
pattern13();}
if (t==14){
pattern14();}
if (t==15){
pattern15();}
if (t==16){
pattern16();}
if (t==17){
pattern17();}}
void pattern1(){
for(int x = 2; x<=12 ; x++){
digitalWrite(x, HIGH);
delay(100);
digitalWrite(x, LOW);
delay(100);}}
void pattern2(){
for(int x = 2; x<=12 ; x++){
digitalWrite(x, HIGH);
delay(100);
digitalWrite(x, LOW);}
for(int x = 12; x>=2 ; x--){
digitalWrite(x, HIGH);
delay(100);
digitalWrite(x, LOW);}}
void pattern3(){
for(int x = 2; x<=13 ; x=x+2){
digitalWrite(x, HIGH);
delay(100);
digitalWrite(x, LOW);
delay(100);}
for(int x = 12; x>=2 ; x=x-2){
digitalWrite(x, HIGH);
delay(100);
digitalWrite(x, LOW);
delay(100);}}
void pattern4(){
digitalWrite(2, HIGH);
digitalWrite(12, HIGH);
delay(100);
digitalWrite(2, LOW);
digitalWrite(12, LOW);
delay(100);
digitalWrite(3, HIGH);
digitalWrite(11, HIGH);
delay(100);
digitalWrite(3, LOW);
digitalWrite(11, LOW);
delay(100);
digitalWrite(4, HIGH);
digitalWrite(10, HIGH);
delay(100);
digitalWrite(4, LOW);
digitalWrite(10, LOW);
delay(100);
digitalWrite(5, HIGH);
digitalWrite(9, HIGH);
delay(100);
digitalWrite(5, LOW);
digitalWrite(9, LOW);
delay(100);
digitalWrite(6, HIGH);
digitalWrite(8, HIGH);
delay(100);
digitalWrite(6, LOW);
digitalWrite(8, LOW);
delay(100);
digitalWrite(7, HIGH);
delay(100);
digitalWrite(7, LOW);
delay(100);
digitalWrite(6, HIGH);
digitalWrite(8, HIGH);
delay(100);
digitalWrite(6, LOW);
digitalWrite(8, LOW);
delay(100);
digitalWrite(5, HIGH);
digitalWrite(9, HIGH);
delay(100);
digitalWrite(5, LOW);
digitalWrite(9, LOW);
delay(100);
digitalWrite(4, HIGH);
digitalWrite(10, HIGH);
delay(100);
digitalWrite(4, LOW);
digitalWrite(10, LOW);
delay(100);
digitalWrite(3, HIGH);
digitalWrite(11, HIGH);
delay(100);
digitalWrite(3, LOW);
digitalWrite(11, LOW);
delay(100);
digitalWrite(2, HIGH);
digitalWrite(12, HIGH);
delay(100);
digitalWrite(2, LOW);
digitalWrite(12, LOW);
delay(100);}
void pattern5(){
for(int x = 2; x<=12 ; x++){
digitalWrite(x, HIGH);
delay(100);}
for(int x = 2; x<=12 ; x++){
digitalWrite(x, LOW);
delay(100);}}
void pattern6(){
for(int x = 2; x<=12 ; x++){
digitalWrite(x, HIGH);
delay(100);}
for(int x =12 ; x>=2 ; x--){
digitalWrite(x, LOW);
delay(100);}}
void pattern7(){
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
digitalWrite ( 3, HIGH);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
digitalWrite ( 4, HIGH);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
digitalWrite ( 5, HIGH);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
digitalWrite ( 6, HIGH);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
digitalWrite ( 7, HIGH);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
digitalWrite ( 8, HIGH);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
digitalWrite ( 9, HIGH);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
digitalWrite ( 10, HIGH);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
digitalWrite ( 11, HIGH);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 10, HIGH);
digitalWrite ( 11, HIGH);
digitalWrite ( 12, LOW);
delay (00);
digitalWrite ( 12, HIGH);
digitalWrite ( 10, HIGH);
digitalWrite ( 9, HIGH);
digitalWrite ( 11, LOW);
delay (100);
digitalWrite ( 11, HIGH);
digitalWrite ( 8, HIGH);
digitalWrite ( 9, HIGH);
digitalWrite ( 10, LOW);
delay (100);
digitalWrite ( 7, HIGH);
digitalWrite ( 10, HIGH);
digitalWrite ( 8, HIGH);
digitalWrite ( 9, LOW);
delay (100);
digitalWrite ( 6, HIGH);
digitalWrite ( 7, HIGH);
digitalWrite ( 9, HIGH);
digitalWrite ( 8, LOW);
delay (100);
digitalWrite ( 5, HIGH);
digitalWrite ( 6, HIGH);
digitalWrite ( 8, HIGH);
digitalWrite ( 7, LOW);
delay (100);
digitalWrite ( 5, HIGH);
digitalWrite ( 4, HIGH);
digitalWrite ( 7, HIGH);
digitalWrite ( 6, LOW);
delay (100);
digitalWrite ( 3, HIGH);
digitalWrite ( 4, HIGH);
digitalWrite ( 6, HIGH);
digitalWrite ( 5, LOW);
delay (100);
digitalWrite ( 5, HIGH);
digitalWrite ( 3, HIGH);
digitalWrite ( 2, HIGH);
digitalWrite ( 4, LOW);
delay (100);
digitalWrite ( 4, HIGH);
digitalWrite ( 2, HIGH);
digitalWrite ( 3, LOW);
delay (100);
digitalWrite ( 3, HIGH);
digitalWrite ( 2, LOW);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 11, LOW);
delay (100);
digitalWrite ( 10, LOW);
delay (100);
digitalWrite ( 9, LOW);
delay (100);
digitalWrite ( 8, LOW);
delay (100);
digitalWrite ( 7, LOW);
delay (100);
digitalWrite ( 6, LOW);
delay (100);
digitalWrite ( 5, LOW);
delay (100);
digitalWrite ( 4, LOW);
delay (100);
digitalWrite ( 3, LOW);
delay (100);
digitalWrite ( 2, LOW);
delay (100);}
void pattern8(){
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, HIGH);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
digitalWrite ( 4, HIGH);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
digitalWrite ( 5, HIGH);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
digitalWrite ( 6, HIGH);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
digitalWrite ( 7, HIGH);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
digitalWrite ( 8, HIGH);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
digitalWrite ( 9, HIGH);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
digitalWrite ( 10, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
digitalWrite ( 11, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 12, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 4, LOW);
delay (100);
digitalWrite ( 3, LOW);
delay (100);
digitalWrite ( 2, LOW);
delay (100);}
void pattern9(){
digitalWrite ( 2, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
digitalWrite ( 3, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 11, LOW);
digitalWrite ( 4, HIGH);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 10, LOW);
digitalWrite ( 5, HIGH);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 9, LOW);
digitalWrite ( 6, HIGH);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 8, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
delay (100);}
void pattern10(){
digitalWrite ( 2, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
digitalWrite ( 3, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 11, LOW);
digitalWrite ( 4, HIGH);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 10, LOW);
digitalWrite ( 5, HIGH);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 9, LOW);
digitalWrite ( 6, HIGH);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 8, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 6, HIGH);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 5, HIGH);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 4, HIGH);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 3, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 7, LOW);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 8, LOW);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 9, LOW);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 10, LOW);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 11, LOW);
delay(100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
delay(100);}
void pattern11(){
digitalWrite ( 2, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 3, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 4, HIGH);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 5, HIGH);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 8, HIGH);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 11, LOW);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 10, LOW);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 9, LOW);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 8, LOW);
delay (100);
digitalWrite ( 7, LOW);
delay (100);}
void pattern12(){
digitalWrite ( 2, HIGH);
digitalWrite ( 3, HIGH);
digitalWrite ( 4, HIGH);
digitalWrite ( 5, HIGH);
digitalWrite ( 6, HIGH);
digitalWrite ( 7, HIGH);
digitalWrite ( 8, HIGH);
digitalWrite ( 9, HIGH);
digitalWrite ( 10, HIGH);
digitalWrite ( 11, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 11, LOW);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 10, LOW);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 9, LOW);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 8, LOW);
delay (100);
digitalWrite ( 7, LOW);
delay (100);
digitalWrite ( 2, HIGH);
digitalWrite ( 3, HIGH);
digitalWrite ( 4, HIGH);
digitalWrite ( 5, HIGH);
digitalWrite ( 6, HIGH);
digitalWrite ( 7, HIGH);
digitalWrite ( 8, HIGH);
digitalWrite ( 9, HIGH);
digitalWrite ( 10, HIGH);
digitalWrite ( 11, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 7, LOW);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 8, LOW);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 9, LOW);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 10, LOW);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 11, LOW);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
delay (100);}
void pattern13(){
digitalWrite ( 2, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
digitalWrite ( 3, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 11, LOW);
digitalWrite ( 4, HIGH);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 10, LOW);
digitalWrite ( 5, HIGH);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 9, LOW);
digitalWrite ( 6, HIGH);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 8, LOW);
delay (100);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
digitalWrite ( 3, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 11, LOW);
digitalWrite ( 4, HIGH);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 10, LOW);
digitalWrite ( 5, HIGH);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 9, LOW);
digitalWrite ( 6, HIGH);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
digitalWrite ( 3, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 11, LOW);
digitalWrite ( 4, HIGH);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 10, LOW);
digitalWrite ( 5, HIGH);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
digitalWrite ( 3, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 11, LOW);
digitalWrite ( 4, HIGH);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 12, LOW);
digitalWrite ( 3, HIGH);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, LOW);
digitalWrite ( 4, LOW);
digitalWrite ( 5, LOW);
digitalWrite ( 6, LOW);
digitalWrite ( 7, LOW);
digitalWrite ( 8, LOW);
digitalWrite ( 9, LOW);
digitalWrite ( 10, LOW);
digitalWrite ( 11, LOW);
digitalWrite ( 12, LOW);
delay (100);}
void pattern14(){
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 2, HIGH);
delay (100);}
void pattern15(){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
digitalWrite(8, HIGH);
digitalWrite(9, HIGH);
digitalWrite(10, HIGH);
digitalWrite(12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);
digitalWrite ( 2, LOW);
digitalWrite ( 3, HIGH);
delay (100);
digitalWrite ( 3, LOW);
digitalWrite ( 4, HIGH);
delay (100);
digitalWrite ( 4, LOW);
digitalWrite ( 5, HIGH);
delay (100);
digitalWrite ( 5, LOW);
digitalWrite ( 6, HIGH);
delay (100);
digitalWrite ( 6, LOW);
digitalWrite ( 7, HIGH);
delay (100);
digitalWrite ( 7, LOW);
digitalWrite ( 8, HIGH);
delay (100);
digitalWrite ( 8, LOW);
digitalWrite ( 9, HIGH);
delay (100);
digitalWrite ( 9, LOW);
digitalWrite ( 10, HIGH);
delay (100);
digitalWrite ( 10, LOW);
digitalWrite ( 11, HIGH);
delay (100);
digitalWrite ( 11, LOW);
digitalWrite ( 12, HIGH);
delay (100);
digitalWrite ( 12, LOW);
delay (100);}
void pattern16(){
digitalWrite(2, HIGH);
digitalWrite(4, HIGH);
digitalWrite(6, HIGH);
digitalWrite(8, HIGH);
digitalWrite(10, HIGH);
digitalWrite(12, HIGH);
delay(100);
digitalWrite(2, LOW);
digitalWrite(4, LOW);
digitalWrite(6, LOW);
digitalWrite(8, LOW);
digitalWrite(10, LOW);
digitalWrite(12, LOW);
digitalWrite(3, HIGH);
digitalWrite(5, HIGH);
digitalWrite(7, HIGH);
digitalWrite(9, HIGH);
digitalWrite(11, HIGH);
delay(100);
digitalWrite(3, LOW);
digitalWrite(5, LOW);
digitalWrite(7, LOW);
digitalWrite(9, LOW);
digitalWrite(11, LOW);
delay(100);}
void pattern17 (){
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
digitalWrite(8, LOW);
digitalWrite(9, LOW);
digitalWrite(10, LOW);
digitalWrite(12, LOW);
t=0;}
Comments