Arduino - Sound Sensor (with LED)

59,698

96

16

Published

Introduction: Arduino - Sound Sensor (with LED)

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

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

  • Clocks Contest

    Clocks Contest
  • Oil Contest

    Oil Contest
  • Woodworking Contest

    Woodworking Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

16 Comments

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

1 reply

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 .

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

Great tutorial! Thanks for the help!

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....?

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

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

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

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

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!

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...

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

Takibin ve yorumların için ben teşekkür ederim.