Experimental programme › Practicals › The speed of sound from drinking straws

The speed of sound from drinking straws

A lab with drinking straws and a microphone: blow gently across the end of a straw, record its faint whistle, and find the frequencies in the sound with Audacity, free sound-editing software. C.4 Standing waves and resonance

Aim: to find the first-harmonic frequency of straws (open at both ends) of at least six lengths, checking each against a prediction and against its 2nd harmonic; to determine the speed of sound in air, with its uncertainty, from the gradient of a graph of L against 1/f1, and estimate the end correction from its intercept; and to compare your value with the value expected at room temperature, evaluating the experiment.

Your lab report

Record your measurements, readings and answers on this page as you go. At the end, press Download my lab report to save everything in one Word file, then hand it in.

Important: your work is saved only in this browser, on this device. Don't clear your browsing data or switch devices before you download your report. Download it now and then as a backup.

1. Skills you will practise

2. Theory: resonance in a straw

Blow gently across the end of a drinking straw and you hear a faint, whistle-like note. The jet of air hitting the edge of the opening makes a noisy mixture of many frequencies.

Inside the straw, sound waves travel to the far end, reflect, and travel back through the oncoming waves. At certain frequencies the two waves superpose to give a standing wave in the air column, and the air resonates. Those frequencies are much louder than the rest, so you hear a clear note.

In air, the standing wave is described by the displacement of the air. At an open end the air is free to move, so there is a displacement antinode. At a closed end the air cannot move, so there is a node. (See C.4 Standing waves in pipes.)

In the main part of this lab the straw is open at both ends, so there is an antinode at each end. The simplest pattern, the first harmonic, has one node in the middle, so the length of the straw is half a wavelength:

$$L = \frac{\lambda_1}{2} \qquad\text{so}\qquad \lambda_1 = 2L$$

More generally, an open–open pipe fits $n$ half-wavelengths: $\lambda_n = \dfrac{2L}{n}$, with $n = 1, 2, 3, \ldots$ (every harmonic is possible). Using the data-booklet wave equation $v = f\lambda$, the first harmonic and the $n$th harmonic have

$$f_1 = \frac{v}{2L} \qquad\text{and}\qquad f_n = n f_1$$
The first harmonic in a straw of length L, open at both ends, drawn horizontally. Inside the straw, two mirror-image curves show the displacement amplitude of the air: widest at both ends and meeting at a point in the middle. A displacement antinode, labelled A, sits a short distance e just outside each end of the straw, where the curves are widest (the parts outside the straw are dashed). The node, labelled N, is in the middle. A N A L e e
The first harmonic in a straw open at both ends. The curves show how far the air moves back and forth along the straw (the displacement amplitude), not the shape of anything: a displacement antinode (A) at each open end and a node (N) in the middle. Beyond the syllabus: each antinode sits a small distance e outside the end (the end correction). It is exaggerated here: for a straw it is only about 2 mm.

End correction (beyond the syllabus). The antinode is not exactly at the open end: it sits a short distance $e$ just outside it. The guide says end corrections are not required, so you will not be examined on this. For a narrow pipe, $e$ is roughly 0.6 × the radius, about 2 mm for a straw.

With an antinode just beyond each end, the air column behaves as if it were $2e$ longer than the straw, so

$$f_1 = \frac{v}{2(L + 2e)}$$

Rearranging,

$$L = \frac{v}{2} \times \frac{1}{f_1} - 2e$$

So a graph of $L$ against $1/f_1$ should be a straight line with gradient = $v/2$ and a small negative intercept, $-2e$. The graph separates the speed of sound (the gradient) from the end effect (the intercept), so you do not need to know $e$ in advance.

The speed of sound depends on the air temperature. The approximation $v \approx 331 + 0.6\,\theta$ ($v$ in $\text{m s}^{-1}$, $\theta$ in °C) is not in the syllabus or the data booklet: it is given only so you have an expected value. At 20 °C it gives about $343\ \text{m s}^{-1}$.

3. Equipment and safety

Safety:

4. Before the lab

Uncertainties

Quote each uncertainty to 1 significant figure (usual), or 2 when the uncertainty itself is known precisely, with the value rounded to the same decimal place. See Physics skills.

5. Setting up

Set-up, side view: a straight drinking straw is held upright above the bench. The student's lower lip touches the straw just below its top end, and an arrow shows the air jet blowing across the top opening, away from the laptop. The bottom end of the straw is open. A laptop on the bench, about 10 to 20 cm from the straw, has its microphone at the top of the screen and runs Audacity. air jet lip straw open microphone Audacity 10–20 cm
Hold the straw upright with your lower lip just below its top end, and blow a gentle, steady air jet across (not into) the top opening, pointing away from the microphone. Both ends of the straw are open. Not to scale.
  1. Measure and record the room temperature below. Use it to work out the expected speed of sound from $v \approx 331 + 0.6\,\theta$.
  2. Cut your straws to seven lengths between about 0.08 m and 0.24 m, for example 0.08, 0.10, 0.12, 0.15, 0.18, 0.21 and 0.24 m. Cut off any bendy section first. Cut slowly, with the scissors at right angles to the straw, so the ends are square. Measure each straw's length L after cutting and record it in Table 1.
  3. Predict before you measure. For each straw, calculate the expected first-harmonic frequency, $f_1 \approx 340/2L$, and write it in Table 1. (For example, a 0.10 m straw should give about 1.7 kHz, and a 0.24 m straw about 0.7 kHz.)
  4. Open Audacity. Check that the project sample rate is 44 100 Hz (Audacity 3.2 and later: Audio Setup ▸ Audio Settings ▸ Project Rate; in older versions, at the bottom left of the window). Choose the laptop's microphone as the recording device, and set recording to mono (Audio Setup ▸ Recording Channels ▸ 1 (Mono); in older versions, in the device toolbar).
  5. Work in the quietest place you can: fans, talking and other groups' straws all show up in the spectrum.
  6. Practise making a note. Hold the straw upright, rest your lower lip against the straw just below the top end, and blow a gentle, steady stream of air across the opening (as you would to make a bottle hum), not down into it. Keep the straw about 10–20 cm from the microphone, and point the air jet away from it so that the jet does not hit the microphone. It may take a few tries to get a clear, steady note: change the angle of the straw and how hard you blow until it sounds clean.

