Measure time delay of sound arrival

A catchall for PSoC5 discussions not captured by the other forums.

Moderator: ericb

Measure time delay of sound arrival

Postby srb0203 » Tue Apr 08, 2014 3:08 pm

I was wondering what is the best way to measure the difference in the arrival time of sound using two mics. Basically 2 mics would be listening for a sound and I should be able to tell which mic received the sound first. I will be using PSoC 5.

Thank You
Posts: 1
Joined: Tue Apr 08, 2014 3:03 pm

Re: Measure time delay of sound arrival

Postby bobmarlowe » Tue Apr 08, 2014 10:38 pm

Stage 1: Signal conditioning by amplifying and integrating the incoming sonar wave to get a clear digital signal.
Stage two: Two free-running Timers or Counters fed with a high frequency (depending on your required accuracy). The "Capture" input is connected to the signal derived from stage 1. Interrupt-driven the captured values are red-out and analyzed.

User avatar
The Big Cheese
The Big Cheese
Posts: 1490
Joined: Thu Oct 06, 2011 2:03 am
Location: Germany

Re: Measure time delay of sound arrival

Postby danadak » Wed Apr 09, 2014 4:29 pm

There are many factors on how to do this. Ambient noise, acoustics, etc.

More sophisticated approaches use correlation to examine the phase delay between
the source in a noisy environment. Google the problem, lots of resource on web.

This might be useful -

Simpler approaches use a gated source, and receive side simple comparators with an
agc loop to comp for distance, signal strength.

Regards, Dana.
Field Application Engineer
KB1RHB Mostly listen :)
Semi Retired
User avatar
The Big Cheese
The Big Cheese
Posts: 2008
Joined: Thu Dec 27, 2007 8:42 am
Location: New Hampshire

Return to “%s” PSoC5 General

Who is online

Users browsing this forum: No registered users and 0 guests