Chapter 7: Creating a Clap Switch
When it comes to automating the home, one of the most desired features is often the ability to switch electronic devices on and off remotely (Colon, 2020). To address this, in this chapter – which covers the fifth project in this book – we will learn how to build a wireless electronic remote control to turn an LED on when two successive clapping sounds are detected using a simple microphone (clap switch). The next two successive clapping sounds detected will turn the LED off. The importance of having a switch clap remote control is that an electronic appliance can be turned on and off from anywhere in a room. This characteristic makes it of particular interest to the elderly or people with a motor disability.
This chapter will cover the following main topics:
- Connecting a microphone to a microcontroller board port
- Coding your clap switch sketch
- Coding a clap switch with two clapping sounds
- Coding a clap switch with...