I would like to create an Arduino based project that detect ambient noise in a room. I have an addressable LED strip (using FastLED) with a total of 60 LEDs. I would like to turn LEDs on based on the noise level where normal chatter would be a hue of green, higher noise would have yellow and very loud room shared of red. I have attached an image to show that.
The microphone module I have seems to give me high/low only rather than levels. Could you please recommend an appropriate microphone module for this? I am based in the UK.
Also, would you be able to recommend some sample code that could be modified/used to create the color bar based on a given value? For example if noise level is 48 (range 0-60) then LED strip would have all of the green hues and some of the yellow ones turned on.
Hi,
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
What is your sound sensor?
Picture or link to data/spec.
TomGeorge:
Hi,
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
What is your sound sensor?
Picture or link to data/spec.
The board has a pot that sets the audio level threshold, sound louder than that gives a LOW.
You do not have a live audio output to the arduino, only this threshold detection signal.
This link, from destructibes, shows a "method" to get some sort of level measurement, but it also explains that the output is a threshold level, not a live level output.
Thank you for your reply. I tried the code on the link you shared. I am getting only 2-3 variations on the sound level codes so I do not believe this would work for me. Raising the ambient noise (TV volume) didn't make much difference. This project is for a school teacher to show classroom noise level so I think I need a different sound sensor with much more granular read. Would you be able to recommend the correct type? Would the one linked below work?