Introduction of Sound Sensor KY038 On An Arduino
Introduction of Sound Sensor KY038 On An Arduino
Though this tutorial is based exclusively on the usage of Sound sensor such as the KY-038,
other tutorials may make usage of these sound sensors associated with other sensors that may
be the focus of those tutorials
A. KY038
Introduction
KY038
Here are the specifications:
Specifications:
Model: KY-038
Interface definition:
AO: analog output sensor
GND: ground
Two red LED indication: POWER and SENSOR. POWER: Power is off. SENSOR: When the
microphone senses sound reaches a certain value, this LED light.
Pin – to Arduino –
Pin A0 to Arduino A0 (for analog program)
Pin D0 to Arduino 13 (for digital program)
This sensor emits a signal if the microphone of the sensor detects a noise. The sensitivity of the
sensor can be adjusted by means of a controller.
NOTE ON USE
This sensor is ideally suited for threshold measurement. This means that the sensor emits a
digital high signal as soon as a threshold value set by the user is exceeded. However, this also
means that the analog measured values are not suitable for conversions, as the analog signal is
also influenced by the rotary potentiometer.
Digital output: Via the potentiometer, a limit value for the received sound can be set, at which
the digital output should switch.
Here it is to be noted: The signal is inverted. If a high value is measured, this results in a lower
voltage value at the analog output.
The third unit represents a comparator, which switches the digital output and the LED when the
signal falls below a certain value. This value (and thus the sensitivity of the module) can be
adjusted via the rotary potentiometer:
PIN ASSIGNMENT