You are on page 1of 7

Physics Education

PAPER Related content


- Studying rotational dynamics with a
Advanced tools for smartphone-based smartphone—accelerometer versus
gyroscope
experiments: phyphox Mats Braskén and Ray Pörn

- Measuring the Earth’s magnetic field dip


angle using a smartphone-aided setup: a
To cite this article: S Staacks et al 2018 Phys. Educ. 53 045009 simple experiment for introductory physics
laboratories
Sameer Arabasi and Hussein Al-Taani

- An investigation into the effectiveness of


smartphone experiments on students’
View the article online for updates and enhancements. conceptual knowledge about acceleration
Alessandra Mazzella and Italo Testa

This content was downloaded from IP address 130.237.165.40 on 22/05/2018 at 10:12


Paper
Phys. Educ. 53 (2018) 045009 (6pp) iopscience.org/ped

Advanced tools for smartphone-


based experiments: phyphox
S Staacks , S Hütz, H Heinke and C Stampfer
Institute of Physics I and II, RWTH Aachen University, 52062 Aachen, Germany

E-mail: staacks@physik.rwth-aachen.de

Abstract
The sensors in modern smartphones are a promising and cost-effective tool
for experimentation in physics education, but many experiments face practical
problems. Often the phone is inaccessible during the experiment and the data
usually needs to be analyzed subsequently on a computer. We address both
problems by introducing a new app, called ‘phyphox’, which is specifically
designed for utilizing experiments in physics teaching. The app is free and
designed to offer the same set of features on Android and iOS.

1. Introduction cannot show the recorded data to an audience,


New smartphone-based experiments for physics making it difficult to use smartphones in dem-
teaching are proposed on a regular basis and use a onstration experiments in lectures at schools.
wide range of integrated sensors that are accessed 2 The data is incomprehensible until
with many different apps [1–5]. While these analyzed on a computer.
experiments promise to be motivating for the
The students may see the data being col-
students and allow for a novel approach to give
lected during the experiment, but they need
students measurement tools without additional
to export the data to a computer to do further
costs, there are some obstacles that physics teach-
data analysis, which then ranges from tasks
ers need to overcome to use these experiments in
like finding the time code of a recorded
practice. For most experiments one or both of the
event to numerical integration in spreadsheet
following problems prevent them from unfolding
software such as Excel. Since these often are
their full potential in class:
not simple tasks for students, this usually
1 The smartphone itself is inaccessible as it requires not only detailed instructions and
is part of the experimental setup. more time than the hands-on activity, but
poses an enormous extraneous cognitive load
The students have to perform the experiment
which might hinder the learning progress
blindly as the phone swings on a pendulum or
concerning the physical content. At the end
is hidden from view in some apparatus. They
of the day, the student is often more familiar
only get to see their data at the end, which
with the software used to analyze the data
often consists of a big set of data points that
than with the physics of the actual experi-
appear disconnected from the experiment that
ment that has been performed.
has just been done. If the students were able to
see the data generated in real-time, they could Either of these problems can limit the motiv­
associate different stages of the experiment to ation and comprehension for the students that
different parts of the plot as it forms simul- could be gained from smartphone-based experi-
taneously. Similarly, the screen of the phone mentation. In extreme cases, the experiment can

1361-6552/18/045009+6$33.00 1 © 2018 IOP Publishing Ltd


