Introduction: Clap Activated Led

a Led which turns on when you clap and off when you clap

Supplies

Step 1: Principle

The KY-037 sound sensor utilizes a microphone to detect sound, often incorporating an amplifier and a threshold adjustment mechanism for sensitivity control. It outputs either a digital or analog signal indicative of the detected sound intensity. With power and ground connections, the sensor communicates its data through an output pin to a microcontroller or other devices. Widely used in electronic projects, the KY-037 enables the integration of sound detection capabilities, allowing responsive actions based on ambient noise or vibrations.

Step 2: Calibrate Sound Sensor

  1. Do not make any extra sound
  2. Turn the potentiometer until LED L2 turns on. (check with the retailer or datasheet which direction to turn it clockwise or anti clockwise)
  3. Turn the potentiometer slowly in the opposite direction so that LED L2 turns off. In this case, the digital output D0 is LOW
  4. Now test the settings and tap beside the KY-038 or KY-037 microphone sound sensor module.
  5. LED L2 should turn on by an active sound.


Step 3: Schematic Diagram

please see the diagaram above and the pinout to see where the parts need to go

Step 4: Source Code

i have code for both the pico and arduino