Idea
In short
How do you build a clap switch?
Two claps toggle a relay for a lamp, using a sound sensor and a simple timing rule. Mains is not part of this build. You need Arduino Uno R3, Sound sensor module (KY-038), Relay Module 5V, LED 5 mm green and Resistor 330 Ω.
- Level
- Beginner
- Time
- About 60 min
- Parts
- 5
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal
Detect a pattern of two loud sounds.
Parts list
- Development Boards
- Sensors
- Interfaces
- Semiconductors
- Passives
How to build it
- Read the sound sensor
- Detect a loud spike
- Look for a second spike inside a window
- Toggle the relay or LED
- Add a short lock-out to avoid echoes
Common questions
What parts do I need for the clap switch?
Arduino Uno R3, Sound sensor module (KY-038), Relay Module 5V, LED 5 mm green and Resistor 330 Ω.
How long does the clap switch take to build?
About 60 minutes for a beginner maker.
