mohammadsohail0008
Published © GPL3+

DIY Homemade Sound Sensor

Make sound sensor at your home

IntermediateFull instructions provided5,444
DIY Homemade Sound Sensor

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
LM393 IC
×1
Single Turn Potentiometer- 100k ohms
Single Turn Potentiometer- 100k ohms
×1
Resistor 100k ohm
Resistor 100k ohm
×2
Resistor 10k ohm
Resistor 10k ohm
×2
150 ohm resistor
×1
Resistor 330 ohm
Resistor 330 ohm
×1
condesner mic
×1
LED (generic)
LED (generic)
×1
3 mm LED: Green
3 mm LED: Green
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Hot glue gun (generic)
Hot glue gun (generic)
PCB, For DMB-4775
PCB, For DMB-4775

Story

Read more

Schematics

Circuit Diagram of sound sensor

Code

Test code of Sound sensor

Arduino
//https://www.youtube.com/channel/UCaXI2PcsTlH5g0et67kdD6g //
// Sound sensor code //
// MOHD SOHAIL //

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 analog data from sound sensor
if (soundsens>=threshold) {
digitalWrite(ledpin,HIGH); //turns led on
delay(3000);
}
else{
digitalWrite(ledpin,LOW);
}
}

Credits

mohammadsohail0008

mohammadsohail0008

42 projects • 31 followers

Comments