

The KY-054 is a sound sensor module manufactured by Joy-it. It is designed to detect sound levels and convert them into an electrical signal, making it ideal for sound-activated projects. The module features a microphone and an onboard amplifier circuit to process sound signals. It is commonly used in applications such as voice-activated systems, sound-activated lights, and noise monitoring systems.








The KY-054 sound sensor module has the following technical specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Output Type | Analog and Digital |
| Sensitivity Adjustment | Potentiometer |
| Microphone Type | Electret Condenser Microphone |
| Dimensions | 32mm x 15mm x 8mm |
| Mounting Holes | 2 x M3 holes |
The KY-054 module has 4 pins, as described in the table below:
| Pin | Name | Description |
|---|---|---|
| 1 | AO | Analog Output: Outputs an analog signal proportional to the detected sound level. |
| 2 | DO | Digital Output: Outputs a HIGH or LOW signal based on the sound threshold set by the potentiometer. |
| 3 | GND | Ground: Connect to the ground of the power supply. |
| 4 | VCC | Power Supply: Connect to a 3.3V or 5V power source. |
VCC pin to a 3.3V or 5V power source and the GND pin to the ground.AO pin for analog sound level readings.DO pin for digital sound detection based on the threshold set by the onboard potentiometer.AO or DO) to the corresponding input pins on your microcontroller (e.g., Arduino).Below is an example of how to use the KY-054 with an Arduino UNO to read both analog and digital outputs:
VCC → 5V on ArduinoGND → GND on ArduinoAO → A0 on ArduinoDO → D2 on Arduino// KY-054 Sound Sensor Example with Arduino UNO
// Reads analog and digital outputs from the KY-054 module and prints them to the Serial Monitor.
const int analogPin = A0; // Pin connected to AO (Analog Output)
const int digitalPin = 2; // Pin connected to DO (Digital Output)
void setup() {
pinMode(digitalPin, INPUT); // Set digital pin as input
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
int analogValue = analogRead(analogPin); // Read analog value from AO
int digitalValue = digitalRead(digitalPin); // Read digital value from DO
// Print the values to the Serial Monitor
Serial.print("Analog Value: ");
Serial.print(analogValue);
Serial.print(" | Digital Value: ");
Serial.println(digitalValue);
delay(500); // Wait for 500ms before the next reading
}
No Output from the Module:
VCC and GND connections).Digital Output Always HIGH or LOW:
Analog Output Not Changing:
AO pin.Interference or False Triggers:
Q: Can the KY-054 detect specific frequencies?
A: No, the KY-054 is designed to detect general sound levels and does not differentiate between specific frequencies.
Q: How far can the KY-054 detect sound?
A: The detection range depends on the sound intensity and the sensitivity setting. It is most effective for sounds within a few meters.
Q: Can I use the KY-054 with a 3.3V microcontroller?
A: Yes, the KY-054 is compatible with both 3.3V and 5V systems.
Q: Is the KY-054 suitable for outdoor use?
A: The KY-054 is not weatherproof and should be used in indoor environments or protected from moisture and extreme temperatures.