Introduction: 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

Comments

author
doladola made it! (author)2017-08-13

thank you . done

IMG_20170813_151741.jpgIMG_20170813_151758.jpg
author
bryany20 (author)2017-06-18

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
author
iTECHKING (author)2016-11-03

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.

author

Use the 'Time' library

author
MertArduino (author)iTECHKING2016-11-05

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!

author
iTECHKING (author)MertArduino2016-11-08

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

author
parvizNekooei (author)2017-04-07

that's great

temp_-1038671577.jpg
author
Vitor Shaft made it! (author)2017-01-25

I made it with an Arduino Nano and it works perfectly. Thank you for the tutorial.

(The other sensors on the breadboard are not in use in the project, nevermind haha).

20170126_002421.jpg
author
MertArduino (author)Vitor Shaft2017-01-26

That's great!

author
DAEHWANL made it! (author)2017-01-09

I made it. thank you~~

---------------------

int LED = 3;

void setup(){

pinMode (LED, OUTPUT);

}

void loop() {

int statusSensor = analogRead(A0);

if (statusSensor > 200){

delay(100);

while(true){

digitalWrite(LED, HIGH);

int statusSensor = analogRead(A0);

if(statusSensor>200){

break;

}

}

delay(100);

}

else{

digitalWrite(LED, LOW);

}

}

---------------------

sound1.jpg
author
MertArduino (author)DAEHWANL2017-01-09

Congratulations. I wish you continued projects.

author
amandai11 (author)2016-11-27

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

author
ahmet_024102 (author)2016-10-28

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

author
MertArduino (author)ahmet_0241022016-10-28

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

About This Instructable

19,810views

80favorites

License:

Bio: For more projects and tutorial visit my YouTube channel Mert Arduino and Tech
More by MertArduino:Arduino - MPU6050 GY521 - 6 Axis Accelerometer + Gyro (3D Simulation With Processing)NodeMCU ESP8266 - WiFi Robot Car Controlled by Application (Wifi Bot / Android / IoT)Arduino - Programmable Robotic Arm (Record and Repeat of the Servo Positions)
Add instructable to: