Go Down

Topic: Electret Microphone with Arduino (Read 2 times) previous topic - next topic

iRagDoll

I had posted on this same issue on the old forum, but never followed up to it because I got caught up with another project. Now I am back with this project and will follow up this time.

Old Post: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1294526279

I still have found no success using the Sparkfun Electret Microphone Board which can be found here: http://www.sparkfun.com/products/9964

And again, my whole objective is to be able to distinguish between gun shots and regular talking. Right now, I have tried the code that was posted on the old forum but found no success as well.

Also to note, I added a capacitor, diode, and resistor (suggestion from the old post) to make the circuit similar to the one found here: http://wiring.org.co/learning/basics/microphone.html

Any help will be much appreciated and will get a response very quickly!

Schmidtn

I've never used the sensor you're working with, but I have used this Parallax sensor;
http://www.parallax.com/Store/Sensors/PressureFlexRPM/tabid/177/CategoryID/52/List/0/SortField/0/Level/a/ProductID/614/Default.aspx
It comes with a 1K pot for changing the sensitivity of the mic.  From the linked page you can get the schematic and see if you can hack the PCB to put a pot on it and adjust the sensitivity, then make a gun shot pin high and everything else isn't even noticed.

CrossRoads

#2
Feb 06, 2011, 01:58 am Last Edit: Feb 06, 2011, 02:02 am by CrossRoads Reason: 1
Do you know the mic actually works?
Go here, download Visual Analyzer, and see if you can see any output from the mic into your soundcard mic input.
http://www.sillanumsoft.org/
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

iRagDoll

Yes the mic works... Also, because of the time constraint, purchasing any extra sensors will take too long so it is most likely not possible.

However, if I cannot find any other solutions with the mic I have by Monday, I will definitely buy the Parallax Sensor.

CrossRoads

Visual Analyser is a free download, just need a 1/8" stereo plug to plug into your PC, use that to view the audio out & see if the big bumps from loud noises are coming thru as intended.
Take a look at the signal you are measuring - is your amplification too much so that your output is cilpping at 5V and staying there, thus leading to your 1023 reading?
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up