S Staacks et al
only serve as an introduction to data analysis result permanently during the experiment. A com-
rather than as a means to discover physics phe- mon one is the phone in a pendulum setup [6–8].
nomena. This drawback may also result in only Other interesting examples are most experiments
hesitant application of smartphone-based experi- that measure centripetal acceleration by rotating
ments by physics teachers. a phone [9–11] (for example in a salad spinner or
on a record player) and experiments in which the
phone is placed in a tire or a roll to measure its
2. The app phyphox
velocity [12–14].
In order to address both problems, we have cre- We will use the latter example to explain the
ated a new app for experiments with smartphone problem and our solution to it. All that is needed
sensors. It addresses problem 1 by adding a sim- for this experiment is a roll, for example part of
ple to use remote access function that allows us a paper tube as used to transport posters, a smart-
to remotely control and observe real-time exper­ phone and some padding, which can also be some
imental data from any second device. Problem 2 paper. The padding is used to center the phone in
is addressed by including data analysis within the the tube and then the phone’s rotation rate sensor
app. But instead of creating a black box which just (which is commonly referred to as a gyroscope
generates a result, we implemented the data analy- on smartphones) is used to determine the angular
sis customizable, so that each step of the analysis velocity of the roll. Using its radius, the actual
can be reviewed and modified by each app user, speed of the roll can be calculated. Typically, this
i.e. by the teacher. This promises a huge didactic can be used to demonstrate the linear accelera-
potential by allowing us to adjust how much data tion of the roll on an inclined plane or, for more
analysis should be done by the students themselves advanced courses, to discuss the roll’s moment of
to the needs of each class or group of learners in inertia.
general in a specific learning situation. When using common data acquisition apps,
Besides these features, the app should be usa- the measurement often has to be started before
ble by as many students as possible. Therefore, placing the phone in the tube and can only be
we established that it has to be free of charge, stopped after the phone has been taken out again.
free of advertisement and that it should have the As a result, students see a big dataset with arti-
same functionality and interface on Android and facts from handling the tube and need to export
iOS. While there are some technical limitations the data to a computer to calculate the speed. Most
to the extent to which Android and iOS devices importantly, they have to take out their phones to
can have the same functionality (mostly due to the see the data, which makes it impractical to actu-
availability and accessibility of certain sensors), ally experiment for example with different incli-
it is imperative that a teacher should not have to nations, to optimize the placement of the phone
address students with iPhones separately from or to just repeat a failed run. This drawback can
students with Android devices. also not be avoided by the fact that the phyphox
We named the app phyphox (as an acronym app features a handy countdown function to start
for physical phone experiments) and released it an experiment.
on Google’s Play Store and Apple’s App Store Instead, when doing this experiment in
in September 2016. To support users around the phyphox, the students select the experiment
world, we created an accompanying website at roll within our app and then enable the function
http://phyphox.org, which offers detailed instruc- remote access from the menu. The phone dis-
tions, demonstration videos and technical infor- plays a URL (for example http://192.168.2.113 as
mation in English and German. The app itself shown in figure 1 (left)) which one enters into the
is currently being translated into additional lan- address bar of a web browser on any other device
guages by volunteers from all around the world. which is in the same network (for example the
phone of a second student, see figure 1 (right)).
From then on, the second phone can start and stop
3. Remote access the experiment and plot the collected data in real-
There are a range of examples for experiments that time. Also, since phyphox can do data analysis as
do not allow students to see their measurement discussed later, the students can enter the radius

July 2018 2 Phys. Educ. 53 (2018) 045009


Advanced tools for smartphone-based experiments: phyphox

Figure 1. Remote access of phyphox. Left: screenshot of phyphox with the remote access feature enabled,
showing a URL at the bottom of the screen. Right: the same device (an iPhone 8 in the center of the picture) is
remotely accessed by an Android tablet (top left), a MacBook (bottom left), a Playstation 4 (background) and
a laptop PC running GNU/Linux (right). The app only needs to be installed on the host device (in this case the
iPhone).

21 m

Figure 2. Screenshots of phyphox on Android. Left: the main menu offers access to the raw sensor data, followed
by a big collection of experiments with data analysis, categorized by topics. Center: Result of the elevator
experiment done in an elevator going up 5 floors. Right: sketch of the elevator. Building height determined from
the top floor with a laser rangefinder.

of the roll into the app and get its speed in meters the network, but there are several problems with
per second. They can start to experiment with the this approach besides the high costs of apps
roll and extract its speed as their curiosity lets which offer screen streaming. There are very
them explore the reactions of the graph on the few streaming apps which allow us to control the
second device. phone from the remote side and video streaming
Sometimes, this can also be achieved through causes high stress on the network. Most phones
video streaming. Any app can be remotely vis- feature a high definition screen which needs to
ible if the screen of the phone is streamed over be encoded to a video stream and sent over the

July 2018 3 Phys. Educ. 53 (2018) 045009


S Staacks et al

Figure 3. Screenshot of the web-based editor. The experiment roll is shown, which uses the gyroscope’s y axis
and a radius entered by the user (into a so-called edit field) to calculate and show the roll’s speed.

