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.
Supplies
Electronics:
Arduino Uno
2-channel relay (any would work by the way)
Sound sensor
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)
Jumper wires
Tools:
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!!
https://drive.google.com/file/d/1drL29-WzrkYBaKamF...
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/...
2 Comments
2 years ago
I'm not seeing any code in step 3.
Reply 2 years ago
Sorry for the inconvenience
this is the link for the code zip folder
https://drive.google.com/file/d/1drL29-WzrkYBaKamF...
i have also updated the instructable
thanks for pointing this out
Thank You
Hope you liked the project