Projects / Ideas / Clap switch

Clap switch

BeginnerSmart HomeIdeaReviewed
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

How to build it

  1. Read the sound sensor
  2. Detect a loud spike
  3. Look for a second spike inside a window
  4. Toggle the relay or LED
  5. Add a short lock-out to avoid echoes

Related projects

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.