Clap Activated Led
![Screenshot 2023-12-21 181030.png](/proxy/?url=https://content.instructables.com/F66/RZTB/LQF7PQOK/F66RZTBLQF7PQOK.png&filename=Screenshot 2023-12-21 181030.png)
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
![Sound Sensor Potentiometer Adjustment](/proxy/?url=https://content.instructables.com/FET/4BF0/LQF7PRKC/FET4BF0LQF7PRKC.jpg&filename=Sound Sensor Potentiometer Adjustment)
- 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
![Screenshot 2023-12-21 181722.png](/proxy/?url=https://content.instructables.com/FCP/CW9A/LQF7PQO3/FCPCW9ALQF7PQO3.png&filename=Screenshot 2023-12-21 181722.png)
![Screenshot 2023-12-21 181048.png](/proxy/?url=https://content.instructables.com/FYD/LDZ7/LQF7PQOB/FYDLDZ7LQF7PQOB.png&filename=Screenshot 2023-12-21 181048.png)
![Screenshot 2023-12-21 184320.png](/proxy/?url=https://content.instructables.com/F0E/6R1T/LQF7PQZR/F0E6R1TLQF7PQZR.png&filename=Screenshot 2023-12-21 184320.png)
![Screenshot 2023-12-21 183753.png](/proxy/?url=https://content.instructables.com/FZG/3O81/LQF7PR07/FZG3O81LQF7PR07.png&filename=Screenshot 2023-12-21 183753.png)
please see the diagaram above and the pinout to see where the parts need to go
Source Code
![Screenshot 2023-12-21 181935.png](/proxy/?url=https://content.instructables.com/FWA/SVLO/LQF7PQNP/FWASVLOLQF7PQNP.png&filename=Screenshot 2023-12-21 181935.png)
![Screenshot 2023-12-21 181856.png](/proxy/?url=https://content.instructables.com/FAQ/AOBN/LQF7PQNW/FAQAOBNLQF7PQNW.png&filename=Screenshot 2023-12-21 181856.png)
i have code for both the pico and arduino