A gravity pendulum experiment in which a smartphone serves as pendulum bob and as measurement device is described. As the pendulum oscillates, the smartphone gyroscope and magnetometer sensors are used to simultaneously record the bob's angular velocity and angular displacement. While the angular velocity is measured directly via the gyroscope sensor, the angular displacement is deduced from the change of the magnetometer reading while the smartphone oscillates in the constant magnetic field of the Earth. These two independent measurements enable us to derive the phase space representation of the pendulum motion directly from experimental data. Further data analysis yields energy plots, including the periodic change between the pendulum's kinetic and potential energy and the energy dissipation due to friction. Detailed instructions on how to adopt the experiment, which is both suitable as a lecture demonstration as well as an instructional laboratory experiment, are provided in the supplementary material.

1.
S.
Staacks
,
S.
Hütz
,
H.
Heinke
, and
C.
Stampfer
, “
Advanced tools for smartphone-based experiments: Phyphox
,”
Phys. Educ.
53
,
045009
(
2018
).
2.
R.
Vieyra
,
C.
Vieyra
,
P.
Jeanjacquot
,
A.
Marti
, and
M.
Monteiro
, “
Turn your smartphone into a science laboratory
,”
Sci. Teach.
82
,
32
40
(
2018
).
3.
J.
Kuhn
and
P.
Vogt
,
Physik Ganz Smart
, 1st ed. (
Springer Spektrum
,
New York
,
2019
).
4.
A.
Kaps
,
T.
Splith
, and
F.
Stallmach
, “
Implementation of smartphone-based experimental exercises for physics courses at universities
,”
Phys. Educ.
56
,
035004
(
2021
).
5.
J.
Kuhn
and
P.
Vogt
, “
Analyzing spring pendulum phenomena with a smart-phone acceleration sensor
,”
Phys. Teach.
50
,
504
505
(
2012
).
6.
J.
Castro-Palacio
,
L.
Velázquez-Abad
,
M.
Giménez
, and
J.
Monsoriu
, “
Using a mobile phone acceleration sensor in physics experiments on free and damped harmonic oscillations
,”
Am. J. Phys.
81
,
472
475
(
2013
).
7.
J.
Castro-Palacio
,
L.
Velázquez-Abad
,
F.
Giménez
, and
J.
Monsoriu
, “
A quantitative analysis of coupled oscillations using mobile accelerometer sensors
,”
Eur. J. Phys.
34
,
737
744
(
2013
).
8.
E.
Ballester
,
J.
Castro-Palacio
,
L.
Velazquez-Abad
,
M.
Gimenez
,
J.
Monsoriu
, and
L.
Sanchezruiz
, “
Smart physics with smartphone sensors
,” in
2014 IEEE Frontiers in Education Conference (FIE) Proceedings, Madrid, Spain
(
IEEE
,
2014
), pp.
1
4
.
9.
J.
Sans
,
F.
Manjón
,
A.
Pereira
,
J.
Gomez-Tejedor
, and
J.
Monsoriu
, “
Oscillations studied with the smartphone ambient light sensor
,”
Eur. J. Phys.
34
,
1349
1354
(
2013
).
10.
P.
Vogt
and
J.
Kuhn
, “
Analyzing simple pendulum phenomena with a smartphone acceleration sensor
,”
Phys. Teach.
50
,
439
440
(
2012
).
11.
S.
Reinhold
and
M.
Ziese
, “
Frequency doubling in a pendulum
,”
Eur. J. Phys.
42
,
025003
(
2021
).
12.
U.
Pili
,
R.
Violanda
, and
C.
Ceniza
, “
Measurement of g using a magnetic pendulum and a smartphone magnetometer
,”
Phys. Teach.
56
,
258
259
(
2018
).
13.
M.
Monteiro
,
C.
Cabeza
, and
A.
Martí
, “
Exploring phase space using smartphone acceleration and rotation sensors simultaneously
,”
Eur. J. Phys.
35
,
045013
(
2014
).
14.
A.
Kaps
and
F.
Stallmach
, “
Using the smartphone as oscillation balance
,”
Phys. Teach.
58
,
678
679
(
2020
).
15.
A.
Kaps
and
F.
Stallmach
, “
Smart physics with an oscillating beverage can
,”
Phys. Educ.
56
,
045010
(
2021
).
16.
Wolfgang
Demtröder
,
Mechanics and Thermodynamics
, 1st ed. (
Springer International Publishing
,
New York
,
2017
).
17.
Lev
Landau
and
Evgeny
Lifshitz
,
Mechanics
, 3rd ed. (
Butterworth-Heinemann
,
Oxford
,
1976
), Vol.
1
.
18.
M.
Monteiro
,
C.
Cabeza
, and
A.
Marti
, “
Rotational energy in a physical pendulum
,”
Phys. Teach.
52
,
180
181
(
2014
).
19.
A.
Kaps
and
F.
Stallmach
, “
Tilting motion and the moment of inertia of the smartphone
,”
Phys. Teach.
58
,
216
217
(
2020
).
20.
M.
Wheatland
,
T.
Murphy
,
D.
Naoumenko
,
D.
van Schijndel
, and
G.
Katsifis
, “
The mobile phone as a free-rotation laboratory
,”
Am. J. Phys.
89
,
342
348
(
2021
).
21.
A.
Kaps
,
T.
Splith
, and
F.
Stallmach
, “
Shear modulus determination using the smartphone in a torsion pendulum
,”
Phys. Teach.
59
,
268
271
(
2021
).
22.
M.
Monteiro
,
C.
Cabeza
, and
A.
Marti
, “
Acceleration measurements using smartphone sensors: Dealing with the equivalence principle
,”
Rev. Bras. Ensino Fís.
37
,
1303
(
2015
).
23.
See supplementary material at https://www.scitation.org/doi/suppl/10.1119/10.0009254 for extended version of this manuscript with additional experimental details, in addition to the Jupyter notebook file and the data.

Supplementary Material

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