Sound Recorder

Z2M Part: EMA-00009-A

Record and play audio with sound recorder module.

Circuit Diagram
Circuit diagram for Sound Recorder
Wire Connections & Pin Configuration

Wire Color Connections:

Yellow → Pin 2 to REC, Pin 3 to PLAY
Red → 5V to Sound recorder VCC
Black → GND to Sound recorder GND

Pin Configuration:

Arduino Digital Pin 2 → Sound recorder REC (record control)
Arduino Digital Pin 3 → Sound recorder PLAY (playback control)
Arduino 5V → Sound recorder VCC
Arduino GND → Sound recorder GND
Arduino Code
Edit
int rec = 2;   // Record control pin
int play = 3;  // Playback control pin

void setup() {
  // Set Record and Playback pins as output
  pinMode(rec, OUTPUT);
  pinMode(play, OUTPUT);

  // Ensure both Record and Playback are OFF initially
  digitalWrite(rec, LOW);
  digitalWrite(play, LOW);

  // Record for 5 seconds (Red LED ON while recording)
  digitalWrite(rec, HIGH);
  delay(5000);         // Recording duration
  digitalWrite(rec, LOW);
  delay(1000);         // Wait before playback
}

void loop() {
  // Play back the recording repeatedly (Red LED blinks during playback)
  digitalWrite(play, HIGH);
  delay(100);          // Short pulse to trigger playback
  digitalWrite(play, LOW);
  delay(5000);         // Wait 5 seconds between playbacks
}

Instruction Details

Wiring: Connect sound recorder VCC to 5V, GND to GND. Connect REC to Digital Pin 2, PLAY to Digital Pin 3. Connect speaker and microphone to module.
Library: Not required (built-in).
Upload Code: Tools → Board → Arduino Uno. Tools → Port → select your COM port. Click Upload button.
View Output: Records for 5 seconds on startup, then plays back repeatedly. Speak into microphone during recording.

How to Use

  1. Connect the required components as per the Pin Configuration above
  2. Open Arduino IDE and create a new sketch
  3. Copy and paste the code above
  4. Select your Arduino board and COM port from Tools menu
  5. Click the Upload button to upload the code to your Arduino
  6. Open Serial Monitor (if applicable) to see the output

Components Required

  • Arduino Uno
  • ISD1820 or similar Sound Recorder Module
  • Speaker (built-in or external)
  • Microphone (built-in or external)
  • Breadboard
  • Jumper Wires

Category: Sensors