กลับไปหน้ารวมไฟล์
clappy-the-clap-controlled-lamp-8b3f13-en.md

I made this project because it was tiresome to switch off the lamp while I was sleeping by a physical switch. I thought if I could just turn the lamp off by a clap, then it would be amazing.

Hence I made this.

Visit my blog: https://phoenixzx200.blogspot.com/

Visit my Instructables page: https://www.instructables.com/Clappy-the-Clap-Controlled-Lamp/

EXPANDED TECHNICAL DETAILS

Acoustic Event Detection

Clappy is a hands-free switch that toggles appliances based on the rhythmic sound of human hands.

  • Sound Sensory Gain: Uses a Microphone module with an adjustable gain. The Arduino's ADC monitors the analog peak. A "Clap" is identified by a sudden, high-dB spike above ambient noise.
  • Double-Clap Logic: To prevent false triggers from speech or ambient noise, the code requires two distinct spikes within a specific time window (e.g., 200ms to 700ms apart).

Power Stage

  • Relay Isolation: The Arduino triggers a 5V Relay Module (Songle) to switch 220V/110V room lamps.
  • User Feedback: Includes a small status LED that flashes when a valid sound peak is detected, helping the user calibrate their clap distance and volume.

ข้อมูล Frontmatter ดั้งเดิม

title: "Clappy: The Clap controlled Lamp"
description: "This is a lamp which will activate using your clap sound."
author: "phoenixzx200"
category: ""
tags:
  - "environmental sensing"
  - "lights"
  - "home automation"
  - "smart appliances"
  - "entertainment system"
views: 1088
likes: 0
price: 393
difficulty: "Easy"
components:
  - "1x Grove - 2-Channel SPDT Relay"
  - "1x Plier, Long Nose"
  - "1x Hot glue gun (generic)"
  - "1x Jumper wires (generic)"
  - "1x Sound Sensor"
  - "1x 5v 1a adapter (generic)"
  - "1x Arduino UNO"
  - "1x Multitool, Screwdriver"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "3e1c6a78e51eb912674b5cb7e797ab69185e7759aa5fe08922c38f8077547987"
encryptedPayload: "U2FsdGVkX1/ep1ysvtx5NFocvEWPwja23Z4kePaqNSkyTZZWQ14wieL8ppaRqB5l/KKyR33aMeBGFqUfv3OLReSFY3RKjnUSOME2UsmbX/s="
seoDescription: "Build Clappy, an Arduino-based clap-controlled lamp. Learn to use a Sound Sensor to trigger lights with a simple clap."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/clappy-the-clap-controlled-lamp-8b3f13_cover.jpg"
lang: "en"