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!


•Arduino Uno

•5mm LED

•Microphone Module

<p>High, very nice work.<br> Very elegant Coding.<br>Do you have some tips for adjusting the microphone?<br>My microphone only reacts when i blow on it (some strange i think).<br>I would appreciate a little help, thanks alot and best Regards<br>Piet</p>
<p>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?</p>
<p>Interesting build! Here's an instructable on how to use the editor in case you want to get rid of that extra step at the end: <a href="https://www.instructables.com/id/How-to-Make-an-Instructable-Using-the-New-Editor/">https://www.instructables.com/id/How-to-Make-an-Ins...</a></p><p>Thanks for sharing!</p>
Nice project! <br>I like how simple yet effective the program works.
<p>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!! </p>
Nice work!

About This Instructable




Bio: 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 ... More »
More by Robotix_au:Memory Trainer in Python LIGHT SABRE GAME in Sratch Button LED Input/Output Circuit 
Add instructable to: