Want to build a simple clap switch circuit that will toggle any load in response to your claps? The article is meant exactly for the said purpose. A small sound activated switch circuit comprising a sound amplifier and a flip flop is presented here, which can be easily built and used to toggle any electrical gadget through hand claps.
The article is exactly about what the title suggests – a clap switch. A small electronic circuit when built and integrated to any electrical appliance can be made to switch ON/OFF through mere hand clapping.
The entire procedure is explained here in. You have seen magicians doing this, a “clap” and the object vanishes. Obviously I am not here to teach you magic, however the present circuit is nothing less than a magical device, well certainly can be for the children.
The proposed design of a clap switch circuit when integrated to any of your electrical appliance can be used to switch it ON and OFF simply through alternate clapping of your hand. The device becomes more interesting and useful because it does require any external mechanism or device to carry out the specified operations.
As you must have noticed the clapping of hands creates a loud sound and is sharp enough to move quite a distance. The generated sound is in fact strong ripples or vibrations created due to the sudden compression of air in between our striking palms.
The circuit presented here is basically made up of two stages, the first stage is a two transistor hi-gain amplifier and the second stage consists of an efficient flip/flop.
A mic is connected to the amplifier stage; the sound vibrations made by clapping hits the mic and get converted into tiny electrical vibrations. These electrical pulses are amplified to suitable levels by the transistors and are fed to the flip/flop.
The flip/flop stage alternately switches the output relay driver in response to every subsequent clapping. The load connected to the relay thus also gets activated and deactivated correspondingly.
The circuit may be further understood with the following explanation.
Clap Switch Circuit using IC 741.
The above circuit of a simple clap switch was provided to me by one of the keen readers of this blog Mr. Dathan.
The circuit is very to understand:
The opamp here is configured as a comparator, meaning it is positioned to differentiate the slightest of voltage differences across its two inputs.
When the clap sound hits the mic, a momentary drop of voltage is experienced at pin#2 of the IC, this situation raises the voltage at pin#3 of the IC for that instant.
As we know, with pin#3 at higher potential than pin#2 makes the output of the IC high, the condition puts the output of the IC go high momentarily.
This high response triggers the IC 4017 pin#14, and forces its output to either move from pin#2 to pin#3 or vice versa depending upon the initial situation of the outputs.
The above action switches the load accordingly either to ON or OFF position.
The above clap switch circuit using IC 741 was successfully tried and tested by Mr. Ajay Dussa. The following prototype images for the same were sent by Mr. Ajay.
The PCB design (track layout) for the above can be seen below, as designed by Mr. Ajay:
Clap Switch Circuit using Transistors or BJTs
In the above explanations we learned a simple clap switch circuit which incorporated an IC for implementing the desired flip flop actions. The present design uses a different principle and utilizes only transistors for the above triggering actions.
All resistors are1/4 watt 5% CFR
100K = 2nos1K = 2nos10K = 1no (transistor base)1M = 1no
capacitors10uF/25V = 3nosall diodes = 1N4007IC1 = 4017transistors = BC547Relay = 12V/400 ohms
How the Circuit Works
The figure above shows a straight forward two stage sound activated switch.
The first stage comprising T1 and T2 forms a hi-gain voltage amplifier configuration.
A mic is connected at the base of T1 via blocking capacitor C1.
Strong sound vibration hitting the mic is instantly picked and converted into tiny electrical pulses.
These are in fact small AC pulses easily make there way through C1 into the base of T1.
This creates a kind of push-pull effect and T1 also conducts in the corresponding way.
However the response of T1 is relatively weak and requires further amplification.
Transistor T2 is introduced exactly for this and helps to improve the voltage peaks created by T1 to appreciable levels (almost equal to the supply voltage.)
The above voltage pulse is now ready to be use for toggling the flip flop and is fed to the relevant stage.
IC 4017 as we all know produces sequential shifting of its output pin-outs (logic high) in response to every positive pulse at its clock input pin 14.
The amplified clap sound voltage pulse is applied to pin 14 of the above IC, this flips the output of the IC to either a logic high or a logic low depending upon the initial status of the relevant pin-out.
This triggered output is appropriately collected at the diode junctions abd used to toggle a relay through a relay driver transistor T4.
The relay contacts of this clap switch ultimately goes to a load or an appliance which is correspondingly switched ON and OFF with every subsequent claps.
Clap Switch Circuit using BJTs and Power Supply
Looking at the circuit diagram we see that the entire circuit has been configured around ordinary general purpose transistors.
The functioning of the circuit may be understood with the following points:
Transformer X1 along with the D1 and the capacitor C4 forms the basic power supply circuit for providing the required power to the circuit.
The first stage which includes R1, C1, R2, R3, R4 and Q1 form the input sensor circuit.
The next corresponding stages consisting of Q2 and C3 form the flip flop stage and makes sure that the signals from the input sensor stage is appropriately converted into alternate toggling of the output.
The output stage consists of a single transistor Q4. It is basically configured as a relay driver stage for translating the flip flop actions from the previous stage into physical toggling of the connected load across the relay terminals.
The diagram of a simple clap switch circuit using transistors is shown in the below given diagram
R1 - 15K
R R3 -270K
R4 - 3K3
R6 - 27K
R7,11 - IK5
R8,9 - 10K
R13 - 2K2
C3, C1 - 10KPF Disc
C2,3 - 47KPF Disc.:
C4 - 1000uF/16V;
Q1,2,3,4 - BC547B
D1 - 1N4007
D2,3,4,5 -1N4148 _
Xl - 12V/300mA Transformer .
MIC - Condenscr Mic
RLY — 12V Single Charge over relay