Whistle Sound Detection Sensor Module – with High/Low Level Output for DIY Projects

SKU: FA3019-2
Module Type

Whistle sound detection sensor

Sensor Type

Electret condenser microphone

Detection Frequency

Approximately 2kHz – 4kHz (whistle range)

Operating Voltage

3.3V – 5V DC

Output Type

Digital (selectable high/low level)

Sensitivity Adjustment

Onboard potentiometer

Indication

LED indicator

Pin Count

3 pins (VCC, GND, OUT)

The Whistle Sound Detection Sensor Module is a compact, easy-to-use audio detection board designed specifically to recognize whistle sounds and provide a clean digital output for microcontroller projects. Unlike general-purpose sound sensors that respond to any loud noise, this module is tuned to detect the high-frequency, tonal characteristics of a whistle, making it ideal for whistle-activated switches, sound-controlled robots, and interactive DIY projects.

At the heart of the module is a high-sensitivity electret microphone paired with a frequency-selective amplifier circuit. The circuit is designed to respond primarily to the high-frequency range typical of human whistling (approximately 2kHz–4kHz), while filtering out lower-frequency ambient noise such as speech, music, and background hum. This selective tuning significantly reduces false triggers compared to standard sound sensor modules.

The module provides a digital output with selectable high/low level output via an onboard jumper or solder pad. This allows you to configure the output logic to match your microcontroller’s requirements — either active-high (output goes HIGH when a whistle is detected) or active-low (output goes LOW when a whistle is detected). An onboard potentiometer allows you to adjust the detection sensitivity, making it easy to calibrate for different environments and whistle volumes.

An LED indicator lights up when a whistle is detected, providing immediate visual feedback during setup and operation. The module operates from a 3.3V to 5V DC supply, making it compatible with Arduino, ESP32, STM32, Raspberry Pi, and other microcontrollers. The compact form factor with mounting holes allows easy integration into custom enclosures, robot chassis, and portable devices.

The Whistle Sound Detection Sensor Module is widely used in whistle-activated switches, sound-controlled robots, clap and whistle detectors, interactive toys, security systems, smart home automation, and educational STEM projects. It is also popular in DIY electronics and maker projects where hands-free, sound-based control is desired.

Important Note: The module is tuned to detect whistle sounds specifically, but may also respond to other high-pitched sounds such as some musical instruments or alarms. For best results, calibrate the sensitivity potentiometer in your specific environment. The module is not waterproof and should be kept dry. Avoid placing the module near constant high-frequency noise sources, as this may cause continuous triggering.

Whether you are building a whistle-controlled robot, a sound-activated switch, or an interactive toy, the Whistle Sound Detection Sensor Module provides a reliable, affordable solution. It is suitable for individual makers, students, and businesses purchasing in bulk for product development or educational programs.

Features

  • Whistle-specific detection — Tuned to high-frequency whistle sounds (2kHz–4kHz)

  • Selectable output logic — High or low level output via jumper/solder pad

  • Adjustable sensitivity — Onboard potentiometer for calibration

  • LED indicator — Visual feedback when whistle is detected

  • High-sensitivity microphone — Detects whistles from a distance

  • Wide voltage range — 3.3V to 5V DC, compatible with Arduino, ESP32, STM32, Raspberry Pi

  • Compact form factor — With mounting holes for easy integration

  • Wide application range — Whistle-activated switches, sound-controlled robots, interactive toys

  • Simple interface — Single digital output for easy MCU integration

  • Cost-effective — Affordable solution for whistle detection in volume production

Technical Specifications 

# Parameter Specification
1 Module Type Whistle sound detection sensor
2 Sensor Type Electret condenser microphone
3 Detection Frequency Approximately 2kHz – 4kHz (whistle range)
4 Operating Voltage 3.3V – 5V DC
5 Output Type Digital (selectable high/low level)
6 Sensitivity Adjustment Onboard potentiometer
7 Indication LED indicator
8 Pin Count 3 pins (VCC, GND, OUT)