Before you start

Table 1: predictions and checks. Fill in L and the predicted f1 now. Add f2 as you record each straw, and the last two columns at the end.

6. Collecting data

Recording and finding the first harmonic

  1. Press Record, blow a steady note for about 2 s with the longest straw, then press Stop. The waveform should show a steady band, not just a burst of noise.
  2. With the mouse, select about 1 s from the steadiest middle part of the recording (avoid the start and end of the note).
  3. Choose Analyze ▸ Plot Spectrum. Set Algorithm to Spectrum, Function to Hann window, Size to 8192 (or 16 384 if your selection is long enough) and Axis to Linear frequency. Move the cursor onto the tallest sharp peak and read its frequency from the Peak box at the bottom of the window.
  4. Compare this peak with your prediction in Table 1. The straw's first harmonic should be close to your prediction (within about 10 %). If the tallest peak is far from the prediction, look for a smaller peak near the predicted value: the tallest one may be noise, a hum in the room, or a higher harmonic.
  5. Look for the 2nd harmonic: a smaller peak at about twice the first-harmonic frequency. Record its frequency in Table 1. Finding it close to 2f1 is good evidence that you have chosen the straw's own note.
  6. Repeat the recording twice more for the same straw (three trials in total), and record all three values of f1 in Table 2.
  7. Repeat for every straw, going from the longest to the shortest. Check that the peak moves the expected way: each shorter straw must give a clearly higher frequency, roughly in inverse proportion to L. A peak that barely moves when L changes a lot is not the straw's note. If that happens, change how you blow (more gently, or with your lip in a slightly different place) and record again.
  8. Optional: in the Plot Spectrum window, choose Export… to save the spectrum as a text file, which you can open in a spreadsheet to look at the peak and its width more closely.
Sketch of a typical spectrum from Audacity's Plot Spectrum window: sound level against frequency. A jagged, noisy background runs across the whole range. There is one tall, sharp peak labelled f1, a smaller sharp peak at twice its frequency labelled f2, and an even smaller one at three times its frequency labelled f3. level f₁ f₂ f₃ 0 frequency
A sketch of a typical spectrum (Analyze ▸ Plot Spectrum): a noisy background with sharp peaks. Here the tallest is the first harmonic, f1, with smaller peaks near 2f1 and 3f1. In a real spectrum the tallest peak is not always the straw's note, so always check it against your prediction.

Table 2: readings. Fill in the mean, Δf1, 1/f1 and Δ(1/f1) for each straw as you go (see Uncertainties). Then go back to Table 1 and fill in f2/f1 and v = 2Lf1, using the mean f1.

Alternative: Vernier Microphone and Logger Pro 3

  1. Connect the Vernier Microphone to CH 1 of the interface and open Logger Pro 3. In Experiment ▸ Data Collection, set a sampling rate of 20 000 samples/s and a duration of about 0.2 s. The sampling rate must be more than twice the highest frequency in the sound: at 10 000 samples/s, the 3rd harmonic of the shortest straw (about 6.4 kHz) would appear at a false, lower frequency (aliasing).
  2. Collect while blowing a steady note, then choose Insert ▸ FFT Graph to show the spectrum, and read the peak frequency (Analyze ▸ Examine helps). The frequency resolution is about 1/duration, so 0.2 s of data gives about 5 Hz.

7. Your graph

The graph updates as you type. It starts with straw length $L$ on the vertical axis and $1/f_1$ on the horizontal axis. By the Theory, its gradient is $v/2$ and its y-intercept is $-2e$.

The graph tool uses one uncertainty for every point on each axis, so type the largest one (a cautious choice). Type your ΔL (0.001 m) in the vertical axis's uncertainty box. For the horizontal axis, Δ(1/f1) has the same percentage as Δf1, so type your largest percentage uncertainty in f1 with a % sign (for example 0.8%), or your largest Δ(1/f1). Then tick Steepest and shallowest lines: they pass through every uncertainty bar. Press Add this graph to my report to keep it.

The tool gives the gradient with its uncertainty, half the difference between the steepest and shallowest gradients, and the y-intercept with its uncertainty. It does not force the line through the origin, which matters here: the intercept is what tells you about the end correction. Then work out:

Results from your graph

8. Analysis

9. Extension

For E1 and E2, close the bottom end of at least four of your straws in turn and record each note again, as in section 6. Record your results in Table 3. Its graph starts with the closed f1 on the horizontal axis: set Plot to 1/x on that axis to plot L against 1/f1, and type the largest percentage uncertainty in f1 as before.

Standing waves in pipes, and why a pipe closed at one end has only odd harmonics, are in C.4 Standing waves and resonance.

Download your report

Your report will contain your measurements, all three tables, the graphs you added and all your answers. Open it in Word to check it, then hand it in.