 // this is the on function
 void on() {
   Serial.println("On");
+
+  //***** Tone Section
+  //trigger the ping
+  if (pingTracker == 0) {
+    digitalWrite(pingPin, LOW);
+    delay(200);
+    digitalWrite(pingPin, HIGH);
+    //tells the variable that ping has already happened
+    pingTracker = 1;
+  }
 
   //*****LED section
   // allows the LED to fade out

const int pixelQuant = 1;     // number of neopixels
//servo constant
const int servoPin = 9;     // the pin that the servo is attached to


// *******these variables will change:

  //initialize the stepper
  AFMS.begin();  // create with the default frequency 1.6KHz
  myMotor->setSpeed(100);  // 100 rpm - to get faster need to change code

  //initilizes the audio pin
  pinMode(upPin,OUTPUT);
  digitalWrite(upPin, HIGH);
  pinMode(pingPin,OUTPUT);
  digitalWrite(pingPin, HIGH);
  pinMode(downPin,OUTPUT);
  digitalWrite(downPin, HIGH);
}


