While many people use off-the-shelf automation setups for their electrical appliances, Ash Puckett’s Raspberry Pi Clapper pays homage to the king of infomercial classics.
Build your own Raspberry Pi Clapper
Sometimes, the best Raspberry Pi projects don’t need thousands of lines of code and a makerspace full of tech to make an impact: Ash Puckett‘s Clapper uses only a Raspberry Pi and a USB microphone as a basis. After that, it’s up to you to integrate the device into whatever project you wish, from home lighting and security systems to entertainment consoles — really anything you can switch from one state to another, including a Raspberry Pi!
GitHub user nikhiljohn10’s clap detection script allows the USB mic to pick up the control clap. With the help of the RPi.GPIO and PyAudio libraries, Ash demonstrates that the Clapper works by turning on and off a red LED attached to the Pi.
You will find instructions for putting together the code and running it on your Pi on the project’s Howchoo page. Howchoo also hosts some of Ash’s other Raspberry Pi projects, including a music streaming device, a smart clock, and a Pi-powered calendar.
Try the Clapper
Why not give the Clapper a go, and let us know what you decide to use it for!
I, for one, will secretly set one up to mess with all the lights in the office — what could possibly go wrong?