Kid's Basics: Clap Activated Switch

Murray Roberts

Issue 20, March 2019

This article includes additional downloadable resources.
Please log in to access.

Log in

Here's a fun way to turn a light, fan or other electronics on or off by just clapping your hands!


Think about what electronics we turn on and off remotely in our modern day lives. From changing the TV channel from the comfort of the couch using an infrared remote control, to opening the garage door without getting out of the car, using a wireless remote.

Recently, technology has even allowed us to turn lights on and off using our voice thanks to Google Assistant and Alexa.

Another way to turn things on and off is by clapping your hands. Imagine that! At the clap of your hands, you could turn your bedroom lamp off without getting out of your comfy bed. Alternatively, you could switch something on and off that is out of reach.

Let's show you how to build your own clap activated switch. We'll start things off simple, by turning an LED on and off, then show you how to add a relay to switch a low voltage light, fan, etc.

At the same time, you will learn about electronics and be introduced to the versatile 555 Timer, a transistor, and flip-flop Logic IC.

You may have an idea in mind already what you want to control, but we’ve included a lamp shade with stars cut-out to get you started.

1 × Computer to Download the Illustrations
1 × A4 Printer to Print the Illustrations
1 × Pointy Nose Pliers to Bend the Legs of the Electronic Components
1 × Pair of Scissors / Artwork Knife
1 × Glue Stick
1 × A4 Sheets of Cardboard (Thick)
1 × Pack Blu-Tack / Tape etc.
Markers, Pencils or Crayons (if using outlined versions for colouring)


ELECTRONIC PARTS REQUIRED:JaycarAltronicsCore Electronics
1 × Small Prototyping BreadboardPB8820P1002CE05102
1 × Electret Microphone with PinsAM4011C0173ADA1064
1 × Mixed Jumper WiresWC6027P1017PRT-14284
1 × Breadboard Wire LinksPB8850P1014ACE05631
1 × 555 Timer ICZL3555Z2755COM-09273
1 × 4013 CMOS Flip Flop ICZC4013Z4013-
1 × BC547 TransistorZT2326Z1200CE05245
1 × 5mm Green LEDZD0170Z0801(CE05104 pack)
1 × 1uF Electrolytic CapacitorRE6032R5018CE05268
1 × 330Ω Resistor*RR0560R7546PRT-14490
1 × 1kΩ Resistor*RR0572R7046COM-10969
1 × 47kΩ Resistor*RR0612R7598COM-10969
1 × 100kΩ Resistor*RR0620R7606COM-10969
1 × 4AA Battery CompartmentPH9268S5053POLOLU-1153
4 × AA BatteriesSB2425S4955B-


OPTIONAL:JaycarAltronicsCore Electronics
1 × Relay ModuleXC4419Z6325CE05137
1 × High Brightness LED ModuleXC4468Z6376-


*Quantity shown, may only be available in packs.

We’re assuming very little (or zero) electronics knowledge, and so will try to walk through everything carefully, in order to ensure your success. There is no soldering or programming required - we’ve kept it as simple as possible.

If this is your first project, you may also like to read “Breadboard Basics” in Issue 15, to familiarise yourself with the breadboard before getting started.


The printable parts can be printed on any home printer on an A4 sheet. While these are not critically essential, it helps make the builds more fun than simply LEDs lighting up without any context.

We have provided a plain illustration for this projects. This is to allow you to either add-on the fun of colouring the cube lamp, or simply get on with the interactive portion. The choice is yours.

For this design, the white star lamp shade folds and glues together using regular 80gsm paper. If you have thicker paper then the lamp will be easier to assemble.

You could also glue your printed design onto some backing card to provide structural integrity. The cardboard should be thick enough to hold itself up, but not so thick you cannot easily cut it with scissors.


We will split the build into a few parts. First, we will build the electronics that turns an LED off and on. Then we will show you how to trigger a relay that switches a larger LED on and off. We'll also show you how you could connect other low voltage devices, such as a fan, with an external power supply.

Build 1:

Clap Activated LED Light

build 1

Let's build the electronics for our project. Below we will guide you step-by-step on how to wire up the electronics. If you are unsure about any of the connections, you can refer back to the Fritzing diagram shown below. This diagram shows you the holes the components and wires need to be plugged in to. We should also point out that it doesn't matter what colour wires you use.

Before we get started though, arrange all of the parts, tools and materials required. Make sure you have a clean workspace with good lighting.



step 1

