Clap Activated Led

by cryp7o in Circuits > Arduino

339 Views, 3 Favorites, 0 Comments

Clap Activated Led

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
  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.


Schematic Diagram

Screenshot 2023-12-21 181722.png
Screenshot 2023-12-21 181048.png
Screenshot 2023-12-21 184320.png
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
Screenshot 2023-12-21 181856.png

i have code for both the pico and arduino