{"product_id":"ky-038-sound-sensor-module-microphone-module-for-arduino","title":"KY-038 Sound Sensor Module – Microphone Module for Arduino","description":"\u003ch1\u003eKY-038 Sound Sensor Module – Analog \u0026amp; Digital Microphone Detector\u003c\/h1\u003e\n\n\u003cp class=\"product-lede\"\u003eThe KY-038 is a sound detection sensor module with an electret condenser microphone and LM393 comparator, providing both analog and digital outputs, ideal for Arduino, ESP32, and Raspberry Pi sound-activated projects.\u003c\/p\u003e\n\n\u003ch2\u003eKey Specifications\u003c\/h2\u003e\n\u003ctable class=\"specs-table\"\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eSensor Type\u003c\/td\u003e\n\u003ctd\u003eElectret condenser microphone with amplifier\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eComparator IC\u003c\/td\u003e\n\u003ctd\u003eLM393 dual differential comparator (for digital output)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V – 5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOutput\u003c\/td\u003e\n\u003ctd\u003eAnalog (AO) voltage proportional to sound intensity; Digital (DO) TTL output (HIGH\/LOW based on threshold)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eAdjustable Sensitivity\u003c\/td\u003e\n\u003ctd\u003eOn‑board potentiometer to set digital trigger threshold\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eSignal Indicator\u003c\/td\u003e\n\u003ctd\u003eBuilt‑in LED lights when sound exceeds threshold (for digital)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eDimensions\u003c\/td\u003e\n\u003ctd\u003eApprox. 40 mm × 20 mm × 15 mm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eWeight\u003c\/td\u003e\n\u003ctd\u003eApprox. 5 g\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/clap-switch-kit-with-arduino-uno-learn-pattern-detection-and-debounce\"\u003e\n\u003cstrong\u003eClap Switch:\u003c\/strong\u003e Build a simple clap‑activated LED switch using Arduino Uno, sensor digital output, and a relay module.\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/kit-microphone-sound-level-meter\"\u003e\n\u003cstrong\u003eNoise Level Monitor:\u003c\/strong\u003e Create an IoT sound level meter with ESP32 sending analog data to Blynk cloud dashboard.\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSound-Activated Alarm:\u003c\/strong\u003e Program a Raspberry Pi to send email alerts when sound threshold exceeded, using Python and GPIO.\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/sound-sensor-kit-with-arduino-uno-real-time-led-brightness-control\"\u003e\n\u003cstrong\u003eCBSE Class 12 Physics Project:\u003c\/strong\u003e Study the variation of sensor output with distance and sound intensity, using multimeter and function generator.\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eB.Tech Final Year Project:\u003c\/strong\u003e Design a smart home noise classification system using KY-038 with Arduino and machine learning on edge (TinyML) to identify door knocks vs. ambient noise.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003ctable class=\"compat-table\"\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003ePlatform\u003c\/th\u003e\n\u003cth\u003eCompatible\u003c\/th\u003e\n\u003cth\u003eConnection\u003c\/th\u003e\n\u003cth\u003eLibrary \/ Method\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eArduino Uno R3\u003c\/td\u003e\n\u003ctd\u003eYes\u003c\/td\u003e\n\u003ctd\u003eDigital: D2, Analog: A0\u003c\/td\u003e\n\u003ctd\u003edigitalRead() \/ analogRead()\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eArduino Nano\u003c\/td\u003e\n\u003ctd\u003eYes\u003c\/td\u003e\n\u003ctd\u003eDigital: D2, Analog: A0\u003c\/td\u003e\n\u003ctd\u003edigitalRead() \/ analogRead()\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eArduino Mega 2560\u003c\/td\u003e\n\u003ctd\u003eYes\u003c\/td\u003e\n\u003ctd\u003eDigital: 2, Analog: A0\u003c\/td\u003e\n\u003ctd\u003edigitalRead() \/ analogRead()\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eESP8266 NodeMCU\u003c\/td\u003e\n\u003ctd\u003eYes with condition\u003c\/td\u003e\n\u003ctd\u003eDigital: any GPIO; Analog: A0 (voltage divider required for 5V output)\u003c\/td\u003e\n\u003ctd\u003edigitalRead() \/ analogRead(A0)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eESP32 Dev Board\u003c\/td\u003e\n\u003ctd\u003eYes if powered with 3.3V\u003c\/td\u003e\n\u003ctd\u003eDigital: any GPIO; Analog: ADC pin (GPIO34–39)\u003c\/td\u003e\n\u003ctd\u003edigitalRead() \/ analogRead()\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eRaspberry Pi Pico\u003c\/td\u003e\n\u003ctd\u003eYes (use 3.3V power)\u003c\/td\u003e\n\u003ctd\u003eDigital: GP15, Analog: ADC0\u003c\/td\u003e\n\u003ctd\u003edigitalRead() \/ analogRead() (Arduino‑Pico core)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eRaspberry Pi 4 \/ 5\u003c\/td\u003e\n\u003ctd\u003eYes (digital only)\u003c\/td\u003e\n\u003ctd\u003eDigital: GPIO17; Analog requires MCP3008 ADC\u003c\/td\u003e\n\u003ctd\u003eRPi.GPIO \/ spidev for external ADC\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWiring and Interface Notes\u003c\/h2\u003e\n\u003cp\u003eConnect VCC to 3.3V or 5V, GND to ground. Digital output connects to a digital GPIO pin; analog output connects to an analog input pin (ADC). For boards with 3.3V logic, power the module with 3.3V to avoid level shifting on analog output.\u003c\/p\u003e\n\n\u003ch2\u003eFrequently Asked Questions\u003c\/h2\u003e\n\u003cdiv class=\"faq\"\u003e\n  \u003cdiv class=\"faq-item\"\u003e\n    \u003ch3\u003eWhat is the difference between the DO and AO pins on KY-038?\u003c\/h3\u003e\n    \u003cp\u003eThe DO (digital output) provides a high\/low signal based on the threshold set by the potentiometer, ideal for simple on\/off sound detection. The AO (analog output) outputs a continuous voltage proportional to sound intensity, allowing you to measure sound levels precisely.\u003c\/p\u003e\n  \u003c\/div\u003e\n  \u003cdiv class=\"faq-item\"\u003e\n    \u003ch3\u003eCan I use the KY-038 for voice recognition?\u003c\/h3\u003e\n    \u003cp\u003eNo, the KY-038 outputs only amplitude-based signals and cannot distinguish specific words or frequencies. For voice recognition, consider a dedicated MEMS microphone with I2S interface and a microcontroller with processing power.\u003c\/p\u003e\n  \u003c\/div\u003e\n\u003c\/div\u003e\n\n\u003cscript type=\"application\/ld+json\"\u003e\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@graph\": [\n    {\n      \"@type\": \"Product\",\n      \"@id\": \"https:\/\/compoden.in\/products\/ky-038-sound-sensor-module-microphone-module-for-arduino#product\",\n      \"name\": \"KY-038 Sound Sensor Module – Analog \u0026 Digital Microphone Detector\",\n      \"description\": \"Buy KY-038 sound sensor module with electret mic and LM393 comparator. Adjustable sensitivity, analog+digital output, 3.3-5V. Works with Arduino, ESP32, Pi. Fast ship.\",\n      \"sku\": \"CDN-0957\",\n      \"mpn\": \"CDN-0957\",\n      \"brand\": {\"@type\": \"Brand\", \"name\": \"Compoden\"},\n      \"offers\": {\n        \"@type\": \"Offer\",\n        \"priceCurrency\": \"INR\",\n        \"price\": \"PRICE_PLACEHOLDER\",\n        \"availability\": \"https:\/\/schema.org\/InStock\",\n        \"seller\": {\"@type\": \"Organization\", \"name\": \"Compoden\", \"url\": \"https:\/\/compoden.in\"}\n      }\n    },\n    {\n      \"@type\": \"FAQPage\",\n      \"@id\": \"https:\/\/compoden.in\/products\/ky-038-sound-sensor-module-microphone-module-for-arduino#faq\",\n      \"mainEntity\": [\n        {\"@type\": \"Question\", \"name\": \"What is the difference between the DO and AO pins on KY-038?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The DO (digital output) provides a high\/low signal based on the threshold set by the potentiometer, ideal for simple on\/off sound detection. The AO (analog output) outputs a continuous voltage proportional to sound intensity, allowing you to measure sound levels precisely.\"}},\n        {\"@type\": \"Question\", \"name\": \"Can I use the KY-038 for voice recognition?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No, the KY-038 outputs only amplitude-based signals and cannot distinguish specific words or frequencies. For voice recognition, consider a dedicated MEMS microphone with I2S interface and a microcontroller with processing power.\"}}\n      ]\n    }\n  ]\n}\n\u003c\/script\u003e","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53454857175405,"sku":"CDN-0957","price":270.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/p_a63fd1f7-c76d-4e9d-aa15-6d70eddd5753.png?v=1782232010","url":"https:\/\/compoden.com\/products\/ky-038-sound-sensor-module-microphone-module-for-arduino","provider":"Compoden","version":"1.0","type":"link"}