Go Down

Topic: processing audio data with pulseIn (Read 233 times) previous topic - next topic

ardugero

Hello,
i have the following problem and I need to sort it out ;-)

A SD card contains a wav file with a train of audio pulses with changing pulse durations. (It was received from a balloon tracker by a radio receiver. So the pulses can be noisy.)
After storing the wav in the arduino buffer, the arduino should process the pulse train such that it provides the pulse duration for consecutive time steps. The emerging data then should be stored in a separate file

Is there a way to use the built-in function pulseIn() for this purpose?  How can one process a wav file in the described manner?

Any input or idea is welcome :-)

Grumpy_Mike

Quote
Is there a way to use the built-in function pulseIn() for this purpose?
No. The pulseIn function only times live signals coming in to a pin, not signals from a WAV file.

Quote
How can one process a wav file in the described manner?
Not on an Arduino.
Get a copy of Audacity ( free ) and use it to clean up your audio signal.

If you can get it to clean up then use a language called processing to access the file and count the number of samples the pulse is high and low. You can then write some code to turn it into telemetry.

ardugero


Go Up