Technical requirements
The hardware components that will be needed to develop the clap switch are as follows:
- One breadboard
- One electret microphone FC-04 module
- Seven male-to-male jumper wires
- One LED
- One 220-ohm resistor
- A 5-volt power source
These components are very common, and there will be no problems in getting them easily. On the software side, you will require the Arduino IDE and the GitHub repository for this chapter: https://github.com/PacktPublishing/DIY-Microcontroller-Projects-for-Hobbyists/tree/master/Chapter07
The Code in Action video for this chapter can be found here: https://bit.ly/3h2xjQu
To supply the power source, you can use power adapters (Figure 7.1) that fit into the breadboard rails (these power adapters or breadboard power supplies are common and can be purchased at a low price in online stores), can be jumpered to provide 3.3 or 5 volts, and include an on/off button: