Introduction: Clappy: the Clap Controlled Lamp
The main thing is the code, it uses Booleans. When we clap, the sound sensor sends a HIGH signal and it makes our relay status True or False.
2-channel relay (any would work by the way)
Lamp (any, but one with a switch will be easier to use)
USB Type-A to Type B cable (Arduino cable)
5V 1A adapter (a normal phone charger would work too)
Hot glue gun (to stick the components)
Screwdriver and pliers (to open the lamp and get access to the wiring and all...)
Step 1: Attaching the Relay to the Lamp
1. Open the lamp and take out the on/off switch
2. Remove the switch and connect the relay instead of the switch as shown in the circuit diagram
Step 2: Connections
4. Connect as per the diagram
Step 3: Upload the Code
Download the code and upload it!!
This is the link for the code.
Step 4: (Optional) Beautification
Make a closure for the electronics so that it doesn't look like a rat's nest.
Now it is ready to use!!!!!!
Thank you for viewing this project
Also visit my blog: https://phoenixzx200.blogspot.com/
And see this project on the Arduino project hub: https://create.arduino.cc/projecthub/phoenixzx200/...