5v Relay Clap Switch Circuit with CD4017 IC

9,761 views

A clap switch circuit is a simple electronic circuit that is used to gain dynamic control of AC/DC appliances by using the application of sound. The sound can either be a simple clapping sound or a knock on an object such as a door. Clap switches have a wide variety of applications, for example, controlling lighting fixtures, AC/DC kitchen appliances, and fail-safe safety equipment. In today’s tutorial, we are going to go over a step-by-step process on how to build a 5v Relay Clap Switch Circuit using the CD4017 decade counter 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.

clap switch pcb

PCBWay commits to meeting the needs of its customers from different industries in terms of quality, delivery, cost-effectiveness, and any other demanding requests. As one of the most experienced PCB manufacturers in China. They pride themselves to be your best business partners as well as good friends in every aspect of your PCB needs.

Hardware Components

The following components are required to make Clap Switch Circuit

S.noComponentValueQty
1.Decade Counter ICCD40171
2.Relay5V/SPDT1
3.Regulator ICLM78051
4.LED5mm, 3.5V2
5.TransistorBC5472
6.Condensor mic1
7.filament lamp220V1
8.Diode1N40071
9.Resistors22K, 1K, 470 Ohms3
10.wall outlet with plug220V1
11.Soldering Iron45W – 65W1
12.Soldering wire with flux1
13.DC Battery9v – 12v1
14.Battery clip1
15.Jumper wiresAs per need

CD4017 Pinout

cd4017 ic pinout

For a detailed description of pinout, dimension features, and specifications download the datasheet of CD4017

Clap Switch Circuit

Clap Switch CIRCUIT CD4017

Useful Steps

1) Solder the 16 – pin IC base on the PCB board.

2) After that, place the CD4017 in the 16 – pin IC socket.

3) Solder all the resistors on the PCB board.

4) After that, solder the BC547 transistors on the PCB board.

5) Solder the 1N4007 flyback diode on the PCB board.

6) After that, solder the two LEDs on the PCB board.

7) Solder the condenser mic and input terminal block connector on the PCB board.

8) Solder the LM7805 voltage regulator on the PCB board.

9) After that, solder the 5V SPDT relay on the PCB board.

10) Power up and test the circuit using a 12V DC battery.

Working Explanation

The working of this circuit is as follows, the electret mic receives the audio noise input from a sound such as a clap, and transduces it into an electrical output. The output from the mic then acts as a control signal at the base of the BC547 transistor. The collector output from the transistor then serves as the clock input on pin 14 of the CD4017 counter IC.

The counter output Q1 then serves as the input control signal for the second BC547 transistor, triggering the output of the transistor to energize the coil terminals of the 5V relay. Here, we are using a flyback diode (1N4007) to protect the relay against any undesirable feedback in case of an electrical short. The collector output of the transistor energizes the SPDT relay, making any external circuit connected between the NC and COM terminal of the relay. Always choose a relay with respect to the input supply voltage supplied, and the output load I/V rating connected to the relay. This will help you in preventing damage to the relay.

Application & Uses

  • Gaining dynamic control of AC/DC lighting fixtures.
  • Also used in door locks and latches to gain remote access of rooms and places.

1 thought on “5v Relay Clap Switch Circuit with CD4017 IC”

Comments are closed.