local WiFi network. The result varies for differ- of their operating system. On top of these ben-
ent devices (iOS or Android, slow phone or a fast efits, the data can be directly downloaded from
one with hardware accelerated video encoding, the web browser. If the students should do fur-
different screen resolutions) and always leads to ther data analysis, it can be downloaded imme-
a clearly noticeable latency between the experi- diately onto the computer on which they will
ment and the reaction on screen. do the next steps. The only requirement (which
The phyphox approach is different as it would be the same for most video stream-
does not stream a video, but just the pure exper­ ing apps) is that both devices are on the same
imental data. Technically, the app acts as a web network.
server and the remote device just needs a mod-
ern web browser to connect to the app. Phyphox
serves a regular web page which includes code 4. Data analysis
that from then on polls the latest data from the In the example of the roll experiment, we already
app. On a good network connection the latency mentioned the advantage of doing a simple math-
between experimental events and the reaction ematical operation to show the speed of the roll
of the graph is barely noticeable and a simple instead of showing its angular velocity. Again,
WiFi router can support many students at the there are several examples for smartphone-based
same time. Additionally, the data representation experiments that need some data analysis which
fits the screen format of the target device, so the should not always be done by the students. A very
measured data can be shown to an audience via common one that is often not recognized as data
a laptop and a projector using the entire screen analysis performed by an app, is calculating the
without being limited to a portrait screen format Fourier transform of an acoustical signal. A wide
of the phone. Since the controlling device only range of audio spectrum apps which accomplish
needs a web browser, it can be anything from a this task are available and they are used in several
desktop computer to another phone regardless smartphone experiments [15–17]. Surprisingly,

July 2018 4 Phys. Educ. 53 (2018) 045009


Advanced tools for smartphone-based experiments: phyphox
there are barely any apps that apply data analysis any classroom which sparks interest in how a
to other sensors than the microphone to simplify height difference can be obtained.
experimentation. Such customizations can easily be created
Applying data analysis in the app cannot by any user of phyphox. The app comes with a
only make an experiment more accessible, it whole range of ready to use experiments (such
can also shift the focus of the experiment itself. as the roll and elevator experiment, see figure 2
An experiment that we showcase since the first (left)), but none of them are actually programmed
release of phyphox tracks the movement of an as a fixed part of the app. Instead, phyphox uses
elevator using the phone’s atmospheric pressure its own file format to describe these experiments.
sensor and its accelerometer. The atmospheric A phyphox experiment file defines data sources
pressure recorded by the phone is used to calcu- (such as the accelerometer or the pressure sen-
late height differences, the (numerical) derivative sor), sets up a range of mathematical operations
of these height values yields a vertical speed and on the data (from a simple addition to a complex
the accelerometer directly provides the vertical Fourier transform) and displays the result by dif-
acceleration of the elevator. ferent means of visualization (like numerical val-
When the students only record the raw accel- ues or graphs). The file format is XML-based and
eration and pressure data without in-app analysis, entirely documented on http://phyphox.org.
as proposed by Monteiro and Martí [18], this is For a simple customization of existing exper-
a great experiment to teach data analysis with iments, there is also a web-based editor on our
the not too complicated example of applying the website (see figure 3), which allows one to open
hydrostatic approximation to a large dataset and any of the existing experiments and to modify
the optionally more advanced step of numerically them using an intuitive visual interface. The
deriving the result to obtain the velocity. resulting customized experiment can be down-
In contrast, when using phyphox, all the loaded onto a computer and then transferred to the
analysis is done by the app and the students get phone through third party apps (email, messenger
graphs showing the altitude, vertical speed and apps, cloud sharing, Bluetooth file transfer etc) or
acceleration as a function of time (see figure 2 distributed on a website. In this way, a teacher can
(center)). In this case, the experiment becomes a customize smartphone assisted experiments to the
tool to teach basic kinematics. The students easily state of knowledge and the educational objectives
understand the motion of an elevator and so they in the specific learning arrangement. This holds
can understand these common plots very easily also for large groups of learners as for hundreds
as they see in real-time how the changing alti- of students in an introductory physics course at
tude is plotted and how the acceleration they feel university level.
shows up immediately in the acceleration plot.
This experiment does not require any additional
knowledge, nor does it require access to comp­ 5. Conclusions
uters to analyze the data. Smartphone-based experiments can motivate stu-
Both approaches address different teaching dents as it allows them to explore physics with
situations and teach different skills. Automated their own tools. Our free app, phyphox, makes
data analysis within the app allows students to a variety of experiments more accessible and
focus on different aspects of a physics experi- extends the tools available to students with a sim-
ment and allows one to do some experiments with ple method to remote control the experiment and
students who do not yet have the required mathe- with data analysis in the field. While only reading
matical skills. An extreme example is a version of raw data from the sensors can be great to teach
the elevator experiment that we have created for a data analysis, it often distracts from understand-
science museum. As their visitors include young ing the physical background of an experiment and
children and people without any background in sets up additional requirements to the mathemati-
math or science, we have created a version, which cal skills of the students. With phyphox these
just shows the height difference as a numerical requirements can either be removed entirely or
value without any graphs. The experiment thus tailored to the needs of a specific class and a spe-
turns into a very accessible outreach outside of cific learning situation.

