HIGH SENSITIVITY SOUND SENSOR

HIGH SENSITIVITY SOUND SENSOR

HOW TO CONNECT IT TO ARDUINO ?

CONNECTION WITH ARDUINO

What we have to basically do is to connect the HIGH SENSITIVITY SOUND SENSOR with the ARDUINO and then connect the ARDUINO to your device.

STEPS TO CONNECT THE ARDUINO WITH SENSOR-:

1- Connect the GND wire with the GND terminal of ARDUINO.

2- Connect the +ve terminal of sensor to the 5 volt terminal of ARDUINO.

3- Connect the DO terminal of the sensor to the A2 terminal of ARDUINO.

4- Connect an LED to the 13th and GND terminal of ARDUINO.

5- Connect the USB port of ARDUINO to your device and start coding on it.

HOW TO CODE ?

First download the ARDUINO SOFTWARE to code in sensor through ARDUINO.

Then write the following code-:

const int ledpin=13; //ledpin and soundpin are not changed throughout the process
const int soundpin=A2;
const int threshold=200; //sets threshold value for sound sensor
void setup()
{
Serial.begin(9600);
pinMode(ledpin,OUTPUT);
pinMode(soundpin,INPUT);
}
void loop()
{
int soundsens=analogRead(soundpin); //reads alnalog data from sound sensor
if(soundsens>=threshold)
{
digitalWrite(ledpin,HIGH); //turn led on
delay(1000);
}
else
{
digitalWrite(ledpin,LOW);
}


WATCH OUR VIDEO ON YOUTUBE TO TAKE A QUICK TRIAL WITH THE WHOLE SETUP!!!

IF YOU THINK THAT THE VIDEO HELPED YOU TO UNDERSTAND THE SETUP THEN THE RED BUTTON BELOW AND THE LIKE BUTTON IS ALL YOUR!!! 🙂



AND YES, YOU CAN BUY THIS SENSOR ONLINE AT AMAZON 🙂

#APNI DUKAAN

Here is the link-:

https://www.amazon.in/gp/slredirect/picassoRedirect.html/ref=pa_sp_atf_aps_sr_pg1_1?ie=UTF8&adId=A04497501NK9CC48HGQFD&url=%2FOLatus-OL-SENSOR-SOUND-01-Sensitivity-Microphone-Raspberry%2Fdp%2FB074D153XC%2Fref%3Dsr_1_1_sspa%3Fkeywords%3Dhigh%2Bsensitivity%2Bsound%2Bsensor%26qid%3D1555134596%26s%3Dgateway%26sr%3D8-1-spons%26psc%3D1&qualifier=1555134596&id=4359973521677563&widgetName=sp_atf

Advertisements

One thought on “HIGH SENSITIVITY SOUND SENSOR

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s