Clap Activated Led
a Led which turns on when you clap and off when you clap
Supplies
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.
Calibrate Sound Sensor
- Do not make any extra sound
- Turn the potentiometer until LED L2 turns on. (check with the retailer or datasheet which direction to turn it clockwise or anti clockwise)
- Turn the potentiometer slowly in the opposite direction so that LED L2 turns off. In this case, the digital output D0 is LOW
- Now test the settings and tap beside the KY-038 or KY-037 microphone sound sensor module.
- LED L2 should turn on by an active sound.
Schematic Diagram
please see the diagaram above and the pinout to see where the parts need to go
Source Code
i have code for both the pico and arduino