Site icon Circuit Ideas for You

Simple Sound Sensor Circuit with Arduino

This project show how to use sound sensor with Arduino.

Sound sensor detect clap or loud voice.

When sound come, Arduino turn ON LED and buzzer.

This project for Simple Sound Sensor Circuit with Arduino help beginner understand sensor working.

Arduino Coding:

int sound = 7;
int led = 13;
int buzzer = 8;
int value = 0;

void setup() {
pinMode(sound, INPUT);
pinMode(led, OUTPUT);
pinMode(buzzer, OUTPUT);
}

void loop() {
value = digitalRead(sound);
if(value == HIGH){
digitalWrite(led, HIGH);
digitalWrite(buzzer, HIGH);
delay(300);
} else {
digitalWrite(led, LOW);
digitalWrite(buzzer, LOW);
}
}

Code Explanation:

Circuit Working:

Simple Sound Sensor Circuit Diagram with Arduino

Parts List:

ItemQuantity
Resistors 220Ω 1/4 watt1
Arduino UNO1
Sound Sensor Module1
LEDs 5mm any1
Buzzer1

Sound sensor gives digital output.

When loud sound hit microphone module then output pin become HIGH.

Arduino read HIGH signal.

Arduino send voltage to LED and buzzer.

LED glow and buzzer makes sound.

When sound stop sensor output is LOW and Arduino turn OFF LED and buzzer.

Formula with Calculation:

Below is the formula for LED current:

LED current is approx 15 to 20 mA.

We used 220 ohm resistor:

Current = Voltage / Resistance

Voltage around 5V minus LED drop 2V = 3V

Current = 3 / 220 = 0.013A

This is safe for our LED.

How to Build:

To build a Simple Sound Sensor Circuit with Arduino we need to follow the below steps:

Conclusion:

This Simple Sound Sensor Circuit with Arduino is very easy and best for beginners.

We can learn how sound sensor work with Arduino.

It show how sensor signal control LED and buzzer.

We can improve project by adding relay, motor or other automation.

References:

I need a quality sound sensor

Exit mobile version