Summary of Clap Switch using Arduino
This project demonstrates a Clap ON/OFF switch using an Arduino Uno and an Analog-to-Digital Converter (ADC). A condenser microphone captures sound, converting it into electrical signals. These signals pass through a high-pass filter and amplifier before being read by the Arduino's ADC. When a clap creates a voltage peak exceeding normal levels, the code toggles an LED on or off, effectively acting as a sound-activated switch without requiring a 555 timer IC.
Parts used in the Clap ON Clap OFF Switch:
- Arduino Uno
- 5v power supply
- Condenser mic
- 2N3904 NPN transistor
- 100nF capacitors (2 pieces)
- 100uF capacitor
- 1K Ω resistor
- 1MΩ resistor
- 15KΩ resistors (2 pieces)
- LED
- Breadboard
- Connecting wires
In this project we are going to make Clapper circuit using the concept of ADC (Analog to Digital Conversion) in ARDUINO UNO. We are going to use a MIC and Uno to sense the sound and trigger a response. This Clap ON Clap OFF switch basically turns ON or OFF the device, by using the clap sound, as switch. We have previously built Clap switch and Clap ON Clap OFF switch, using 555 Timer IC.
On clapping there will be a peak signal at the MIC which is much higher than normal, this signal is fed to the amplifier, though a High Pass Filter. This amplified voltage signal is fed to ADC, which converts this high voltage into a number. So there will be a peak in the ADC reading of the UNO. On this peak detection we will toggle an LED on the board, on each clap. This project has been explained in detail below.
MIC or Microphone is a sound sensing transducer, which basically converts sound energy into electrical energy, so with this sensor we have sound as changing voltage. We usually record or sense sound through this device. This transducer is used in all mobile phones and laptops. A typical MIC looks like,
Determining the polarity of Condenser Mic:
MIC has two terminals one is positive and another is negative. Mic polarity can be found using a Multi-Meter. Take the positive probe of Multi-Meter (put the meter in DIODE TESTING mode) and connect it to one terminal of MIC and the negative probe to the other terminal of MIC. If you get the readings on the screen then the terminal of positive (MIC) is at negative terminal of Multi-Meter. Or you can simply find the terminals by looking at it, the negative terminal has two or three soldering lines, connected to the metal case of the mic. This connectivity, from negative terminal to its metal case can also be tested using continuity tester, to find out the negative terminal.
Components Required:
Hardware:
- ARDUINO UNO, power supply (5v), a condenser mic (explained above)
- 2N3904 NPN transistor,
- 100nF capacitors (2 pieces), one 100uF capacitor,
- 1K Ω resistor, 1MΩ resistor, 15KΩ resistor (2 pieces), one LED,
-
And Breadboard & Connecting wires.
Software: Arduino IDE – Arduino nightly.
Circuit Diagram and Working Explanation:
The circuit diagram of the clapper circuit is shown in below figure:
Read More: Clap Switch using Arduino
- How does the circuit detect a clap?
The microphone converts sound energy into electrical energy, creating a peak signal that is amplified and detected by the Arduino's ADC. - Can I determine the polarity of the condenser mic with a multimeter?
Yes, you can use the diode testing mode on a multimeter to identify terminals based on reading behavior or look for soldering lines connected to the metal case. - What component converts the analog voltage signal into a number?
The ADC (Analog to Digital Conversion) in the Arduino converts the high voltage signal from the amplifier into a numerical value. - Does this project require a 555 Timer IC?
No, this specific project uses the concept of ADC in Arduino instead of the 555 Timer IC used in previous versions. - What happens when the peak detection occurs?
The system toggles an LED on the board on each clap to indicate the device has turned on or off. - Which software is required for this project?
You need the Arduino IDE, specifically the Arduino nightly version. - How is the negative terminal of the mic identified physically?
The negative terminal typically has two or three soldering lines connected to the metal case of the mic. - What role does the High Pass Filter play in the circuit?
The High Pass Filter processes the signal fed from the microphone to the amplifier before it reaches the ADC.