The determination of the speed of sound in air is a classical experiment, usually performed with a resonance tube apparatus. The measured value can be checked against Eq. (1), which describes the temperature dependence of the speed of sound in dry air. A modern implementation of this speed of sound investigation uses an Arduino Uno microcontroller board, an HC-SR04 ultrasonic distance sensor, and a DS18B20 temperature sensor. The distance sensor’s transmitter produces a burst of eight ultrasonic rectangular pulses that travel through the air, reflect on an object placed in front at a distance d, and then return to the sensor’s receiver after an echo time t. This Arduino investigation, unfortunately, is harder to perform than one might expect after a first reading of Ref. 1 or 2. In this article we discuss some sources of experimental errors that can complicate this laboratory activity, and we describe some important steps that must be included in the data collection and analysis procedure, in order to obtain successful results every time.

1.
Marcelo Dumas
Hahn
,
Frederico Alan de Oliveira
Cruz
, and
Paulo Simeão
Carvalho
, “
Determining the speed of sound as a function of temperature Using Arduino
,”
Phys. Teach.
57
,
114
115
(Feb.
2019
).
2.
M.
Oprea
and
Cristina
Miron
, “
Didactic experiments for determining the speed of sound in the air
,”
Romanian Reports in Physics
68
(
4
),
1621
1640
(
2016
).
5.
PC Services, Ultrasonic Distance Sensing Using HC-SR04, http://www.pcserviceselectronics.co.uk/arduino/Ultrasonic/.
6.
Calin
Galeriu
,
Scott
Edwards
, and
Geoffrey
Esper
, “
An Arduino investigation of simple harmonic motion
,”
Phys. Teach.
52
,
157
159
(March
2014
).
7.
Calin
Galeriu
, “
An Arduino investigation of Newton’s law of cooling
,”
Phys. Teach.
56
,
618
620
(Dec.
2018
).
9.
The Arduino program echo_time_temp.ino is provided as a supplemental online material and can be found at TPT Online, http://dx.doi.org/10.1119/10.0009993, under the Supplemental tab.

Supplementary Material

AAPT members receive access to The Physics Teacher and the American Journal of Physics as a member benefit. To learn more about this member benefit and becoming an AAPT member, visit the Joining AAPT page.