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
- Recording a sound with a microphone and finding its frequencies from a spectrum (Audacity: Analyze ▸ Plot Spectrum).
- Deciding which peak in a spectrum is the one you want, and checking that choice against a prediction before trusting it.
- Judging a realistic frequency uncertainty from the spectrum's resolution and from repeated trials (half the range).
- Plotting a graph with uncertainty bars in both directions and using its gradient and intercept, with the steepest and shallowest lines.
- Comparing a result with an expected value, and evaluating the systematic effects that repeats cannot reveal.
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:
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
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,
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
- Straight drinking straws without a bendy section (plastic, or good-quality paper straws), at least 25 cm long: your own set, not shared
- Sharp scissors and a ruler with millimetre divisions (a metre rule or a 30 cm ruler)
- Laptop with a built-in or plug-in microphone and Audacity installed (free), or a phone with a recording app (then copy the file to a laptop)
- Thermometer for the room temperature
- Optional: Vernier Microphone with an interface and Logger Pro 3 (see the alternative in section 6)
- Optional (Extension E1): a small piece of Blu-Tack, or your own fingertip, to close one end
Safety:
- Hygiene: use only your own straws. Never share, swap or reuse another person's straw. Write your initials near one end of each straw, and throw them away (or into recycling) at the end of the lesson.
- Blow gently. Blowing hard for a long time can make you light-headed: stop and breathe normally between recordings, and sit down if you feel dizzy.
- Take care with scissors: cut straws on the bench, not in your hand towards your body.
- Keep the volume of any playback low, and keep drinks away from the laptop.
4. Before the lab
Uncertainties
- Straw length $L$: measured with a millimetre ruler, which needs two readings (one at each end), so ± 0.5 mm + 0.5 mm = ± 1 mm. Check that the cut is square: if one side of the cut end is longer than the other, measure the average length and use a larger uncertainty.
- Frequency resolution of the spectrum: Audacity splits the frequency range into narrow "bins". The bin width is the sample rate divided by the Size chosen in the Plot Spectrum window, for example 44 100 Hz ÷ 8192 ≈ 5.4 Hz, or 44 100 Hz ÷ 16 384 ≈ 2.7 Hz. The peak frequency cannot be read more precisely than about one bin width. A larger Size gives finer bins but needs a longer steady recording (Size 16 384 needs at least 0.37 s of sound at 44 100 Hz).
- Repeated trials: your note will not be identical each time (how hard you blow and where your lip is can shift the peak slightly). Record each straw three times and use the mean, with $\Delta f = \dfrac{\text{max} - \text{min}}{2}$. For example, 1115 Hz, 1124 Hz and 1120 Hz give $f_1 = (1120 \pm 5)$ Hz. If the half range is smaller than the bin width, use the bin width instead: the realistic uncertainty is the larger of the two.
- $1/f_1$: for the graph you need $1/f_1$ and its uncertainty. The percentage uncertainty is the same as for $f_1$: $\Delta(1/f) = \dfrac{\Delta f}{f} \times \dfrac{1}{f}$.
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
- Measure and record the room temperature below. Use it to work out the expected speed of sound from $v \approx 331 + 0.6\,\theta$.
- 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.
- 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.)
- 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).
- Work in the quietest place you can: fans, talking and other groups' straws all show up in the spectrum.
- 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
- 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.
- With the mouse, select about 1 s from the steadiest middle part of the recording (avoid the start and end of the note).
- 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.
- 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.
- 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.
- Repeat the recording twice more for the same straw (three trials in total), and record all three values of f1 in Table 2.
- 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.
- 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.
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
- 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).
- 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:
- $v = 2 \times \text{gradient}$ and $\Delta v = 2 \times \Delta\text{gradient}$ (the gradient's unit, m / s, is the same as $\text{m s}^{-1}$);
- $e = -\text{intercept}/2$, with $\Delta e = \Delta\text{intercept}/2$ as a rough uncertainty (beyond the syllabus).
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.