Projects / Ideas / Clap switch for a night light

Clap switch for a night light

BeginnerLightingIdeaReviewed
In short

How do you build a clap switch for a night light?

A sound module detects two claps in a row and toggles an LED lamp, a classic first sound project. You need Arduino Nano, Sound sensor module (KY-038), LED 5 mm red, Resistor 220 Ω and Breadboard 830 Tie Points.

Level
Beginner
Time
About 150 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

Switch with a double clap.

Parts list

How to build it

  1. Wire the module
  2. Read the loudness
  3. Detect a clap
  4. Look for two within a second
  5. Toggle the LED

Related projects

Common questions

What parts do I need for the clap switch for a night light?

Arduino Nano, Sound sensor module (KY-038), LED 5 mm red, Resistor 220 Ω and Breadboard 830 Tie Points.

How long does the clap switch for a night light take to build?

About 150 minutes for a beginner maker.