Many physics projects recently designed for high school teachers use Arduino as the main tool for managing sensors and data acquisition. This is a low-cost integrated development environment programmed with a simplified version of the C++ language. In comparison, the Raspberry Pi 3 platform, which also allows for the design of physics projects, can expose students to the use of the most trending language in the field: Python. With this in mind, we have developed a project to measure the acceleration of objects due to gravity near the Earth’s surface using a Raspberry Pi 3 computer and Python as the programming language. It utilizes an infrared sensor connected to the Raspberry Pi 3, a monitor with an HDMI connection, a mouse, and a keyboard. The experiment yields results with a percentage difference of 2.8% on average for an estimated value of the gravitational acceleration of 9.8 m/s2.

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
(
Feb.
2019
).
2.
Mike
McCaughey
, “
An Arduino-based magnetometer
,”
Phys. Teach.
55
,
274
(
May
2017
).
3.
Calin
Galeriu
, “
An Arduino-controlled photogate
,”
Phys. Teach.
51
,
156
(
March
2013
).
4.
Paulo Simeão
Carvalho
and
Marcelo
Hahn
, “
A simple experimental setup for teaching additive colors with Arduino
,”
Phys. Teach.
54
,
244
(
April
2016
).
5.
D.
Broberg
,
B.
Medasani
,
N. E.
Zimmermann
,
G.
Yu
,
A.
Canning
,
M. Haranczyk M.
Asta
, and
G.
Hautier
, “
PyCDT: A Python toolkit for modeling point defects in semiconductors and insulators
,”
Comput. Phys. Commun.
226
,
165
(
2018
).
6.
N.
Braun
,
T.
Hauth
,
C.
Pulvermacher
, and
M.
Ritter
, “
An interactive and comprehensive working environment for high-energy physics software with Python and Jupyter Notebooks
,”
J. Phys. Conf. Ser.
898
,
072020
(
2017
).
7.
The Astropy Collaboration
 et al, “
The Astropy Project: Building an open-science project and status of the v2.0 core package
,”
Astron. J.
156
,
123
(
2018
).
8.
S. J.
Mumford
 et al, “
SunPy—Python for Solar Physics
,”
Comput. Sci. Disc.
8
,
014009
(
2015
).
9.
D.
Hernández
,
H.
Trejo
, and
E.
Ordoñez
, “
Development of an exploration land robot using low-cost and open source platforms for educational purposes
,”
J. Phys. Conf. Ser.
582
,
012007
(
2015
).
10.
M.F.
Wicaksono
,
Syahrul
,
M.D.
Rahmatya
,
M. A. F.
Rahman
, “
Raspberry Pi-based solar system learning media
,”
IOP Conf. Ser. Mater. Sci. Eng.
879
,
012022
(
2020
).
11.
Readers may download the supplemental material at TPT Online,http://dx.doi.org/10.1119/10.0003472, 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.