//example sketch to open and close the Box Monster's mouth #include Servo boxMonster; int boxMonsterMouth = 3; int upperServoDeg = 180; int lowerServoDeg = 80; void setup(){ boxMonster.attach(boxMonsterMouth); boxMonster.write(lowerServoDeg); }//end of setup void loop(){ delay(100); boxMonster.write(lowerServoDeg); delay(270); boxMonster.write(lowerServoDeg+20); delay((20)/6*23+100); boxMonster.write(lowerServoDeg); delay((20)/6*23+100); boxMonster.write(lowerServoDeg+20); delay((20)/6*23+100); boxMonster.write(lowerServoDeg); delay((20)/6*23+100); boxMonster.write(upperServoDeg); delay(1000); boxMonster.write(upperServoDeg-45); delay((45)/6*23+100); boxMonster.write(upperServoDeg); delay((45)/6*23+100); boxMonster.write(upperServoDeg-45); delay((45)/6*23+100); boxMonster.write(upperServoDeg); delay((45)/6*23+100); delay(1000); boxMonster.write(lowerServoDeg); delay(1500); }//end of loop