S16 · Lesson 20 · Radiation and localization lab
A baffled piston's exact on-axis pressure with its near-field maxima, the sidelobes of a steered line array found by scanning, a fractional delay recovered by cross-correlation and parabolic interpolation, and a source located from time differences by Gauss–Newton
Lessons 15 to 19 gave radiation and reception in their far-field, ideal forms. Real measurements happen near sources, arrays have sidelobes that matter, delays fall between samples, and a position comes from several noisy delays at once. In this lab you'll compute a piston's pressure right down to its face, an array's worst sidelobe, a sub-sample delay between two recorded signals, and a source's position from four microphones.
- The curve is the on-axis pressure amplitude of a baffled piston of radius a, relative to , against distance in units of , for the ka on the slider.
- Close in, the pressure oscillates between zero and its maximum as contributions from the center and edge interfere; the last maximum lies near , and beyond it the pressure falls as 1/r.
- Measurements meant to represent the far field must be taken well beyond that last maximum.
Predict
A 10 cm-radius piston radiates 3430 Hz (λ = 10 cm). Where along the axis is the last pressure maximum?
On axis the pressure is , largest where the path difference to the rim is half a wavelength: = (0.01 − 0.0025)/0.1 = 0.075 m, close to = 0.1 m. Task 1 confirms it and checks the far-field limit.
Name it
What the lab computes
- Piston on axis: , exact at every distance; far away it tends to .
- Arrays: the normalized array factor of N elements with spacing d steered to , with ; the highest sidelobe is found by scanning angles outside the main lobe () and outside any grating lobes.
- Delays: the integer lag that maximizes the cross-correlation , refined by a parabola through the peak and its two neighbors.
- Positions: given microphones at known positions and the measured delays of each relative to the first, find (x, y) minimizing the squared mismatch between predicted and measured range differences by Gauss–Newton iterations from a starting guess.
Check
Write piston_axis(a, f, U, r), the exact on-axis pressure amplitude in air (ρ = 1.21 kg/m³, c = 343 m/s).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write array_factor(N, kd, st, th) (angles in radians) and max_sidelobe(N, kd, st=0) in dB, scanning 20,000 angles.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write xcorr_delay(x, y, maxlag=20): the delay of y relative to x in samples, with parabolic interpolation.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write locate(mics, tdoa, c=343.0, guess=(0.0, 0.0)): the 2D source position from delays of microphones 2, 3, … relative to microphone 1, by Gauss–Newton.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does a piston's on-axis pressure oscillate near its face but fall smoothly as 1/r far away?
Every part of the piston sends a wavelet to a point on the axis, and their path lengths range from r for the center to for the rim. Close to the face that range spans several wavelengths, so as the point moves the contributions add and cancel in turn, giving maxima and nulls. Far away the range shrinks below half a wavelength, all the contributions arrive nearly in phase, and the piston acts as a single source whose pressure falls as 1/r. The changeover, near , marks where the far-field formulas, directivity patterns included, begin to apply.