const byte piezoPin = 10;

void setup() { 
  // put your setup code here, to run once:
  pinMode(piezoPin, OUTPUT);
}

void loop() {
  tone(piezoPin, 1500, 200); //Frequency, Time
  delay(200);
  noTone(piezoPin);
  delay(1000);
}