50% OFF! Hot items selling fast—Grab them before they're gone!
The HS-S05A Sound Microphone Sensor is a compact audio detection module for clap switches, sound-triggered lights, robotics, classroom experiments, and simple vibration/sound event detection. It uses an electret microphone to sense sound waves and provides signal outputs that can be connected to microcontroller inputs.
The current listing describes both a digital signal pin and an analog signal pin, with 3.3V / 5V supply support and 2.54mm header wiring. This makes the module easy to use with the ELAB Nano V3, the Raspberry Pi Pico W, and breadboard prototypes using the MB 102 Breadboard Kit.
This module is intended for relative sound detection rather than calibrated sound-pressure measurement. Use the digital output for threshold events and the analog output for envelope-style level tracking. For accurate decibel measurements, use a calibrated sound-level meter instead.
| Parameter | Value |
|---|---|
| SKU | HS-S05A |
| Product Type | Sound microphone sensor module |
| Sensing Element | Electret condenser microphone |
| Outputs | Digital signal and analog signal pins |
| Supply Voltage | 3.3V / 5V, per current listing |
| Connector | 2.54mm pitch pin header |
| Pins | G, V, S, A |
| Mounting | Double-screw mounting |
| Best Use | Sound events and relative audio level detection |
| Not Intended For | Calibrated dB measurement |
Read the analog output and print relative sound level.
const int micPin = A0;void setup() { Serial.begin(115200);}void loop() { Serial.println(analogRead(micPin)); delay(20);}
Use the digital output to toggle an LED on a loud event.
const int soundPin = 2;const int ledPin = 13;bool state = false;void setup() { pinMode(soundPin, INPUT); pinMode(ledPin, OUTPUT);}void loop() { if (digitalRead(soundPin) == HIGH) { state = !state; digitalWrite(ledPin, state); delay(300); }}
Track the highest analog value over a short window.
const int micPin = A0;void setup() { Serial.begin(115200);}void loop() { int peak = 0; for (int i = 0; i < 100; i++) { peak = max(peak, analogRead(micPin)); delay(1); } Serial.println(peak);}
Read a digital sound trigger from a Pico-style board.
from machine import Pinimport timesound = Pin(15, Pin.IN)while True: if sound.value(): print(“sound detected”) time.sleep(0.3) time.sleep(0.01)
Q: Can this measure exact decibels?
A: No, it is for relative sound and event detection rather than calibrated dB measurement.
Q: What is the S pin?
A: S is the digital signal pin.
Q: What is the A pin?
A: A is the analog signal pin.
Q: Can it run from 3.3V?
A: The current listing states 3.3V / 5V support.
Q: Can I make a clap switch?
A: Yes, use the digital output and debounce in software.
Q: Why does it trigger randomly?
A: Background noise, vibration, or threshold setting may be too sensitive.
Q: Can it record audio?
A: No, it is a simple sensor module, not an audio recorder.
Q: Where should I mount it?
A: Mount it where the microphone opening faces the target sound and is isolated from vibration.