Put the breadboard on the table in front of you. The side with the red (+) positive power rail should be at the top.


step 2

Insert the two wire links on the left that join the positive and negative power rails on top to the power rails on the bottom.


step 3

Gently insert the 8-pin 555 Timer IC into the breadboard as shown above, making sure you put it in the right way. The notch or circle indent on the top of the IC should point to the left side of the breadboard.

Tip: If the legs on the IC are splayed apart, making it difficult to insert into the breadboard, you can gently press the IC against a flat surface to make them straight.


step 4

Before you handle the 14-pin 4013 IC into the breadboard, it is important to be aware that they are static sensitive. That means that an electric shock, like what you get when you rub your feet on carpet, can damage the IC. Discharge yourself on a large metal table, metal door frame or object before you handle the IC. Long nose pliers is one easy way to handle the IC so you don’t need to touch the pins.


step 5

Gently insert the 14-pin 4013 IC into the breadboard, making sure you put it in the right way. The notch or circle indent on the top of the IC should point to the left side of the breadboard.


step 6

Insert the 47k resistor as shown above. It can go in either direction. A 47k resistor will have yellow-violet-orange-gold or yellow-violet-black-red-brown coloured bands on it depending if it has 4 or 5 colour bands.

Note: We have trimmed the legs of our resistor with cutters and bent the legs so it goes flush to the board.


step 7

Insert a short wire link as shown above.


step 8

Insert a short wire link as shown above that goes to the negative power rail.


step 9

Your microphone should have two pins. If you look closely, one of the pins will be joined to the round metal body. This is the negative (-) leg.

STEP 10:

step 10

Insert two socket to plug jumper leads into the back of the microphone. Ideally, use a black or dark coloured wire on the negative (-) pin so you know which one to connect in the next step.

STEP 11:

step 11

Insert the microphone leads into the breadboard as shown above. Make sure the negative wire from the microphone goes to the hole that joins to the negative rail on the breadboard.

STEP 12:

step 12

Insert a short wire link as shown above that goes to the positive power rail.

STEP 13:

step 13

Insert the short wire link as shown above.

STEP 14:

step 14

Insert the 1k resistor. The colour bands will be brown-black-red-gold or brown-black-black-brown-brown depending if it has 4 or 5 colour bands. Resistors work in both directions so it doesn’t matter which way you put these in.

STEP 15:

step 15

Insert the short wire link you see here that goes alongside the 1k resistor to the positive power rail on the breadboard.

STEP 16:

step 16

Insert a short wire link from the 555 Timer IC to the positive rail.

Note: This forth leg on the IC is referred to as Pin 4.

STEP 17:

step 17

Insert a wire lead from the 555 Timer IC to the negative power rail. This is Pin 1 on the IC.

STEP 18:

step 18

Insert the 10k resistor from Positive to Pin 6 on the IC. The colour bands will be brown-black-orange-gold or brown-black-black-red-brown depending if it has 4 or 5 colour bands. Resistors work in both directions so it doesn’t matter which way you put these in.

STEP 19:

step 19

Insert the short wire link that goes across the left side of the 555 Timer IC.

STEP 20:

step 20

Insert a short wire link that goes to the second pin (Pin 2) on the 555 Timer IC.

STEP 21:

step 21

Insert a very short link that joins Pin 6 and Pin 7 on the 555 Timer IC.

Tip: This is a small piece so using pliers can help.

STEP 22:

step 22

Insert the BC547 Transistor as you see above. The flat side needs to point to the top of the the breadboard.

STEP 23:

step 23

Insert the capacitor. The longer leg goes to the positive rail on the breadboard. The side with the stripe on the capacitor’s body points towards the two ICs.

STEP 24:

step 24

Insert a short wire link shown above that joins the capacitor to the 10k resistor.

STEP 25:

step 25

Insert the three wire links shown above that join pins 4, 6 and 7 of the 4013 IC to negative (-).

STEP 26:

step 26

Insert the longer wire link shown above that joins pin 14 of the 4013 IC to the positive (+) power rail.

STEP 27:

step 27

Insert a long wire link that joins pin 3 of the 555 Timer IC to pin 3 on the 4013 IC.

STEP 28:

step 28

Insert the long wire link shown here that goes from pin 1 of the 4013 IC. Next, insert a short wire link between pin 2 and pin 5 of the same IC.

STEP 29:

step 29

Insert the 330 Ohm resistor and green LED as shown above. The 330 Ohm resistor is orange-orange-brown-gold or orange-orange-black-black-brown. The short leg on the LED goes to the negative (-) power rail on the breadboard.

