cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Finding the time difference between signals in microphones.

AitchJee
Associate II

I am currently trying to use a stm32F767ZI to find the phase difference between a sound wave using three microphones. My plan is to use the three ADCs withDMA in simultanously mode to achieve high enough sampling time. My question is how to find the time at which each signal is sampled, so afterwards they can be filtered and compared to find the phase shift between the signals. My idea is to set one of the ADC as a master, and the other two as slaves, but im not really sure how to go from here.

Any advice will be taken with gratitude!

Regards AitchJee

2 REPLIES 2
Chris1
Senior III

Consider using a timer to trigger the ADCs at a precise rate. Then you will know the time elapsed between subsequent samples.

Set TIM to 100 KHz, get it to trigger the ADC, when tied together all will start sampling at same instance, all sample will be equally placed/paced

The machine is synchronous, so other clocks or timers, could be used to track time over the long term.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..