Double Clap LED Switch

What It Does

Using assets from Abid, I created a double clap LED light switch, using an Arduino Leonardo, a breadboard, a few cables, a simple microphone, and an LED. When you clap twice, the led turns on. Clap twice again, and the LED light will turn off.

This is a project I did that I wanted to use for my house, but unfortunately, I had to do it for school...

Using this simple clap switch, you could hook up a system where if you clap twice, you can choose to do an array of things, including but not limited to:

  • The lights in your house
  • Monitor backlights
  • Nightlights
  • Meme Reviews without the editing

Step 1: How to Make It - Step One: Materials

For this project, the very basic materials you will need is:

  1. An Arduino board of any type, for this project I used an Arduino Leonardo,
  2. An Arduino breadboard,
  3. A microphone, it can be a 3-pin or 4-pin mic, as long as it has an analog output, which is what I used for this project.
  4. 8 wires, usually included with an Arduino kit,
  5. A LED light of any color.
  6. A resistor (for the LED light)

Step 2: How to Make It - Step 2: Physical Construction

It should look a little something like this...

>>>DO NOTE THE BUTTON DOES NOTHING, IT'S A LEFTOVER FROM MY PREVIOUS PROJECT<<<

Written Instructions:

Step 1: Connect one wire from the 5v pin to the + pin on the breadboard, and the wire from the ground pin to the - pin on the breadboard.

Step 2: Connect up a simple LED light circuit, a diagram is shown above.

Step 3: Wire up the microphone, a diagram is shown above, as well as pictures of the mic and the finished circuit.

ta da you done

Step 3: How to Make It - Step 3: Code

This is the code, originally made by,

https://abidcg.blogspot.com/2019/05/clap-switch-wi...

Share

    Recommendations

    • Frozen Treats Challenge

      Frozen Treats Challenge
    • Classroom Science Contest

      Classroom Science Contest
    • Beauty Tips Contest

      Beauty Tips Contest

    Discussions