Posts

Showing posts from April, 2020

how to make clap switch using arduino

Image
Clap switch using Arduino   In this Arduino project for beginners. The sound made by clapping is detected by an electret microphone connected to one of the Arduino analog input pin. The first time that the clap is detected by the Arduino, the light will be switch ON. The second time that a clap is detected the light will be switched OFF. this is an easy and fun project for beginners. Circuit diagram . https://www.youtube.com/watch?v=CFlzrHVzK8U Requirements. Microphone. 100n (104) ceramic capacitor. 100k resistor. 10k resistor. 100 – 1k resistor any one of them. BC547 NPN Transistor. 12v Relay. Wire. Holder. 12v DC Supply. Jumper wire. Arduino   (Any Arduino board ). https://youtu.be/hH07vDR9zn8 Arduino code. After building the above circuit, load the following sketch to the Arduino board.  Code. void setup() {   Serial.begin(9600);             // using serial port to check analog value   pinMode(2, OUTPUT);