SOUND SENSOR

TINKS033

  1. The Sound Sensor can detect the sound strength of the environment.
  2. The main component of the module is a simple microphone and LM393 level converter chip.
  3. The sensor can provide both digital as well as analog output.
Features:-
  1. Easy to use sound sensor module
  2. Operating voltage 3.3V-5V
  3. Outputs digital switching output (high and low level 0 and 1)
  4. Operating current (Vcc=5V): 4-8mA
  5. Microphone sensitivity (1 KHz): 52-48dB
  6. Microphone Impedance: 2.2KΩ
  7. Microphone Frequency: 16-20 KHz
  8. Microphone S/N ratio: 54dB
  9. Output :- digital and analog
Applications:-
  1. Mostly used by a security consultant
  2. Electronics DIY
  3. Making funny toys for kids, etc.
  4. Detecting sound and judging audio intensity.

    

int ledPin=13;
int sensorPin=7;
boolean val =0;

void setup(){
pinMode(ledPin, OUTPUT);
pinMode(sensorPin, INPUT);
Serial.begin (9600);
}

void loop (){
val =digitalRead(sensorPin);
Serial.println (val);
// when the sensor detects a signal above the threshold value, LED flashes
if (val==HIGH) {
digitalWrite(ledPin, HIGH);
}
else {
digitalWrite(ledPin, LOW);
}
}