Hello everyone,
I just got my first Teensy 4.1 and joined just the forum.
My project is to build a device that is able to locate an audio source, preferable mosquitos. For the moment I plan to use the Teensy as an audio interface. So I can use python for the signal analysis as this is the language I'm most familiar with.
So far I have mostly worked on increasing the sampling rate of the analog read. I am able to achieve a bit more then 40kHz with 4 channels at 10 bit resolution which correspons to the roughly 5µs it takes to perform an analogread(): https://forum.pjrc.com/threads/57683-Analog-read-on-Teensy-4-0-slower-(compared-to-Teensy-3-6)
The simplest audio localization via interferometry works via finding the minimum in the cross correlation between two microphones. This yields a time delay from which again you can calculate an angle. More on that:
https://en.wikipedia.org/wiki/Acoustic_location
https://www.youtube.com/watch?v=Z7X7lf6FdYY
For the moment I plan to use the Teensy effectively as an audio interface. So I can use python for the signal processing as this is the language I'm most familiar with. So far I have mostly worked on increasing the sampling rate of the analog read. I am able to achieve a bit more then 40kHz with 4 channels at 10 bit resolution which corresponds to the roughly 5µs it takes to perform an analogread(). Is there a way to parallelize analogread()? Unfortunately I don't know much about ADCs.
Currently I am using these microphones: https://www.adafruit.com/product/1063
I plan on updating this thread as I progress with the project. Tips are very appreciated.
I just got my first Teensy 4.1 and joined just the forum.
My project is to build a device that is able to locate an audio source, preferable mosquitos. For the moment I plan to use the Teensy as an audio interface. So I can use python for the signal analysis as this is the language I'm most familiar with.
So far I have mostly worked on increasing the sampling rate of the analog read. I am able to achieve a bit more then 40kHz with 4 channels at 10 bit resolution which correspons to the roughly 5µs it takes to perform an analogread(): https://forum.pjrc.com/threads/57683-Analog-read-on-Teensy-4-0-slower-(compared-to-Teensy-3-6)
The simplest audio localization via interferometry works via finding the minimum in the cross correlation between two microphones. This yields a time delay from which again you can calculate an angle. More on that:
https://en.wikipedia.org/wiki/Acoustic_location
https://www.youtube.com/watch?v=Z7X7lf6FdYY
For the moment I plan to use the Teensy effectively as an audio interface. So I can use python for the signal processing as this is the language I'm most familiar with. So far I have mostly worked on increasing the sampling rate of the analog read. I am able to achieve a bit more then 40kHz with 4 channels at 10 bit resolution which corresponds to the roughly 5µs it takes to perform an analogread(). Is there a way to parallelize analogread()? Unfortunately I don't know much about ADCs.
Currently I am using these microphones: https://www.adafruit.com/product/1063
I plan on updating this thread as I progress with the project. Tips are very appreciated.