panzerschwein
New member
Hi all,
I am starting a project with a Teensy 3.1. I want to use acoustic signals to provide the approximate position to a vehicle, i.e. the opposite of sound localization. I have a Teensy 3.1, analog microphone with amplifier board, and a Teensy audio adapter board coming within the next few days.
The algorithm is currently as such:
1. Initialize
2. Sample at 44.1 kHz for 0.2 seconds (lets say every 10 seconds)
3. Perform cross correlation of known signal and recorded signal
4. Find peak of absolute value of cross correlation
5. Repeat 2-5
Right now I am having trouble with 2. I have been unable to get a fixed sampling rate using the ADC library (by pedvide). I think the audio adapter board may help with this.
Any suggestions and advice is much appreciated
Thanks,
Michael
I am starting a project with a Teensy 3.1. I want to use acoustic signals to provide the approximate position to a vehicle, i.e. the opposite of sound localization. I have a Teensy 3.1, analog microphone with amplifier board, and a Teensy audio adapter board coming within the next few days.
The algorithm is currently as such:
1. Initialize
2. Sample at 44.1 kHz for 0.2 seconds (lets say every 10 seconds)
3. Perform cross correlation of known signal and recorded signal
4. Find peak of absolute value of cross correlation
5. Repeat 2-5
Right now I am having trouble with 2. I have been unable to get a fixed sampling rate using the ADC library (by pedvide). I think the audio adapter board may help with this.
Any suggestions and advice is much appreciated
Thanks,
Michael