Usage

Getting Started

  1. Connect power — Supply 3.3V or 5V DC to the VCC pin and GND to ground.

  2. Select output logic — Use the onboard jumper or solder pad to configure the output as active-high or active-low, depending on your project requirements.

  3. Connect the output — Connect the OUT pin to a digital input pin on your microcontroller (e.g., D2 on Arduino).

  4. Adjust sensitivity — Use the onboard potentiometer to set the detection threshold. Turn clockwise to increase sensitivity (detect quieter whistles) or counter-clockwise to decrease.

  5. Upload a test sketch — Read the digital state of the OUT pin and verify that whistling triggers the output.

  6. Implement control logic — Use the output to activate relays, LEDs, motors, or other devices.

Pin Connections

Module Pin Function
VCC Power (3.3V–5V)
GND Ground
OUT Digital output (whistle detected)

Output Logic (Selectable)

Output Mode Whistle Detected No Whistle
Active-High HIGH (VCC) LOW (0V)
Active-Low LOW (0V) HIGH (VCC)

Example Arduino Code (Active-High)

cpp
#define WHISTLE_PIN 2

void setup() {
  Serial.begin(9600);
  pinMode(WHISTLE_PIN, INPUT);
}

void loop() {
  int whistleState = digitalRead(WHISTLE_PIN);

  if (whistleState == HIGH) {
    Serial.println("Whistle Detected!");
  }

  delay(100);
}

Typical Applications

  • Whistle-activated switches — Turn lights or devices on with a whistle

  • Sound-controlled robots — Start, stop, or steer robots with whistle commands

  • Clap and whistle detectors — Trigger actions with sound

  • Interactive toys — Sound-reactive play features

  • Security systems — Detect whistling as an alert signal

  • Smart home automation — Whistle-triggered scenes and routines

  • Educational STEM projects — Teaching sound sensing and frequency detection

Notes for Business Buyers

  • Whistle-specific tuning — Reduces false triggers from speech and ambient noise.

  • Selectable output logic — High or low level output for flexible integration.

  • Simple interface — Single digital output for easy MCU connection.

  • Suitable for bulk purchasing — Ideal for toy manufacturers, robotics kit makers, and educational institutions.

Q: What is the Whistle Sound Detection Sensor Module used for?

It is a sound detection module tuned specifically for whistle sounds, used in whistle-activated switches, sound-controlled robots, interactive toys, and educational projects.

Q: How is this different from a general sound sensor like the KY-038?

The Whistle Sound Detection Sensor is tuned to the high-frequency range of human whistling (2kHz–4kHz), while general sound sensors like the KY-038 respond to any loud sound. This makes the whistle sensor less prone to false triggers.

Q: What voltage does the module require?

It operates from 3.3V to 5V DC, making it compatible with Arduino, ESP32, STM32, and Raspberry Pi.

Q: How do I select the output logic?

Use the onboard jumper or solder pad to configure the output as active-high or active-low, depending on your project requirements.

Q: How do I adjust the sensitivity?

Use the onboard potentiometer. Turn clockwise to increase sensitivity (detect quieter whistles) or counter-clockwise to decrease.

Q: Can the module detect claps as well as whistles?

The module is tuned for whistles, but it may also respond to other high-pitched sounds such as claps if they contain sufficient high-frequency content. For best results, use it specifically for whistles.

Q: What is the output logic?

With active-high mode, the output goes HIGH when a whistle is detected. With active-low mode, the output goes LOW when a whistle is detected.

Q: How do I connect the module to an Arduino?

Connect VCC to 5V, GND to GND, and OUT to a digital pin (e.g., D2). Use digitalRead() to detect whistles.

Q: Is the module waterproof?

No. The module is not waterproof and should be kept dry.

Q: Can I purchase in bulk for a product development project?

Yes. This module is suitable for both individual users and business purchasing, including toy manufacturers, robotics kit makers, and educational institutions.