Simple and Cheap Clap Switch Circuit
Introduction
The Simple and Cheap Clap Switch Circuit is a practical and fun DIY electronics project that allows you to control appliances or lights with the sound of a hand clap. Using just a few basic components like a microphone, transistor, and relay, this circuit is easy to assemble and ideal for beginners exploring sound-activated control systems. It’s an affordable way to understand the fundamentals of audio signal detection and switching, making it perfect for school projects or hobbyist experiments. With this simple and cheap clap switch circuit, you can add a touch of automation to your home without spending much.
For Full Project:
https://electronicsworkshops.com/2025/03/26/simple-and-cheap-clap-switch-circuit/

Working Principle
The clap switch operates by detecting the sound of a clap and using it to toggle a relay, which can control an external device (like a light or fan). Here’s how it works step-by-step:
Sound Detection:
A condenser microphone (MIC) picks up the sound waves produced by a clap. This sound is converted into a small analog voltage signal.
Signal Conditioning:
The signal is passed through a biasing and filtering stage (using resistors R2, R3 and capacitor C2) to clean up and amplify the signal to a usable level.
Microcontroller Processing:
The filtered signal is fed into the ATtiny85 microcontroller (U2) at a digital input pin. The microcontroller is programmed to detect a spike or pulse that matches the characteristics of a clap.
Output Trigger:
Upon detecting a valid clap signal, the microcontroller sends a high output signal (TRIGGER) to activate transistor Q1 (2N3904).
Relay Activation:
The transistor switches on and allows current to flow to the relay coil (RLY1). This energizes the relay, closing or opening its contacts to control an external AC load.
Protection and Indication:
Diode D1 (1N4007) protects the transistor from back EMF when the relay coil is turned off.
LED1 indicates power is supplied to the system.

Schematic Diagram
This circuit is a clap switch system that uses an ATtiny85 microcontroller to detect sound and control a relay. A condenser microphone (MIC1) captures the sound (such as a clap), which is then filtered and amplified by resistors (R2, R3) and capacitor (C2), producing a clean analog signal at the SOUND_INPUT pin. This input is fed into the ATtiny85 (U2), which processes the signal and, upon detecting a valid sound pattern, sends a high signal on its output pin labeled TRIGGER. This output drives an NPN transistor (Q1, 2N3904), allowing current to flow through and energize a 5V relay (RLY1). The relay can then switch an external AC load. A flyback diode (D1) protects the transistor from voltage spikes. Additionally, an LED (LED1) with resistor (R4) acts as a power indicator, and the whole system is powered by a HLK-PM01 module converting AC to 5V DC.

Schematic Diagram Clap Switch
PCB Files

Project Files

Conclusion
The simple and cheap clap switch circuit offers an easy and affordable solution for controlling electronic appliances using sound (clap) as a trigger. Utilizing basic components like a microphone, transistors, resistors, and a relay, the circuit detects a clap sound and activates or deactivates the connected load. This project is ideal for beginners to understand basic sound detection and switching principles, and it can be used in home automation or DIY electronic applications. Its low cost and simplicity make it an excellent entry-level project for learning electronics and sound-based control system.
For Full Project:
https://electronicsworkshops.com/2025/03/26/simple-and-cheap-clap-switch-circuit/
Simple and Cheap Clap Switch Circuit
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(2)
-
Engineer
Oct 19,2025
-
Estiak Khan
Jul 19,2025
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Rabin Poudel
-
Flood Detection and warning system using LORA and Arduino
IntroductionFloods are one of the most devastating natural disasters, causing immense damage to life...
-
DIY LED Decoration Tiny Star PCB Project
IntroductionThe Tiny Star PCB is a small and fun DIY electronics project that is perfect for hobbyis...
-
Simple and Cheap Clap Switch Circuit
IntroductionThe Simple and Cheap Clap Switch Circuit is a practical and fun DIY electronics project ...
-
Arduino-based Mist Maker and Hand Dryer
IntroductionIn today’s world, automation and hygiene have become essential, especially in public pla...
-
MPL3115A2 Barometric Pressure, Altitude, and Temperature Sensor
IntroductionThe MPL3115A2 is a highly accurate, low-power digital barometric pressure sensor from NX...
-
E-Speaker Using ESP32
IntroductionThe E-Speaker is a smart, portable, and versatile audio system built using the ESP32 mic...
-
Heart Rate Monitor Circuit Using Photoplethysmography (PPG)
IntroductionHeart rate is a vital physiological parameter that reflects the health and fitness of an...
-
Automated Greenhouse Control System using ESP32
IntroductionAn automated greenhouse control system leverages technology to optimize plant growth con...
-
STD CH330N USB to Serial Converter 5V
IntroductionThe CH330N is a versatile USB-to-serial converter chip that simplifies interfacing betwe...
-
KY-032 Obstacle avoidance sensor module
IntroductionIntroduction to Obstacle Avoidance SensorsObstacle avoidance sensors are essential compo...
-
BC547 BASED WATER LEVEL INDICATOR
IntroductionA water level indicator using a BC547 transistor is a simple and effective electronic pr...
-
How to Design Own Arduino Wifi shield PCB
OverviewArduino wifi shield connects the Arduino with a wifi chip through the serial communication p...
-
DIY Air Quality Tester
OverviewIn this project “DIY Air Quality Tester” we use Node MCU microcontroller and air quality sen...
-
Digital Clock Using Arduino
OverviewIn this project, “Digital clock using Arduino” we will make a PCB board for digital clock an...
-
Bluetooth Controlled car using Arduino
OverviewA Bluetooth Controlled Car Using Arduino is a fascinating DIY project that involves building...
-
IoT-Based Automatic Street Light Controller Using ESP32
IntroductionThis system uses ESP32 modules to control street lights through a centralized IoT server...
-
SEPIC DC-DC Converter Using the MT3608 Boost IC
IntroductionModern electronic design must prioritize effective and adaptable power management, parti...
-
Audio Peak Detector using LMV358
IntroductionAn Audio Peak Detector is an essential circuit in audio signal processing that identifie...
-
-
AEL-2011 Power Supply Module
337 0 1 -
AEL-2011 50W Power Amplifier
315 0 1 -
-
-
Custom Mechanical Keyboard
573 0 0 -
Tester for Touch Screen Digitizer without using microcontroller
240 2 2 -
Audio reactive glow LED wristband/bracelet with NFC / RFID-Tags
241 0 1 -
-
-







