DIY Clapper is 1980s Style With Raspberry Pi Twist

DIY Clapper is 1980s Style With Raspberry Pi Twist | Hackaday

Home automation isn’t all that new. It is just more evolved. Many years ago, a TV product appeared called the Clapper. If you haven’t heard of it, it was basically a sound-operated AC switch. You plug, say, a lamp into the device and the clapper into the wall and you can then turn the lamp on or off by clapping. If you somehow missed these — and you can still get them, apparently — have a look at the 1984 commercial in the video below. [Ash] decided to forego ordering one on Amazon and instead built her own using a Raspberry Pi.

[Ash’s] prototype uses an LED and could — in theory — drive anything. If you wanted to make a real Clapper replacement you’d need a relay or some other kind of AC switch suitable for the load. The actual clap detection software is from [nikhiljohn10] and simply waits for two loud noises. No fancy machine learning to differentiate between a clap and a cat knocking over a vase. Just a threshold and some timing.

Of course, the Pi can’t hear anything unless you add a microphone. However, it is easy enough to add a USB microphone since the Linux kernel will handle that easily. The pyaudio library gives you an interface between code and the microphone.

We were thinking since the whole thing is a script, it would be easy to also provide some audio feedback. For that matter, you could monitor the state with an e-mail. It might be interesting to provide some other interface — like a web page — that could also switch the load on and off. Or perhaps do different actions in response to two claps, three claps, or four claps. There’s a lot of possibilities.

If you want to know how a real Clapper works, look no further than this. If you want to see a super Clapper, head over to Hackaday.io.

2 thoughts on “DIY Clapper is 1980s Style With Raspberry Pi Twist

  1. I’ve got one somewhere but have found no use for it. Same reason I don’t have a AmazonSpyBot.

    I do like to “clap off” candles. My wife can’t figure it out; you just have to practice and get a jet of air shooting out of the axis of your index fingers. Maybe I should do a video demo.

Leave a Reply Cancel reply

Fill in your details below or click an icon to log in:

DIY Clapper is 1980s Style With Raspberry Pi Twist | Hackaday

You are commenting using your WordPress.com account. Log Out /  Change )

DIY Clapper is 1980s Style With Raspberry Pi Twist | Hackaday

You are commenting using your Google+ account. Log Out /  Change )

DIY Clapper is 1980s Style With Raspberry Pi Twist | Hackaday

You are commenting using your Twitter account. Log Out /  Change )

DIY Clapper is 1980s Style With Raspberry Pi Twist | Hackaday

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.