In introductory physics laboratories, spring constants are traditionally measured using the static method. The dynamic method, via vertical spring-mass oscillator, that uses a stopwatch in order to measure the period of oscillations is also commonly employed. However, this time-measuring technique is prone to human errors and in this paper we present a similar setup, except for the motion timer being the B-field sensor of a smartphone, in order to measure the period of oscillations and thus the spring constant. The smartphone device as an introductory physics experimental tool is quite well established. For instance, the smartphone-based acceleration sensor has been employed in a rather quick measurement of the acceleration due to gravity and in analyzing simple pendulum phenomena. In addition, the magnetic field sensor of the smartphone device has been effectively used as well in measuring average angular velocity and the acceleration due to gravity.

1.
C.
Countryman
. “
Familiarizing students with the basics of a smartphone’s internal sensors
.”
Phys. Teach.
52
,
557
(
Dec.
2012
).
2.
P.
Vogt
and
J.
Kuhn
, “
Analyzing free fall with a smartphone acceleration sensor
,”
Phys. Teach.
50
,
182
(
March
2012
).
3.
J.
Kuhn
and
P.
Vogt
, “
Analyzing spring pendulum phenomena with a smartphone acceleration sensor
,”
Phys. Teach.
50
,
504
(
Nov.
2012
).
4.
U.
Pili
and
R.
Violanda
, “
Measuring average angular velocity with a smartphone magnetic field sensor
,”
Phys. Teach.
56
,
114
115
(
Feb.
2018
).
5.
U.
Pili
,
R.
Violanda
, and
C.
Ceniza
, “
Measurement of g using a magnetic pendulum and smartphone magnetometer
,”
Phys. Teach.
56
,
258
259
(
April
2018
).
6.
E. E.
Rodriguez
and
G. A.
Gesnouin
, “
Effective mass of an oscillating spring
,”
Phys. Teach.
45
,
100
(
Jan.
2007
).
7.
We have downloaded for free the Android application Physics Toolbox Sensor Suites from Google Play.
8.
C.
Deacon
, “
Error analysis in the introductory physics laboratory
,”
Phys. Teach.
30
,
368
(
Sept.
1992
).
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.