Clappy: the Clap Controlled Lamp

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/...

Be the First to Share

    Recommendations

    • Game Design: Student Design Challenge

      Game Design: Student Design Challenge
    • Big and Small Contest

      Big and Small Contest
    • For the Home Contest

      For the Home Contest

    2 Comments

    0
    randofo
    randofo

    2 years ago

    I'm not seeing any code in step 3.