This tutorial explains how to use Sound Detection Sensor with Arduino
1. Introduction:
The Sound Detector is a small board that combines a microphone and some processing circuitry. It detects the sounds of door knocks, claps, voice or any other sounds loud enough to picked up by the microphone.
2. Hardware required
S.No. | Item | Quantity |
1. | Arduino | 1 |
2. | Breadboard | 1 |
3. | Sound Sensor | 1 |
4. | LED | 1 |
5. | Resistor 1K | 1 |
6. | Male to Female Jumper Wires | 3 |
7 | Male to Male Jumper Wires | 2 |
3. Circuit Diagram
Make the following connections with Arduino-
4. Programming
You may download this Arduino Sketch from here.
//Robo India tutorial on Laser Sensor //https://www.roboindia.com/tutorials int soundSensor = 2; int LED = 4; void setup() { pinMode (soundSensor, INPUT); pinMode (LED, OUTPUT); } void loop() { int state=digitalRead(soundSensor); if(state==1) //when detect some sound { digitalWrite(LED, HIGH); } else { digitalWrite(LED, LOW); } }
5. Output
When sound of clapping or any other is detected by sensor, the led attached to module will illuminate.
If you have any query please write us at support@roboindia.com
Thanks and Regards
Content Development Team
Robo India
https://roboindia.com