How to use Big Sound Sensor Module with Arduino Board

Share on Social Media

This module is made of three functional elements, the sensor on the front of the module which performs the measurement, then the analog signal is sent to the amplifier.

This amplifies the signal according to the gain determined by the potentiometer and sends the signal to the analog output of the module.

The third part consists of a comparator that switches the digital output and the diode when the signal falls below a certain value.

This operation is ideal for temperature monitoring (KY-028), proximity detectors (KY-024, KY 025, KY-036), alarm monitoring (KY-037, KY-038) or flame detector (KY-026).

 

Connections

Sensor –> Arduino

D0 ( Digital output ) –> Digital 3

+ –> 5V

G ( ground ) –> GND

AO ( Analog output ) –> Analog 0

Code:-

int Analog_Pin = A0; 
int Digital_Pin = 3; 
  
void setup ()
{
  pinMode(Analog_Pin, INPUT);
  pinMode(Digital_Pin, INPUT);
       
  Serial.begin (9600); 
}
  
void loop ()
{
  float Analog;
  int Digital;
    
 
  Analog = analogRead (Analog_Pin);
  Digital = digitalRead (Digital_Pin);
    
 
  Serial.print("Analog voltage :"); 
  Serial.print(Analog, 4);  
  Serial.print("V, ");
  Serial.print("Limit :");
  
  if(Digital==1)
  {
      Serial.println(" reached ");
  }
  else
  {
      Serial.println(" Not yet reached ");
  }
  Serial.println("----------------------------------------------------------------");
  delay (200);
}

Share on Social Media

Leave a Reply

Your email address will not be published. Required fields are marked *