Ad Code

Responsive Advertisement

Ticker

6/recent/ticker-posts

How To Make Clap to Light Up LED light Using Sound Sensor DIY Project by WTC Zone

  


Imagine a world where clapping controls your lights instead of manually switching them ON/OFF. In this fun Arduino meme project, we compare "Manual Effort vs. Smart Automation" using a clap-controlled light system. 🎬

This project is beginner-friendly, perfect for DIY electronics lovers, and uses an Arduino Uno/Nano, a sound sensor, and an LED or relay for real light control. The best part? No manual switches—just clap, and the magic happens! 😎

🚀 Why Should You Build This?
Fun & Entertaining – Meme-style comparison video content.
Beginner-Friendly – No complex coding or circuits.
Automation Ready – Use a relay module to control real bulbs.

Viral Project Idea – Perfect for YouTube & social media content!

🛠 Parts Used:

  1. Arduino UNO – Microcontroller board to process data.
  2. DHT11 Temperature and Humidity Sensor – Measures the ambient temperature and humidity.
  3. I2C LCD Display (16x2) – Displays messages and sensor readings.
  4. Breadboard – For prototyping and connecting components.
  5. Connecting Wires – For making electrical connections.
  6. Power Supply/USB Cable – To power the Arduino UNO.

  7. 🛠️ Parts Required for the Arduino Clap Control Light

    To build this project, you’ll need:

  1. Arduino UNO – Microcontroller board to process data.
  2. Sound Sensor Module (KY-038 or LM393 – Detects claps 👏
  3. 2X channel Relay Module – Controls light 💡
  4. LED lights or Strip – For lights.
  5. Connecting Wires – For making electrical connections.
  6. Power Supply/USB Cable – To power the Arduino UNO.

📡 Circuit Diagram: How to Connect Everything?

🔌 Wiring Instructions:

  • Sound Sensor → Arduino

    • VCC → 5V
    • GND → GND
    • A0 (Analog Output) → A0 (Arduino)
  • LED/Relay → Arduino

    • Positive (Anode) → Digital Pin 9
    • Negative (Cathode) → GND

📍 If using a relay, connect a real AC bulb instead of an LED.

Video Link: - Click Here For Video

How To Make Clap to Light Up LED light Using Sound Sensor DIY Project by WTC Zone simple Circuit: -


How To Make Clap to Light Up LED light Using Sound Sensor DIY Project by WTC Zone Arduino Programming: -

Arduino IDE Program

Code for Clap to Light Up LED light Using Sound Sensor DIY Project by WTC Zone

Below is the complete Arduino code for this project. Make sure you have the DHT sensor library and the LiquidCrystal_I2C library installed in your Arduino IDE.



// Define Pins
const int soundSensorPin = A0;  // Sound sensor input
const int ledPin = 9;           // LED or relay output
const int threshold = 500;      // Adjust based on room noise level

bool lightState = false;  // Track light state

void setup() {
    pinMode(soundSensorPin, INPUT);
    pinMode(ledPin, OUTPUT);
    Serial.begin(9600);  // Debugging
}

void loop() {
    int soundValue = analogRead(soundSensorPin);  // Read sensor value
    Serial.println(soundValue);  // Debugging

    if (soundValue > threshold) {  // Detect clap
        lightState = !lightState;  // Toggle light state
        digitalWrite(ledPin, lightState ? HIGH : LOW);
        delay(500);  // Prevent multiple triggers from one clap
    }
}
 
-----------------------------------------------------------------------------------------------------------

⚙️ How It Works?

Step 1: The sound sensor listens for a clap sound.
Step 2: If detected (above the threshold level), Arduino toggles the light ON/OFF.
Step 3: Adds a delay to avoid multiple triggers from one clap.
Step 4: Works with LED or a relay module to control real lights.

🎥 How to Shoot the Meme Video?

  • Scene 1 (Manual Effort 😓): Clap → Nothing happens.
  • Scene 2 (Arduino Magic 🤩): Clap → Light turns ON instantly!

🚀 Future Scope & Upgrades

🔹 Use IoT: Connect to WiFi for app-controlled lights.
🔹 Alexa/Google Assistant Integration: Control via voice commands.
🔹 Multiple Claps for Different Actions: 1 Clap → ON, 2 Claps → OFF, 3 Claps → Change Color.
🔹 Home Automation: Expand to control fans, AC, and appliances.


🔥 Final Thoughts: Smart Wins Every Time!

With this funny yet practical Arduino project, you can turn a simple clap into a smart home upgrade! Whether you’re making a meme video or a real automation system, this project is easy to build, engaging, and full of possibilities.

🛠️ Try it out & impress your friends! 😎


Let me know if you need further help with the implementation or enhancements! 😊


Share, Support, and Subscribe!!! 1. PRO KAM EXPLAINED 2. Knowledge KAM 3. PRO KAM Follow us on 1. Facebook 2. Instagram 3. Pinterest 4. Blogspot 5 Twitter If you have any other ideas to make me design, you can describe them in the comment section and if I can, I will make a designing video on it. So I am waiting #prokam #wtc #Arduino #ideas #projects #diy #how #to #ArduinoProjects #UltrasonicSensor #HeightMeasurement #TechDIY #WeTechCreators #wtczo

Post a Comment

0 Comments

Ad Code

Responsive Advertisement