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.



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


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:

And see this project on the Arduino project hub:

Be the First to Share


    • 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 years ago

    I'm not seeing any code in step 3.