Use Sound Sensor with Arduino and Control LED with claps
In this Tutorial We will learn How To Use Sound Sensor ? and Control LED By Claps Using Arduino And Sound Sensor.Especially we will use KY-038 Sound Sensor with Arduino. Also showing how you can control LED by clap with the help of Arduino and Sound Sensor. We have shown only to control LED by clapping, but using the same concept you can control any electronic device. Once you watched full tutorial and video you will understand everything. Finally by this tutorial we will break our childhood mystery of Light control with claps.
What is KY-038 Sensor?
KY-038 Small sound sensor acts like a microphone which detects sound signals. The sensor will detect sound signals an provide digital or analog output. The sound sensor can be used to make exciting projects like clap switch or any project we can make any action based sound detection.
KY-038 Sound Sensor Pinout
KY-038 Sound Sensor having 4 Pins :-
1.AO – Analog Output
2.G – Ground
3.+ – VCC
4.DO – Digital Output
How KY-038 Senosr Works?
The sensor has 3 main components on its board. First ,the sensor unit at the front of the module which measures the area physically and sends an analog signal to the second unit, the amplifier. The amplifier amplifies the signal, according to the resistant value of the potentiometer, and sends the signal to the analog output of the module. The third component is a comparator which switches the digital out and the LED if the signal falls under a specific value.
We can control the sensitivity by adjusting the potentiometer attached in KY-38 sensor.
Note:The signal will be inverted; that means that if you measure a high value, it is shown as a low voltage value at the analog output.
For better understanding Watch this Practical Demo Video:
If want to know about NodeMcu board see this Once: Introduction to NodeMcu.