STEP 30:

step 30

Connect power to the breadboard. Insert batteries into the battery holder and insert the red lead into the positive (+) rail and the black lead to the negative (-) rail. The LED should light up when you apply power. If you clap your hands loudly the light should turn off.

attaching a relay

Build 2:

Attaching A Relay


In the previous project, we made a small LED turn on and off. But how do we control a brighter light or something similar that requires much more power to work? A bright light for example?

One way to control more power would be to use a transistor, like what we used in the previous project to amplify the sound from the Electret Microphone.

Another way is to use a relay. A relay is a mechanical switch. When you apply power to the coil inside the relay it turns into an electromagnet. That magnet makes the switch contacts in the relay turn on or off. Or in other words, the normally open (NO) switch closes when you apply power. When you remove power the relay switches back. The normally open contacts go open again.

Let us show you an example using a bright LED, which you can turn into a bedroom lamp.


step 1

Disconnect the battery power from the breadboard, then remove the LED and 330 Ohm resistor from the Breadboard.


step 2

Wire up the relay as shown using Pin to Socket jumper leads. Positive (+) on breadboard to VCC, negative (-) on breadboard to the GND, and the third wire from the breadboard to the IN or Signal pin depending on the markings on your relay.


step 3

Connect a pin to socket jumper lead from the negative rail on the breadboard to the negative (-) pin on the LED module.


step 4

Run a pin to socket jumper lead from the positive rail on the breadboard to the middle screw terminal on the relay. Run another pin to socket lead from the NO (normally open) screw terminal to the positive (+) leg on the LED.


step 5

Apply power again to the breadboard. Clap your hands and the large LED should turn on and off.

Important Note: This LED is very bright. Do not stare directly at the light. It also draws a lot of current so don’t leave it on for too long otherwise your batteries will go flat.

lamp shades


White Stars Lamp Shade

Now we will show you how to prepare and assemble the white star lamp shade. Some knife cutting is required, so adult supervision may be required (Or get mum and dad to do it for you).


step 1

Prepare the tools and materials to make the star printed design.


step 2

Very carefully cut out the stars using a hobby knife.


step 3

Very carefully cut out the box, making sure you do not cut off the glue tabs.


step 4

Crease all of the glue tabs.


step 5

Fold the box into a loose box shape.


step 6

Glue the inner tabs on the box design.


step 7

Assemble the box and ensure the tabs hold in place. Leave to dry.


step 8

Insert the LED module into the large star on the box.


Congratulations, you have just made your very own clap activated switch. If we break it down, you have made a simple little amplifier using a transistor to amplify the electret microphone signal, a timer circuit using the versatile 555 Timer IC, and a logic 'flip-flop' circuit using the 4013 IC.

In standby mode, the transistor is in the "off" state. When a loud clap is made close to the microphone, the transistor will turn "on" and triggers the 555 Timer IC. The 555 Timer IC will then send a positive voltage pulse to activate the 4013 IC, then returns to its low voltage state to wait for another clap.

The 4013 IC is called a 'Positive Edge Triggered D-type Flip-Flop'. To generalise how it works, each time it gets a positive pulse on its input, it toggles the state of both output pins, hence 'flip-flop'. The output stays in that high or low voltage state until it gets another positive pulse on the input. This output makes our LED or relay turn on or off

You can learn a lot more about the 555 timer in our first DIYODE issue #001, and learn about Digital Logic Gates in Issue #019.



If you built the second project with the relay and bright LED light you may find the batteries go flat too soon if you leave the light on for too long. In this case, you could replace the battery pack with a 5VDC 1A or higher mains power adaptor.

You could turn other devices on and off using the relay. For example, you could control a 12V fan. As shown in the diagram here, you would use an external power supply (large battery or mains power adaptor) and have the positive power lead run through the relay. A word of caution: please keep to using low DC voltages only. NEVER handle AC mains power to avoid being electrocuted.


  • Check over all of the components and links that they go into the same holes as shown in the Fritzing diagram.
  • Ensure you are using fresh batteries.
  • Check that the microphone is in the correct way.
  • Check that the pins of the microphone are making contact with the breadboard
  • Make sure the 555 Timer IC and 4013 IC are in the correct way with the notches facing to the left.
  • Check that the capacitor is in the correct way
  • The microphone may be low spec and not sensitive enough. Try a microphone from another electronics retailer.