Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Phone Physics Experiment: How It Works

· 6 min read · Home Tech

In this article
  1. What Sensors Are Inside a Phone?
  2. What Experiments Can You Do?
  3. How Accurate Are Phone Sensors?
  4. How to Choose the Right App
  5. Common Problems and How to Fix Them
  6. Phone vs. Dedicated Lab Equipment
  7. Safety and Best Practices
  8. Frequently Asked Questions

Yes, a modern smartphone can absolutely pull off a physics experiment, and in many cases it can do so with accuracy that rivals dedicated lab equipment. The sensors built into every phone—accelerometers, gyroscopes, magnetometers, and barometers—are not just for screen rotation and navigation; they are precise enough to measure acceleration, angular velocity, magnetic fields, and air pressure. This article explains what experiments you can run, how the sensors work, and how to get reliable results.

What Sensors Are Inside a Phone?

Smartphones contain micro-electromechanical systems (MEMS) sensors, which are tiny mechanical structures etched onto silicon chips. The key ones for physics are:

  • Accelerometer – measures linear acceleration in three axes (x, y, z) in m/s² or g-forces.
  • Gyroscope – measures angular velocity (rotation rate) in rad/s or degrees/s.
  • Magnetometer – measures magnetic field strength in microteslas (µT), often used as a compass.
  • Barometer – measures atmospheric pressure in hPa, useful for altitude and gas law experiments.
  • GPS and light sensor – can provide position, velocity, and illumination data.

These sensors sample at rates of 50–200 Hz on most devices, which is sufficient for many classroom and hobby experiments.

What Experiments Can You Do?

With a free sensor-logging app (such as Phyphox, Sensor Kinetics, or Physics Toolbox), you can perform dozens of experiments. Common ones include:

  • Pendulum period – use the gyroscope to measure oscillation period and verify T = 2π√(L/g).
  • Centripetal acceleration – spin the phone on a turntable or in a circle and compare measured acceleration to v²/r.
  • Free fall – drop the phone onto a soft surface (with a case) and measure the acceleration spike; or use the barometer to track altitude change.
  • Magnetic field mapping – move the phone near magnets to plot field strength vs. distance, verifying the inverse-square law.
  • Sound speed – use two phones or a single phone with an echo to measure the time delay of a clap and compute the speed of sound.
  • Rolling ball on a ramp – place the phone on a board and tilt it to measure the acceleration component g·sin(θ).
  • Elevator acceleration – ride an elevator and record the apparent weight change during start and stop.

How Accurate Are Phone Sensors?

Accuracy varies by model and sensor grade. Consumer accelerometers typically have a noise floor of about 0.01 m/s² and a full-scale range of ±2g to ±16g. Gyroscopes have similar relative accuracy. For most teaching experiments, this is more than adequate. However, there are systematic errors:

  • Offset (bias) – the sensor does not read exactly zero when stationary. Calibrate by placing the phone flat and recording the baseline.
  • Drift – gyroscope readings slowly change over time due to temperature. Keep experiments short.
  • Sampling jitter – timestamps are not perfectly uniform, which can affect frequency measurements. Use the sensor's built-in timestamp rather than assuming a fixed rate.

To improve accuracy, always calibrate the sensors in the app before starting, and run multiple trials to average out random noise.

How to Choose the Right App

There are several reliable apps, but the most widely used in education is Phyphox (available for Android and iOS). It is free, open-source, and designed specifically for physics experiments. It allows you to export raw data as CSV for analysis in Excel or Python. Other options:

  • Sensor Kinetics – shows raw sensor data with graphs, good for demonstrations.
  • Physics Toolbox Sensor Suite – includes a range of tools like a goniometer, sound meter, and magnetic field viewer.
  • Google Science Journal – discontinued but still functional; simple interface for logging.

When choosing an app, check that it logs data at a high rate (at least 50 Hz) and allows you to set the sensor range and calibration offset.

Common Problems and How to Fix Them

Even with good equipment, experiments can fail. Here are the usual issues:

  • Phone rotates during a linear acceleration experiment – the accelerometer measures linear acceleration plus gravity; if the phone tilts, the gravity vector mixes into the readings. Fix: secure the phone with a mount or use the gyroscope to correct the orientation.
  • Data is too noisy – reduce the sensor range (e.g., ±2g instead of ±16g) to increase resolution, and apply a moving average filter in your analysis.
  • Sampling rate drops – some apps reduce the rate when the screen is off or when the battery is low. Keep the screen on and disable battery optimization for the app.
  • Barometer readings fluctuate – air pressure changes with wind and temperature; do gas law experiments in a closed room.

Phone vs. Dedicated Lab Equipment

For a fraction of the cost of a traditional force sensor or motion encoder, a phone can match or exceed their performance for many experiments. A dedicated lab accelerometer might have a lower noise floor, but the phone's advantage is the built-in display, data logging, and wireless connectivity. For example, measuring the period of a pendulum with a phone's gyroscope yields results within 1–2% of the theoretical value, which is acceptable for most educational purposes. The main limitation is the lack of a force probe or temperature probe, though external sensors can be connected via Bluetooth in some apps.

Safety and Best Practices

When using a phone for physics, always protect the device:

  • Use a sturdy case, especially for free-fall or collision experiments.
  • Never drop the phone onto a hard surface; use a pillow or foam pad.
  • For experiments involving rotation, secure the phone with tape or a mount to prevent it from flying off.
  • Do not expose the phone to extreme temperatures or liquids.
  • When measuring sound, avoid volumes that could damage hearing.

Also, be aware that some apps require location permission even for non-GPS sensors; you can grant it only while using the app.

Frequently Asked Questions

Can I measure the acceleration due to gravity with a phone?

Yes. Place the phone flat on a table and read the accelerometer's z-axis value; it will read approximately 9.81 m/s² (or 1 g). To get a more precise value, average over 30 seconds. The result is usually within 0.1 m/s² of the true local value.

Why does my phone's accelerometer show a value even when it's still?

Because the accelerometer measures proper acceleration, which includes gravity. When the phone is stationary, it reads 1 g upward because the table is pushing it up. This is not a malfunction; it is the physical definition of acceleration.

What is the difference between an accelerometer and a gyroscope?

An accelerometer measures linear acceleration (change in velocity) along three axes. A gyroscope measures angular velocity (how fast the phone is rotating). They are complementary: the gyroscope tells you orientation, the accelerometer tells you movement.

Can I use my phone to measure the speed of sound?

Yes. Clap your hands near the phone while recording audio, and use the app's sound waveform to measure the time between the direct sound and the echo from a wall. Knowing the distance to the wall, speed = 2 × distance / time. With a 10 m distance, you can get within 1% accuracy.

Are phone sensors accurate enough for a science fair project?

Absolutely. Many science fairs accept phone-based experiments, and the sensors are often more accurate than the low-cost sensors sold for classrooms. The key is to document your calibration and error analysis, which is a valuable skill in itself.

Do I need a special phone or can any smartphone work?

Any smartphone from the last decade has the necessary sensors. However, some budget models may lack a gyroscope or barometer. Check your phone's specifications or use a sensor test app to see what is available. For most experiments, an accelerometer is sufficient.