Clap Switch Circuit Project Using LM358 And CD4017 IC | DIY Project

3,566 views

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.NoComponentValueQty
1)Op-Amp ICLM3581
2RelaySPDT, 12V1
3)Decade Counter ICCD40171
4)Transistor2n22221
5)Electret mic5mm1
6)LED5mm, 3.5V1
7)Zener Diode1N41481
8)Diode1N40071
9)Potentiometer100K1
10)Resistor100K, 10K, 1K8
11)Capacitors100nF2
12)Soldering iron45W – 65W1
13)Soldering Wire with Flux1
14)Veroboard1
15)DC Battery9V1
16)Battery Clip1
17)Jumper WiresAs 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.
Het dieet van jamie christian johal, de ‘reus’ van bodybuilding: “een omelet met pure chocolade” testoviron trainingsroutine met anabolen ~ totale bodybuilding.

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

3 thoughts on “Clap Switch Circuit Project Using LM358 And CD4017 IC | DIY Project”

Comments are closed.