//example sketch to determine the range of motion for the box monster #include Servo boxMonster; //Global Variables int boxMonsterMouth = 3; int upperServoDegree = 180; int lowerServoDegree = 80; // This is the number to be changed to find the range of motion void setup(){ boxMonster.attach(boxMonsterMouth); delay(100); boxMonster.write(upperServoDegree); delay(500); } void loop(){ //close the mouth boxMonster.write(lowerServoDegree); //wait for the mouth to continue closing delay(1000); //open the mouth boxMonster.write(upperServoDegree); //wait for the mouth to continue opening delay(1000); }