2 Minute Clap Switch

About: I am robotics engineer and a teacher whose passion in life is breaking down the maths and academic jargon of programming and robotics into something that everyone can understand, primary school kids include...

This simple 3 component circuit can be used as a microphone alarm or as a light switch. The way the alarm program works is that it detects changes in sound level and then triggers the light to come on for 5 seconds once the sound level has gone up by 2 or more units.

The light switch works in a similar way except that every time loudness level changes by more than 2 a boolean changes state thus turning the LED on if it was off or off if it was on!

Components:

•Arduino Uno

•5mm LED

•Microphone Module

Share

    Recommendations

    • Sew Tough Challenge

      Sew Tough Challenge
    • Backyard Contest

      Backyard Contest
    • Sensors Contest

      Sensors Contest

    6 Discussions

    0
    None
    piet parker

    2 years ago

    High, very nice work.
    Very elegant Coding.
    Do you have some tips for adjusting the microphone?
    My microphone only reacts when i blow on it (some strange i think).
    I would appreciate a little help, thanks alot and best Regards
    Piet

    0
    None
    markosioa

    3 years ago

    Wow! nice and simple! Could I do this with any simple arduino microphone breakout unit? What should I change if I would add my 5metres of LED strip light?

    0
    None
    kuukske

    4 years ago

    Nice project!
    I like how simple yet effective the program works.

    2 replies
    0
    None
    Robotix_aukuukske

    Reply 4 years ago on Introduction

    Yea took a while to get the calibration and the Serial port out of it. . . . and when you teach programming to 11 and 12 year olds... simplicity is the way forward!!