Control LED By Claps Using Arduino and Sound Sensor

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.

Components Required

1.Arduino Uno(Click to Buy best one)
2.KY-038 Sound Sensor(Click to Buy Best One)
3.1 x 1K Pull up Register
4.5 x Male to Female Jumper Wire
5.1 x Breadboard
6.1 x LED
7.1 X USB Cable

Circuit Connections

Sound_Sensor_Connection-E for Engineer

Source Code/Sketch

For better understanding Watch this Practical Demo Video:

If want to know about NodeMcu board see this Once: Introduction to NodeMcu.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: