What is a Clap Switch Circuit?
A clap switch is a simple electronic circuit project that allows the user to gain dynamic control of AC/DC appliances. It receives sound signals as an input and converts them into an electrical signal, which then can be used to control devices such as lighting fixtures, relays, small appliances, etc. So in today’s tutorial, we are going to go over a step by step process on how to design a Clap Switch Circuit Project Using LM358 Op-Amp And CD4017 counter IC.
LM358 IC
An LM358 is a simple operational amplifier that is integrated with two amplifiers that are powered by using a single power supply. The IC offers an outstanding value for cost-sensitive applications, with features including low offset (300 µV, typical), common-mode input range to ground, and high differential input voltage capability. They are commonly used in applications such as integrators, Differentiator, Summer, adder, Voltage follower, and Oscilloscopes, etc.
CD4017 IC
The heart of this Clap Switch Circuit is a CD4017 IC. A CD4017 IC is a 16 pin CMOS decade counter/Divider IC with 10 outputs. It is also known as the ‘Johnson 10 stage decade counter’. It has 10 decoded outputs that give output signals one by one in sequence when a clock signal from the clock input is given. Its Input includes a CLOCK, a RESET, and a CLOCK INHIBIT signal. Schmitt trigger action in the CLOCK input circuit provides pulse shaping that allows unlimited clock input pulse rise and fall times.
Hardware Components
You will need the following parts to build this project.
S.No | Component | Value | Qty |
---|---|---|---|
1) | Op-Amp IC | LM358 | 1 |
2 | Relay | SPDT, 12V | 1 |
3) | Decade Counter IC | CD4017 | 1 |
4) | Transistor | 2n2222 | 1 |
5) | Electret mic | 5mm | 1 |
6) | LED | 5mm, 3.5V | 1 |
7) | Zener Diode | 1N4148 | 1 |
8) | Diode | 1N4007 | 1 |
9) | Potentiometer | 100K | 1 |
10) | Resistor | 100K, 10K, 1K | 8 |
11) | Capacitors | 100nF | 2 |
12) | Soldering iron | 45W – 65W | 1 |
13) | Soldering Wire with Flux | – | 1 |
14) | Veroboard | – | 1 |
15) | DC Battery | 9V | 1 |
16) | Battery Clip | – | 1 |
17) | Jumper Wires | – | As per need |
LM358 Pinout
CD4017 Pinout
Useful Steps
1) Solder the LM358 Op-Amp and CD4017 counter Ic on the veroboard.
2) After that, solder the -ve terminal of the electret mic with the GND pins of both ICs.
3) After that, solder a 1K resistor with the +ve pin of the electret mic, pin 8 of the LM358, and pin 16 of the CD4017 IC.
4) After that, solder a 100nF capacitor between the +ve pin of hte electret mic and pin 3 of the LM358 IC.
5) Now, solder a 100K resistor between pin 3 and pin4 of the LM358 IC.
6) After that, solder a 100K pot between pin 2 and pin 1 of the LM358 IC.
7) After that, solder a 1K resistor between pin 4 and pin 2 of the LM358 IC.
8) Solder the anode pin of the 1N4148 diode with pin 1 of LM358 and cathode with pin 5 of the IC.
9) After that, solder a 10K resistor between pin 6 and pin 4 of the LM358 IC. Also, solder a 100K resistor between pin 6 and pin 8 of the LM358 IC.
10) After that, solder a 100nF capacitor and a 100K resistor between pin 5 and pin 4 of the LM358 IC.
11) Solder the emitter pin of the 2n2222 transistor with pin 8,13 of CD4017 IC and pin 4 of LM358 IC.
12) After that, solder a 1k resistor between pin 2 of CD4017 IC and base of 2n2222 transistor. Also, solder a 1K resistor between pin 3 of CD4017 and LED +ve pin.
13) Solder the -ve pin of the LED with pin 8 of CD4017 & +ve pin with the 1K resistor.
Setting up the 12V Relay
14) After that, solder the 12V relay on the veroboard.
15) After that, solder a flyback diode (1N4007) between the coil terminals of the 12V SPDT relay.
16) Solder the +ve pin of the battery clip with pin 16 of CD4017 IC and pin 8 of LM358 IC. Also, solde rthe -ve pin of the battery clip with 8, 13 of CD4017 and pin 4 LM358 IC.
17) Power up and test the circuit using a 9V Battery.
Working Explanation
The working of this circuit is actually pretty simple. An audio input is taken as the input by an audio transducer such as a mic. The electret mic collects the sound waves and converts them into an electrical signal. The signal then passes through a coupling capacitor (100nF). The coupling capacitor blocks the DC component of the signal, allowing only AC to pass through. The capacitor’s output then goes to the non – inverting input pin 3 of the LM358 Op-Amp IC. Here, a 10K preset pot is used to adjust the output of the Op-Amp IC.
The IC output (pin 7) then goes to the CLK pin of CD4017 counter IC. The counter output then acts as a control signal on the base of the 2n2222 transistor. The collector output from the transistor then goes on to energizing the 12V SPDT relay coil. Here, we are using a flyback diode (1N4007) to protect the relay coil from any -ve feedback. On energizing, the coil makes the relay switch and activates any circuit connected across the NC and COM terminal of the relay. Always use a relay with respect to the rating of your input supply and output load in order to avoid any damage to the relay.
Applications
- It is commonly used with lighting fixtures such as LED, array fixtures and RGB LEDs in order to gain dynamic control over them.
See Also: How To Make H Bridge Motor Controller Using Power Transistors | Touchless Hand Sanitizer Dispenser Using Servo Motor And 555 Timer IC | How To Make An Audio Power Amplifier Using TDA2003 Amplifier IC
Bro, where is the circuit diagram?
Bro, I need the circuit diagram
where is the circuit diagram?