Acoustic time-of-flight speed measurement (source code)

= Acoustic time-of-flight speed measurement
{title2=$c=d/\Delta t$}

The experiment in <A time of flight method to measure the speed of sound using a stereo sound card by Carlos C. Carvalho and others> makes <wave speed> visible as a delay. Two powered <microphones> feed separate channels of one stereo line input. A clap beyond one end of their common axis reaches the nearer <microphone> first. The displayed <signals> show two separated onsets when enlarged; count their sample separation $N$ to obtain $\Delta t=N/f_s$ and infer <speed of sound> $c=d/\Delta t$ from the measured <microphone> spacing $d$. The reported <sampling rate> is $44100\,\mathrm{s^{-1}}$. Repeating at different spacings gives a distance-versus-delay plot whose slope estimates <speed of sound>; dependence on distance helps identify acoustic travel rather than a fixed electronic delay. These are the paper's apparatus and observed readout, not measurements made for this article.<A time of flight method to measure the speed of sound using a stereo sound card by Carlos C. Carvalho and others>{ref}

A controlled implementation also needs <timing calibration for acoustic speed measurements>. Put the <microphones> side by side to estimate the channel-delay offset $\tau_0$, swap channels to check its sign, and check the acquisition clock against an independent timing reference. Measure spacings between consistent points on the <microphones>, keep the source outside their span and on their axis, and fit $\Delta t=d/c+\tau_0$ by <linear regression> rather than forcing a zero intercept. Repeat pulses and compare the same onset criterion before reflections arrive. These are proposed calibration and control checks, not additional procedures claimed for the paper.

One sample corresponds to $1/f_s\simeq22.7\,\mathrm{\mu s}$ for the reported <sampling rate>, so a delay of only a few samples has large relative <measurement error>. Background <measurement noise>, different <microphone> responses and threshold choice can move the apparent onset; reflections can supply a later competing pulse. Record <temperature>, keep air motion small, and compare several spacings. The result estimates <speed of sound> under those conditions; it cannot prove an exactly zero precursor below the instrument's sensitivity or establish <finite propagation speed> for every real medium. Both new diagrams in these sections show explicitly synthetic ideal <wave equation> solutions.<A time of flight method to measure the speed of sound using a stereo sound card by Carlos C. Carvalho and others>{ref}