Electronic – arduino – Calculating Wavelength of sound using an Arduino

arduinomicrophonesoundultrasound

I'm using an Arduino Uno R3. I need to measure the wavelength of sound of a particular (known) frequency. By substituting in the equation:

Vsound = Frequency * Wavelength

…I wish to calculate the speed of sound in the medium. Since I'm new to Arduinos and electronics, I plan to use a speaker for generating the (known) frequency from the Arduino. I have an ADMP 401 microphone as well. But how do I process/calculate the wavelength of sound on the Arduino and push the output velocity to the serial monitor?

EDIT: Is it possible to simply take the audio recorded by the ADMP 401 microphone and push it to a computer via the serial bus?

Best Answer

Setup input amplifier so that the audio waveform is clipped into a square wave. Then feed this into a pin and use one of the frequency measurement libraries, such as this: http://interface.khm.de/index.php/lab/experiments/frequency-measurement-library/