Tuesday, October 13, 2015

DIY fog chiller for under $5

Ghost Halloween Hologram

Here I have my DIY  ghost hologram. I enclosed the projector in an old Dewalt drill case to make it water proof.  I purchased a  80lm LED Projector from Bangggood.com . I purchased the ghost holograms from Atmos FX

Phantasms




Thursday, July 16, 2015

8 Channel Christmas Light Display / Arduino UNO

Code


void setup() {


  pinMode(4, OUTPUT);  //  Roof 1
  pinMode(5, OUTPUT);  //  Roof 2
  pinMode(6, OUTPUT);  //  Bushes 1
  pinMode(7, OUTPUT);  //  Bushes 2
  pinMode(8, OUTPUT);  //  Bushes 3
  pinMode(9, OUTPUT);  //  Yard 1
  pinMode(10, OUTPUT);  //  Yard 2
 pinMode(11, OUTPUT);  //  Rain Dear
}

void loop() {
  digitalWrite(4, HIGH);   // Roof 1 on
  delay(300);          
  digitalWrite(4,  LOW);  
  delay(50);            
  digitalWrite(5, HIGH);
  delay(300);            
  digitalWrite(5,  LOW);  
  delay(50);          
  digitalWrite(6, HIGH);
  delay(300);          
  digitalWrite(6,  LOW);
  delay(50);            
  digitalWrite(7, HIGH);
  delay(300);            
  digitalWrite(7,  LOW);  
  delay(50);
  digitalWrite(8, HIGH);
  delay(300);            
  digitalWrite(8,  LOW);  
  delay(50);
  digitalWrite(9, HIGH);
  delay(300);            
  digitalWrite(9,  LOW);  
  delay(50);
  digitalWrite(10, HIGH);
  delay(300);            
  digitalWrite(10,  LOW);  
  delay(50);
  digitalWrite(11, HIGH);
  delay(300);            
  digitalWrite(11,  LOW);  
  delay(50);
  digitalWrite(4, HIGH);   // Roof 1 on
  delay(300);          
  digitalWrite(4,  LOW);  
  delay(50);            
  digitalWrite(5, HIGH);
  delay(300);            
  digitalWrite(5,  LOW);  
  delay(50);          
  digitalWrite(6, HIGH);
  delay(300);          
  digitalWrite(6,  LOW);
  delay(50);            
  digitalWrite(7, HIGH);
  delay(300);            
  digitalWrite(7,  LOW);  
  delay(50);
  digitalWrite(8, HIGH);
  delay(300);            
  digitalWrite(8,  LOW);  
  delay(50);
  digitalWrite(9, HIGH);
  delay(300);            
  digitalWrite(9,  LOW);  
  delay(50);
  digitalWrite(10, HIGH);
  delay(300);            
  digitalWrite(10,  LOW);  
  delay(50);
  digitalWrite(11, HIGH);
  delay(300);            
  digitalWrite(11,  LOW);  
  delay(50);
  digitalWrite(4, HIGH);   // Roof 1 on
  delay(300);          
  digitalWrite(4,  LOW);  
  delay(50);            
  digitalWrite(5, HIGH);
  delay(300);            
  digitalWrite(5,  LOW);  
  delay(50);          
  digitalWrite(6, HIGH);
  delay(300);          
  digitalWrite(6,  LOW);
  delay(50);            
  digitalWrite(7, HIGH);
  delay(300);            
  digitalWrite(7,  LOW);  
  delay(50);
  digitalWrite(8, HIGH);
  delay(300);            
  digitalWrite(8,  LOW);  
  delay(50);
  digitalWrite(9, HIGH);
  delay(300);            
  digitalWrite(9,  LOW);  
  delay(50);
  digitalWrite(10, HIGH);
  delay(300);            
  digitalWrite(10,  LOW);  
  delay(50);
  digitalWrite(11, HIGH);
  delay(300);            
  digitalWrite(11,  LOW);  
  delay(50);
  digitalWrite(4, HIGH);   // Roof 1 on
  delay(300);          
  digitalWrite(4,  LOW);  
  delay(50);            
  digitalWrite(5, HIGH);
  delay(300);            
  digitalWrite(5,  LOW);  
  delay(50);          
  digitalWrite(6, HIGH);
  delay(300);          
  digitalWrite(6,  LOW);
  delay(50);            
  digitalWrite(7, HIGH);
  delay(300);            
  digitalWrite(7,  LOW);  
  delay(50);
  digitalWrite(8, HIGH);
  delay(300);            
  digitalWrite(8,  LOW);  
  delay(50);
  digitalWrite(9, HIGH);
  delay(300);            
  digitalWrite(9,  LOW);  
  delay(50);
  digitalWrite(10, HIGH);
  delay(300);            
  digitalWrite(10,  LOW);  
  delay(50);
  digitalWrite(11, HIGH);
  delay(300);            
  digitalWrite(11,  LOW);  
  delay(50);
  digitalWrite(4, HIGH);   // Roof 1 on
  delay(300);          
  digitalWrite(4,  LOW);  
  delay(50);            
  digitalWrite(5, HIGH);
  delay(300);            
  digitalWrite(5,  LOW);  
  delay(50);          
  digitalWrite(6, HIGH);
  delay(300);          
  digitalWrite(6,  LOW);
  delay(50);            
  digitalWrite(7, HIGH);
  delay(300);            
  digitalWrite(7,  LOW);  
  delay(50);
  digitalWrite(8, HIGH);
  delay(300);            
  digitalWrite(8,  LOW);  
  delay(50);
  digitalWrite(9, HIGH);
  delay(300);            
  digitalWrite(9,  LOW);  
  delay(50);
  digitalWrite(10, HIGH);
  delay(300);            
  digitalWrite(10,  LOW);  
  delay(50);
  digitalWrite(11, HIGH);
  delay(300);            
  digitalWrite(11,  LOW);  
  delay(50);


  digitalWrite(4, HIGH);  // Everyting Blinking
  delay(100);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);          
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);            
  digitalWrite(10,  LOW);  
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);  
  delay(100);

  digitalWrite(4, HIGH);  // Everyting Blinking
  delay(100);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);          
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);            
  digitalWrite(10,  LOW);  
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);  // Everyting Blinking
  delay(100);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);          
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);            
  digitalWrite(10,  LOW);  
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);  // Everyting Blinking
  delay(100);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);          
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);            
  digitalWrite(10,  LOW);  
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);  // Everyting Blinking
  delay(100);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);          
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);            
  digitalWrite(10,  LOW);  
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);  
  delay(100);

  digitalWrite(4, HIGH);
  delay(500);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(500);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);
  delay(500);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(500);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);
  delay(500);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(500);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);
  delay(500);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(500);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);
  delay(500);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(500);            
  digitalWrite(5,  LOW);  
  delay(100);

  digitalWrite(6, HIGH);
  delay(500);            
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(500);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(500);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(500);            
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(500);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(500);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(500);            
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(500);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(500);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(500);            
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(500);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(500);            
  digitalWrite(8,  LOW);  
  delay(100);

  digitalWrite(9, HIGH);
  delay(500);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(500);            
  digitalWrite(10,  LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(500);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(500);            
  digitalWrite(10,  LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(500);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(500);            
  digitalWrite(10,  LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(500);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(500);            
  digitalWrite(10,  LOW);
  delay(100);

  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);  
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);  
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);  
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);  
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);


  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
 
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);

  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);

  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);

  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);

  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);

  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);

  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);

  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);

  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);

  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);

  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);


  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);







  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
 
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
 
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
 
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
 
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
 
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);



  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);



  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);



  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);


  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
   digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
   digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
   digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
   digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
   digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);

  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
  digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(9,   LOW);
  delay(100);
  digitalWrite(10,  HIGH);
  delay(100);
  digitalWrite(10,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
  digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(9,   LOW);
  delay(100);
  digitalWrite(10,  HIGH);
  delay(100);
  digitalWrite(10,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
  digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(9,   LOW);
  delay(100);
  digitalWrite(10,  HIGH);
  delay(100);
  digitalWrite(10,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
  digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(9,   LOW);
  delay(100);
  digitalWrite(10,  HIGH);
  delay(100);
  digitalWrite(10,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
  digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(9,   LOW);
  delay(100);
  digitalWrite(10,  HIGH);
  delay(100);
  digitalWrite(10,   LOW);
  delay(100);

  digitalWrite(4,  HIGH);
  delay(50);
  digitalWrite(4,   LOW);
  delay(10);
  digitalWrite(5,  HIGH);
  delay(50);
  digitalWrite(5,   LOW);
  delay(10);
  digitalWrite(9,  HIGH);
  delay(50);
  digitalWrite(9,   LOW);
  delay(10);
  digitalWrite(10,  HIGH);
  delay(50);
  digitalWrite(10,   LOW);
  delay(10);
                                         


  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);



}

Thursday, May 14, 2015

DIY QI wireless charger

Here I built a Qi wireless charger for under $15.
 This idea came to me after I spent $60 on the Samsung charger and I wanted another. But did not want to spend another $60. So, I built my own. I also made one for my truck. I will post the video later.
Ebay Part Qi Charger



Wednesday, December 10, 2014

DIY Doggy Door using the Arduino Board


Here is my push button doggy door.  I have 1 Arduino UNO board, 1 relay board. AC to 24VDC power supply, 2 push button switches, motion sensor, IAI Electric Cylinder Actuator. The frame is made out of T80 and aluminum. It took some trial and error and some redesigning. But I finally got it. 








Below is the first proto type.   The threaded rod kept  seizing forcing me to re-think my idea.








 Code


void setup(){
  //start serial connection
  Serial.begin(9600);
 
  pinMode(7, INPUT_PULLUP); // Pushbutton
  pinMode(13, OUTPUT);   // doggydoor Open
  pinMode(12,OUTPUT); // Doggy Door shut
}
void loop(){
  //read the pushbutton value into a variable
  int sensorVal = digitalRead(7);
  //print out the value of the pushbutton
  Serial.println(sensorVal);
 
  // Keep in mind the pullup means the pushbutton's
  // logic is inverted. It goes HIGH when it's open,
  // and LOW when it's pressed. Turn on pin 13 when the
  // button's pressed, and off when it's not:
  if (sensorVal == HIGH) {
    digitalWrite(13, LOW);

  }
  else {
    digitalWrite(13, HIGH);
    delay(10000);
    digitalWrite(12,HIGH);
    delay(10000);
  }
}

Tuesday, November 11, 2014

Jingle Bells arduino Code, UNO





// My christmas Light Arduino Code
// by USMC Junglist - Semper-Fi
void setup() {


  pinMode(3, OUTPUT);  // Roof
  pinMode(5, OUTPUT);  // Bushes
  pinMode(6, OUTPUT);  // Raindeer
  pinMode(7, OUTPUT);  // Yard
}
// the loop function runs over and over again forever
void loop() {
 
  digitalWrite(3, HIGH);  
  delay(500);             
  digitalWrite(3,  LOW);   
  delay(300);             
  digitalWrite(5, HIGH);  
  delay(500);             
  digitalWrite(5,  LOW);   
  delay(300);            
  digitalWrite(6, HIGH); 
  delay(500);            
  digitalWrite(6,  LOW);  
  delay(300);             
  digitalWrite(7, HIGH);  
  delay(500);             
  digitalWrite(7,  LOW);   
  delay(300); 

  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);   //Roof 10 Blinks
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
 
  digitalWrite(5, HIGH);     // Bushes 10 blinks
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
 
 
  digitalWrite(6, HIGH);   //Rain Deer 10 Blinks
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
 
  digitalWrite(3, HIGH);    //Roof on 2 sec
  delay(500);             
  digitalWrite(3,  LOW);   
  delay(500);
 
  digitalWrite(5, HIGH);   // Bushes on 2 sec
  delay(500);             
  digitalWrite(5,  LOW);   
  delay(500);

  digitalWrite(6, HIGH);    // Rain deer on 2 sec
  delay(500);             
  digitalWrite(6,  LOW);   
  delay(500); 
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);   //Roof 10 Blinkd
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
 
  digitalWrite(5, HIGH);     // Bushes 10 blinks
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
 
 
  digitalWrite(6, HIGH);   //Rain Deer 10 Blinks
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
 
 
  digitalWrite (3, HIGH); //Roof on
  delay(2000);
 
  digitalWrite(6, HIGH);   //raindeer blink on 3 sec
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
 
  digitalWrite(5, HIGH);    // Bushes Blink
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
 
  digitalWrite (5,HIGH);  // Bushes on
  delay(2000);
 
  digitalWrite (6,HIGH); //Raindeer on
  delay(1000);
 
  digitalWrite(3, LOW); // Roof Off 
  delay(500);             
 
  digitalWrite(3, HIGH);   //Roof Blink
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
 
  digitalWrite(5, HIGH);   //Bushes Blink
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
 
  digitalWrite(3,HIGH); //Roof on
  delay(1000);
 
  digitalWrite(6, HIGH);   //Rainder Blink
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
 
  digitalWrite (6,LOW); //Raindeer off
  delay(50);
 
  digitalWrite(3, HIGH);  // Everyting Blinking 
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
 
 
  digitalWrite(3,HIGH); //Everything on fo 5 sec
  delay(3000);
  digitalWrite(5,HIGH);
  delay(3000);
  digitalWrite(6,HIGH);
  delay(3000);
 
  digitalWrite(3,LOW); //Everything off for 1 sec
  delay(50);
  digitalWrite(5,LOW);
  delay(50);
  digitalWrite(6,LOW);
  delay(50);
 
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everythink Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
 
 
  digitalWrite(3,HIGH);  // Roof on
  delay (500);
 
  digitalWrite(5, LOW);
  delay(50);
 
  digitalWrite(5, HIGH);  //Buches Blink
  delay(200);
  digitalWrite(5, LOW);
  delay(50);
  digitalWrite(5, HIGH);
  delay(200);
  digitalWrite(5, LOW);
  delay(50);
  digitalWrite(5, HIGH);
  delay(200);
  digitalWrite(5, LOW);
  delay(50);
  digitalWrite(5, HIGH);
  delay(200);
  digitalWrite(5, LOW);
  delay(50);
  digitalWrite(5, HIGH);
  delay(200);
  digitalWrite(5, LOW);
  delay(50);
 
  digitalWrite(6, HIGH);  //RainDeer Blink
  delay(200);
  digitalWrite(6, LOW);
  delay(50);
  digitalWrite(6, HIGH);  //RainDeer Blink
  delay(200);
  digitalWrite(6, LOW);
  delay(50);
  digitalWrite(6, HIGH);  //RainDeer Blink
  delay(200);
  digitalWrite(6, LOW);
  delay(50);
  digitalWrite(6, HIGH);  //RainDeer Blink
  delay(200);
  digitalWrite(6, LOW);
  delay(50);
  digitalWrite(6, HIGH);  //RainDeer Blink
  delay(200);
  digitalWrite(6, LOW);
  delay(50);
 
  digitalWrite (3,LOW);
  delay (50);
 
 
  digitalWrite(3,HIGH); //Everything on fo 5 sec
  delay(5000);
  digitalWrite(5,HIGH);
  delay(5000);
  digitalWrite(6,HIGH);
  delay(5000);
 
  digitalWrite(3,LOW); //Everything off for 1 sec
  delay(50);
  digitalWrite(5,LOW);
  delay(50);
  digitalWrite(6,LOW);
  delay(50);
 
 
}