How fascinating is it to control home appliances with clap? Everybody wants it for their home. Now, you can make one yourself for your home. Just read this post, watch this video and try to make one. If you still face any problem, let us know in the comment. You can also make one for a science fair.

Prerequisites

  1. You should have basic knowledge of how to write source code to Arduino, for that you can watch this video: How to Connect an Arduino to PC or Laptop

What are the required components?

  1. Arduino Uno R3: Amazon FlipKart
  2. Bluetooth Module: Amazon FlipKart
  3. 4 Channel Relay for Arduino: Amazon FlipKart
  4. LED Bulb: Amazon FlipKart
  5. Jumper wires: AmazonFlipKart
  6. 2 pin flexible wire: Amazon

Arduino Source code

int Torelay = 13;
int soundsensor = 7; 
boolean state = false;

void setup()
{
pinMode(Torelay, OUTPUT);
pinMode(soundsensor, INPUT);
}

void loop(){
if (digitalRead(soundsensor) == LOW)
 {
  delay(100);
  state = !state;  //Toggle state value
  digitalWrite(Torelay, state); //set relay value to true or false.
  }
}

Download “Arduino Clap Light Control Source Code” trun-light-on-off.zip – Downloaded 108 times – 308 B

Required Material to make it yourself

 

Ratings

  • Rate this
  • Summary
Current Average Ratings
Cognitive
Avg: 0/5
Affective
Avg: 0/5
Turn Light On Off with Clap using Arduino
Total Avg Rating: 0.00 out of 5 with based on 0 rating(s)
Cognitive
Affective
Pursuing Diploma in Electronics from RBS govt. polytechnic college, Bichpuri, Agra. He loves to play with electronics equipment. He makes electronics project for Learn By Watch and helps other electronics students to build electronics projects for science fairs and exhibition.

Leave a Reply