Hi community Im looking for a sensor with a mikrophone which alowes me to

Hi community

Im looking for a sensor with a mikrophone which alowes me to build something like a soundmeter. maybe based on the volume or so.

I had a Sound Sensor V2 from aliexpress but somehow it died when i clapped at him and tried to read the digital pin…

any sugestions?

Thanks

I’ve had great success with the Sparkfun MEMS microphone. It’s a 3.3V device, so you need to be careful when you hook it up and program it. Great amplification though.

@Andrew_Tuline ​ yeah Sparkfun’s microphone is great. I actually modified it to a mix of 2 different revisions of theirs and implemented it into my own custom PCB but in essence it is still the same sparkfun circuit. Totally worth the investment. I bought 3 of theirs :slight_smile:

So the sensor works again, it has digital out and analog out… if i read the digital out its either 1 or0 which seems to binary output after all… and the other is analog out which i probably shouldn’t hook directly to a pin on the teensy since the cable startet to get hot…

I have troubles how to read now the volume, i was expecting a number from 0 to 100 or so which indigiates the volume level

I didn’t have much luck with those aliexpress sound sensors.

Here’s a video I did with a few different sound reactive routines on a Nano using the MEMS microphone:

In the meantime, I’m now adding an Ultrasonic sensor to the mix.

thanks thats very nice… is it possible to make a vu meter with the mems microphone? I’m really unsure in how the analog read /digital read actually works. do you have any code samples?

Thats a video of a fade VU meter pattern running off of an attiny85 hooked to sparkfuns electret microphone. MEMS microphone should work the same

sadly i couldn’t pruchase the mems microphone… but the sound detector (SEN-12642) from sparkfun. My guess that one should work to right? but still i need some code examples how a vu meter is done with the analog read or the envelope which is still a analog signal… until now i have never worked with a analog signal…

Id be happy to share my code if itll help you out

Looks like you should be able to use it with just the VCC GND and AUD pins

https://plus.google.com/+CristianMartinez23/posts/U5vqCM6yPs2

Yeah or the envelope which should encapsulate the vu signal better but not 100 sure :wink: i looked at the producmt video from spark and they made a vu meter and wired up the envelope pin :wink:

Theres some links there that might help

Ive been so engulfed with my 3D printer i havent made any progress on my programming skills. Im still noob level lol

Thanks for the link i will look into it… I have more troubles in understanding how to interpret the values on the analog read :wink: