Arduino_Scuola
Published © GPL3+

Audio Input

This lesson aims to show how to interface an electret microphone with the analog input.

IntermediateShowcase (no instructions)15 minutes20,869
Audio Input

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Breadboard 830 points with Wire Kit
×1
1M resistor
×1
10k resistor
×1
Capacitor 4.7 µF
×1
Capacitor 10 pF
×1
TLV2451C
×1
Electret microphone
×1
2.2k resistor
×1

Story

Read more

Schematics

Schematic 1

Code

Code snippet #1

Arduino
/*
Read the analog input of a microphone
*/

int micIN= A0;
int audioVal = 0;

void setup() {
  Serial.begin(9600);

}

void loop() {
 audioVal = analogRead(micIN);
 Serial.println(audioVal);
 delay(600);
}

Credits

Arduino_Scuola
32 projects • 155 followers
Contact

Comments

Please log in or sign up to comment.