July 2018 5 Phys. Educ. 53 (2018) 045009


S Staacks et al
ORCID iDs [10] Monteiro M, Cabeza C, Marti A C, Vogt P and
Kuhn J 2014 Angular velocity and centripetal
S Staacks https://orcid.org/0000-0003-1613- acceleration relationship Phys. Teach.
3994 52 312–3
[11] Hochberg K, Gröber S, Kuhn J and Müller A
Received 3 April 2018 2014 The spinning disc: studying radial
Accepted for publication 26 April 2018
https://doi.org/10.1088/1361-6552/aac05e
acceleration and its damping process with
smartphone acceleration sensors Phys. Edu.
49 137
References [12] Puttharugsa C, Khemmani S, Utayarat P and
[1] Vogt P, Kuhn J and Müller S 2011 Experiments Luangtip W 2016 Investigation of the
using cell phones in physics classroom rolling motion of a hollow cylinder using a
education: the computer-aided g determination smartphone Eur. J. Phys. 37 055004
Phys. Teach. 49 383–4 [13] Wattanayotin P, Puttharugsa C and
[2] Pendrill A-M and Rohlén J 2011 Acceleration and Khemmani S 2017 Investigation of the
rotation in a pendulum ride, measured using rolling motion of a hollow cylinder using
an iPhone 4 Phys. Edu. 46 676 a smartphone’s digital compass Phys. Edu.
[3] Kuhn J and Vogt P 2013 Smartphones as 52 045009
experimental tools: different methods to [14] Yan Z, Xia H, Lan Y and Xiao J 2018 Variation
determine the gravitational acceleration in of the friction coefficient for a cylinder
classroom physics by using everyday devices rolling down an inclined board Phys. Edu.
Eur. J. Phys. Edu. 4 16–27 53 015011
[4] Chevrier J, Madani L, Ledenmat S and Bsiesy A [15] Klein P, Hirth M, Gröber S, Kuhn J and
2013 Teaching classical mechanics using Müller A 2014 Classical experiments
smartphones Phys. Teach. 51 376–7 revisited: smartphones and tablet PCs as
[5] Vieyra R, Vieyra C, Jeanjacquot P, Marti A and experimental tools in acoustics and optics
Monteiro M 2015 Turn your smartphone into Phys. Edu. 49 412
a science laboratory Sci. Teach. 82 32–40 [16] Hirth M, Kuhn J and Müller A 2015
[6] Vogt P and Kuhn J 2012 Analyzing simple Measurement of sound velocity made easy
pendulum phenomena with a smartphone using harmonic resonant frequencies with
acceleration sensor Phys. Teach. 50 439–40 everyday mobile technology Phys. Teach.
[7] Kuhn J and Vogt P 2012 Analyzing 53 120–1
spring pendulum phenomena with a smart- [17] Monteiro M, Marti A C, Vogt P, Kasper L and
phone acceleration sensor Phys. Teach. Quarthal D 2015 Measuring the acoustic
50 504–5 response of Helmholtz resonators Phys.
[8] Briggle J 2013 Analysis of pendulum period with Teach. 53 247–9
an iPod touch/iPhone Phys. Edu. 48 285 [18] Monteiro M and Martí A C 2017 Using
[9] Vogt P and Kuhn J 2013 Analyzing radial smartphone pressure sensors to measure
acceleration with a smartphone acceleration vertical velocities of elevators, stairways, and
sensor Phys. Teach. 51 182–3 drones Phys. Edu. 52 015010

July 2018 6 Phys. Educ. 53 (2018) 045009

You might also like