Arduino Projects

Control Light with a Clap Using Arduino And Sound Sensor

How to use Sensor (HC-SR501) with Arduino

In this tutorial we will learn how to use Sensor (HC-SR501) with Arduino.
For this tutorial we will use Relay Module, Lamp, Sensor HC-SR501, Buzzer and Arduino UNO.

Hardware Required :

  • Arduino
  • KY-038 Sound Sensor
  • 5V 1 Way Relay
  • Lamp
  • Breadboard
  • Jumper Wires

Project circuit :

Project circuit diagram is shown below.

Control Light with a Clap Using Arduino And Sound Sensor

What is KY-038 Sound Sensor ?

KY-038 Small sound sensor acts sort of a microphone which detects sound signals. The sensor will detect sound signals an provide digital or analog output. The sound sensor are often wont to make exciting projects like clap switch or any project we will make any action based sound detection.

KY-038 Sound Sensor having 4 Pins :-

AO   – Analog Output
G     – Ground
+     – VCC
DO  – Digital Output

How KY-038 Sensor Works

The sensor has 3 main components on its board. First ,the sensor unit at the front of the module which measures the world physically and sends an analog signal to the second unit, the amplifier. The amplifier amplifies the signal, consistent with the resistant value of the potentiometer, and sends the signal to the analog output of the module. The third component may be a comparator which switches the digital out and therefore the LED if the signal falls under a selected value.
We can control the sensitivity by adjusting the potentiometer attached in KY-38 sensor.

Control Light with a Clap Using Arduino And Sound Sensor

Link to the Code :

https://github.com/MORYTECH/ARDUINO-CODE/blob/master/Control%20Light%20with%20a%20Clap%20Using%20Arduino%20And%20Sound%20Sensor.txt

Demonstration :

Tags

Related Articles

Leave a Reply

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

Back to top button
Close
Close