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 :
Project circuit :
Project circuit diagram is shown below.
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.