Low-cost ultrasonic distance measurement in a mechanical resonance experiment
Pith reviewed 2026-05-25 18:53 UTC · model grok-4.3
The pith
Low-cost ultrasonic sensors with lag compensation enable resonance curve measurements in student labs.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The authors demonstrate that the position of the two ends of a driven damped spring oscillator can be measured using inexpensive ultrasonic sensors and microcontrollers, with a modified Savitzky-Golay filter to correct for sensor response lag, enabling the acquisition and wireless transfer of data suitable for generating resonance curves in an educational setting.
What carries the argument
The modified Savitzky-Golay filter that compensates for sensor lag in the ultrasonic position measurements.
Load-bearing premise
The ultrasonic sensors and lag compensation provide position data accurate enough for students to plot reliable amplitude and phase lag curves as a function of driving frequency.
What would settle it
Measuring the same resonance experiment with a calibrated high-precision position sensor and comparing the resulting amplitude and phase curves would test whether the low-cost system yields equivalent results.
Figures
read the original abstract
We present a low-cost, dual-probe position sensor in a mechanical resonance experiment suitable for deployment in large lab courses with multiple stations. The motion of the two ends of a driven, damped spring oscillator is recorded with US-100 ultrasonic distance sensors and ESP8266 microcontrollers. Sensor lag is compensated via a modified Savitzky-Golay filter. Data is downloaded to a computer via Wi-Fi in a format suitable for analysis in Logger Pro. Due to the simple and fast data acquisition process, students can gather sufficient data to plot curves of the amplitude and phase lag as a function of driving frequency.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript describes a low-cost dual-probe ultrasonic position measurement system for a mechanical resonance experiment. It uses US-100 sensors paired with ESP8266 microcontrollers to record motion at both ends of a driven, damped spring oscillator, applies a modified Savitzky-Golay filter to compensate for sensor lag, and transfers data via Wi-Fi to a computer for analysis in Logger Pro. The goal is to enable students in large lab courses to collect sufficient data for plotting amplitude and phase lag versus driving frequency.
Significance. If the residual errors after lag compensation prove negligible for the target measurements, the setup would offer a practical, inexpensive alternative to commercial sensors, supporting scalable hands-on resonance experiments without requiring expensive equipment per station.
major comments (2)
- The central pedagogical claim—that the US-100 + ESP8266 system with the described filter yields position time series accurate enough for students to extract reliable amplitude and phase-vs-frequency curves—is unsupported by any validation data, error analysis, or comparison against a reference instrument. This absence is load-bearing because the manuscript supplies no quantitative demonstration that residual lag or measurement uncertainty remains below the threshold needed for the intended student analysis.
- No assessment is provided of potential systematic effects such as acoustic crosstalk between the two co-located ultrasonic sensors, temperature dependence of sound speed, or range limitations of the US-100 at the amplitudes typical of the resonance experiment. These factors directly affect whether the dual-probe configuration can deliver independent, accurate traces at both ends of the oscillator.
minor comments (2)
- The description of the modified Savitzky-Golay filter would benefit from an explicit statement of the window size, polynomial order, and the precise lag-compensation step (e.g., forward prediction or time-shift adjustment) so that readers can reproduce the correction.
- A parts list with current prices and a wiring diagram (even if schematic) would improve reproducibility for instructors setting up multiple stations.
Simulated Author's Rebuttal
We thank the referee for their careful reading and constructive comments on our manuscript. We address each major comment below and will revise the manuscript accordingly to strengthen the validation of the sensor system.
read point-by-point responses
-
Referee: The central pedagogical claim—that the US-100 + ESP8266 system with the described filter yields position time series accurate enough for students to extract reliable amplitude and phase-vs-frequency curves—is unsupported by any validation data, error analysis, or comparison against a reference instrument. This absence is load-bearing because the manuscript supplies no quantitative demonstration that residual lag or measurement uncertainty remains below the threshold needed for the intended student analysis.
Authors: We acknowledge that the manuscript does not include direct validation against a reference instrument or quantitative error bounds on residual lag after compensation. To address this, the revised manuscript will add a new section presenting comparisons of US-100 measurements to a calibrated linear potentiometer over multiple oscillation cycles, along with an error analysis (RMS deviation and phase uncertainty) demonstrating that residuals remain below the level needed for reliable student extraction of amplitude and phase curves. revision: yes
-
Referee: No assessment is provided of potential systematic effects such as acoustic crosstalk between the two co-located ultrasonic sensors, temperature dependence of sound speed, or range limitations of the US-100 at the amplitudes typical of the resonance experiment. These factors directly affect whether the dual-probe configuration can deliver independent, accurate traces at both ends of the oscillator.
Authors: We agree these systematic effects require explicit assessment. The revised manuscript will include new measurements and discussion of (i) acoustic crosstalk by comparing single-sensor vs. dual-sensor operation, (ii) temperature dependence via controlled calibration runs, and (iii) range limitations tested across the amplitude range used in the resonance experiment. These will be shown to be either negligible or correctable within the experimental protocol. revision: yes
Circularity Check
No significant circularity
full rationale
The manuscript is an instrumentation note describing a low-cost ultrasonic sensor setup with ESP8266 microcontrollers and a modified Savitzky-Golay filter for lag compensation in a driven spring oscillator. It supplies parts lists, wiring, filter details, and data export format but contains no derivations, predictions, fitted parameters presented as results, or load-bearing self-citations. The central claim is pedagogical feasibility of the hardware chain, which rests on explicit implementation choices rather than any reduction to its own inputs.
Axiom & Free-Parameter Ledger
Reference graph
Works this paper leans on
-
[1]
author author W. Bauer \ and\ author G. D. \ Westfall ,\ @noop title University Physics ,\ edition 2nd \ ed.\ ( publisher McGraw-Hill ,\ year 2014 )\ pp.\ pages 451--452 NoStop
work page 2014
-
[2]
author author R. W. \ Pohl ,\ @noop title Einführung in Mechanik, Akustik und Wärmelehre (in German) \ ( publisher Springer ,\ year 1944 )\ p.\ pages 188 NoStop
work page 1944
-
[3]
author author PHYWE ,\ @noop title Forced oscillations -- P ohl's pendulum, https://www.phywe.com/en/forced-oscillations-pohl-s-pendulum.html , \ ( year retrieved June 2019 ) NoStop
work page 2019
-
[4]
author author J. Olson ,\ 10.1119/1.2343507 journal journal The Physics Teacher \ volume 30 ,\ pages 188 ( year 1992 ) NoStop
-
[5]
author author P. W. \ Laws , author R. B. \ Teese , author M. C. \ Willis , \ and\ author P. J. \ Cooney ,\ @noop title Physics with Video Analysis \ ( publisher Vernier Software &\ Technology ,\ address Beaverton, OR ,\ year 2009 ) NoStop
work page 2009
-
[6]
author author C. Galeriu ,\ 10.1119/1.4792011 journal journal The Physics Teacher \ volume 51 ,\ pages 156 ( year 2013 ) NoStop
-
[7]
author author I. R. \ Gatland , author R. Kahlscheuer , \ and\ author H. Menkara ,\ 10.1119/1.16846 journal journal Am. J. Phys. \ volume 60 ,\ pages 451 ( year 1992 ) NoStop
-
[8]
author author C. Galeriu , author S. Edwards , \ and\ author G. Esper ,\ 10.1119/1.4865518 journal journal The Physics Teacher \ volume 52 ,\ pages 157 ( year 2014 ) NoStop
-
[9]
author author A. M. B. \ Goncalves , author C. R. \ Cena , \ and\ author D. F. \ Bozano ,\ 10.1088/1361-6552/aa6cf0 journal journal Physics Education \ volume 52 ,\ pages 043002 ( year 2017 ) NoStop
-
[10]
author author A. A. \ Moya ,\ 10.1088/1361-6552/aad4c6 journal journal Physics Education \ volume 53 ,\ pages 055020 ( year 2018 ) NoStop
-
[11]
author author F. Bouquet , author J. Bobroff , author M. Fuchs-Gallezot , \ and\ author L. Maurines ,\ 10.1119/1.4972043 journal journal Am. J. Phys. \ volume 85 ,\ pages 216 ( year 2017 ) NoStop
-
[12]
author author C. M. \ Lavelle ,\ 10.1119/1.5026595 journal journal Am. J. Phys. \ volume 86 ,\ pages 384 ( year 2018 ) NoStop
-
[13]
author author W. C. \ Bensky ,\ 10.1119/1.5051157 journal journal The Physics Teacher \ volume 56 ,\ pages 393 ( year 2018 ) NoStop
-
[14]
@noop title Arduino S oftware ( IDE ) , \ howpublished https://www.arduino.cc/en/Main/Software ( year retrieved May 2019 ) NoStop
work page 2019
-
[15]
author author A. Mellinger ,\ @noop title https://github.com/amellinger/Dual-head\_ultrasonic\_rangefinder , \ ( year 2019 ) NoStop
work page 2019
-
[16]
author author A. Savitzky \ and\ author M. J. E. \ Golay ,\ @noop journal journal Analyt. Chem. \ volume 36 ,\ pages 1627 ( year 1964 ) NoStop
work page 1964
-
[17]
@noop title 3 , \ howpublished Vernier Software, https://www.vernier.com/products/software/lp/ ( year retrieved June 2019 ) NoStop
work page 2019
-
[18]
author author D. Pilling ,\ @noop title HC-SR04 ultrasonic distance/liquid level measuring , \ howpublished https://www.davidpilling.com/wiki/index.php/HCSR04 ( year retrieved June 2019 ) NoStop
work page 2019
-
[19]
author author P. A. \ Gorry ,\ 10.1021/ac00205a007 journal journal Analytical Chemistry \ volume 62 ,\ pages 570 ( year 1990 ) NoStop
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.