2020-01-06 01:36 PM
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
2020-01-06 02:24 PM
Consider using a timer to trigger the ADCs at a precise rate. Then you will know the time elapsed between subsequent samples.
2020-01-06 02:31 PM
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.