Beruflich Dokumente
Kultur Dokumente
* to record and playback sound using Arduino and ISD1820 Sound Recorder
/*
* Disclaimer: this code is "AS IS" and for educational purpose only.
*/
// when PLAY_E goes HIGH device will playbak STARTS and continues
// when PLAY_L is HIGH it will playback. As soon as it goes LOW playback STOPS
// set FT to high and any audio from microphone will pass through the SPI connector
void setup()
void loop() {
digitalWrite(PLAY_E, HIGH);
delay(50);
digitalWrite(PLAY_E, LOW);
Serial.println("Playbak Started");
delay(playTime);
Serial.println("Playbak Ended");
break;
}// if
digitalWrite(REC, HIGH);
Serial.println("Recording started");
delay(recordTime);
digitalWrite(REC, LOW);
Serial.println("Recording Stopped ");
digitalWrite(PLAY_L, HIGH);
Serial.println("Playbak L Started");
delay(playLTime);
digitalWrite(PLAY_L, LOW);
Serial.println("Playbak L Ended");
}// wihile
delay(500);