Arduino - Sound Sensor (with LED)

68,616

100

21

For more project and tutorial visit my YouTube channel Mert Arduino and Raspberry Pi

Intro: Arduino - Sound Sensor (with LED)

This instructable is the written version of my "Arduino - Sound Sensor (with LED)" YouTube video that I've uploaded recently. I strongly recommend you to check it out.

My YouTube Channel

Step 1: Tutorial

Sound sensors can be used for a variety of things, one of them could be turning lights off and on by clapping. Today however we are going to use hook up the sound sensor to an array of LED lights which will beat with music, clapping or knocking.

Step 2: Hardware Required

  • Arduino
  • A Sound Sensor
  • LED
  • 220 ohm Resistors
  • Mini Breadboard
  • Wires

Step 3: Circuit & Connections

Arduino Sound Detection Sensor

This module allows you to detect when sound has exceeded a set point you select.Sound is detected via a microphone and fed into an LM393 op amp. The sound level set point is adjusted via an on board potentiometer. When the sound level exceeds the set point, an LED on the module is illuminated and the output is sent low.

Step 4: Code

Step 5: If I Was Helpful

First of all, I would like to thank you for reading this guide ! I hope it helps you.

If you want to support me, you can subscribe my channel and watch my videos.

Visit My YouTube Channel

4 People Made This Project!

Recommendations

  • Plastics Contest

    Plastics Contest
  • Optics Contest

    Optics Contest
  • Electronics Tips & Tricks Challenge

    Electronics Tips & Tricks Challenge

21 Discussions

0
None
s1054912

Question 2 months ago

I have a 2 pin Arduino Sound sensor (Sound + Piezo Module), can this still work?

0
None
jayaweera

Question 3 months ago

this circuit detect every noise., not only baby crying. how can i detect only baby sound?

2 more answers
0
None
icengjayaweera

Answer 3 months ago

Baby crying are high frequency, SO add a high pass audio filter and you will not hear the child moving about the crib.

0
None
PrakharT1

1 year ago

I have a 4 pin sound sensor(A0, GND, +, D0) and therefore unable to use this can someone pls help.

2 replies
0
None
MajgaonkarPrakharT1

Reply 4 months ago

A0 is analog where as D0 is digital .

If you are connecting sound sensor to analog pin of controller/arduino the use A0 otherwise use D0 .

0
None
swabe_official

9 months ago

Please help, I want the reverse effect of this project. Incase of brighting of light when it detects sound, it dim when it detects sound

0
None
MoazzamS1

9 months ago

Great tutorial! Thanks for the help!

0
None
malikh27

10 months ago

i want to make a system which take audio from sensor and compare it with already saved audio in arudino. If it matches to the saved audio then perform some operation.....

is it possible to save audio in arduino and compare it with audio taken from sensor....?

0
None
RichardG231

1 year ago

I have tried three different sound sensors on two different Uno boards, written the sketches corrected, wired the simple wiring correctly, and still can't get this or any other similar sketches to work. What am I possibly doing incorrectly? HELP!!!

1 reply
0
None
cap_medRichardG231

Reply 11 months ago

there is a mistake in code , change low by high and high by low ,in digitalwrite for led ..

0
None
bryany20

1 year ago

Can someone please help me, it doesn't work

int soundSensor = 2;
int LED = 3;
void setup()
{
Serial.begin (9600);
pinMode (soundSensor, INPUT);
pinMode (LED, OUTPUT);
}

void loop()
{
int statusSensor = digitalRead (soundSensor);

if (statusSensor == 1)
{
digitalWrite(LED, HIGH);
}

else
{
digitalWrite(LED, LOW);
}
Serial.println(statusSensor);
}

19358928_1434149613339812_505907547_o.jpg19359055_1434149620006478_1580633230_o.jpg19349308_1434149610006479_1559572874_o.jpg19349213_1434149623339811_1364079183_o.jpg19243860_1434149633339810_1363959816_o.jpg
0
None
iTECHKING

1 year ago

Hey,

By Using Arduino --

I want at 10 PM all my home lights should OFF and at 6 AM same should be ON.

I have set up the Arduino Uno board with DS3231 RTC but only unable to tell Arduino to read that particular time (from 10PM to 6AM) from RTC and to execute the task.

Kindly suggest all the possible method.

Thanks.

3 replies
0
None
MertArduinoiTECHKING

Reply 1 year ago

It could be a really good project.

But the project algorithm can be very difficult.

You can use the DS3231 RTC. I would very much like to help but it takes a long time and I do not have much time.

I think, first of all, the power output of all the lights should be from one place. So it must be intertwined with an Arduino scheme. Otherwise, the project needs to be extended and remotely controlled. Different modules are used in this. If all the light inputs are in one place, the DC3231 RTC and Arduino are programmed. Then you can interact with the lights using the relay card. A project that should be considered long and carefully!

0
None
iTECHKINGMertArduino

Reply 1 year ago

Thanks for your reply.

I've no issue with the Hardware setup, either Arduino side or 230V power side, all are ready.

The main problem I am facing is-- DS3231 is printing time in Arduino serial monitor and I want Arduino to Read that particular time from Serial monitor and execute the task.

Suppose serial monitor is printing hour, minute and second as :

21:59:57
21:59:58
21:59:59
22:00:00 I want Arduino to read this moment as it shows 22:00:00
22:00:01 either through Serial Monitor or Directly
22:00:02 from DS3231 and execute the desired task.

Your assistance would be appreciated...

0
None
amandai11

1 year ago

I want to make a baby's cry alarm that connect via bluetooth to my smartphone when the a sound exceed 10 seconds. How can I set the threshold and the bluetooth connection? Please help. Thank you :D

0
None
ahmet_024102

1 year ago

çok teşekkür ederimm mert kardeş bravo tebrikler