AI & Tech · Lab

Your phone's hidden lab

Your phone carries an accelerometer and a gyroscope that most apps use quietly for screen rotation and step counts. Here you can see them live and use them for real experiments. Guess first, then measure. Open it on your phone.

How many floors did the lift go?

Live sensors

Acceleration with gravity · m/s²
Acceleration without gravity · m/s²
Gyroscope · °/s
Orientation · °
--Readings a second
--Total, in g
--Peak, in g

What's inside your phone

The accelerometer

A tiny silicon comb on a spring. When the phone accelerates, the comb lags behind and the gap between its teeth changes, which changes a capacitance.

Why "still" reads 9.8

Lying still on a table, the phone reads 9.8 m/s² upward. That's the table pushing back against gravity. In free fall, it reads almost zero.

The gyroscope

It uses a vibrating mass that gets nudged sideways when the phone turns. That's how it measures how fast the phone is rotating.

Who else can read them?

Websites must ask before reading motion on iPhone. Other browsers may allow it quietly, so a page could tell if you're walking or still. This page keeps every reading on your phone.

Sources: the W3C "DeviceOrientation Event" specification (how browsers share motion data and why iPhone asks permission); the International Gravity Formula used in the WGS 84 Earth model (gravity is about 9.78 m/s² at the equator, 9.83 at the poles, and about 9.79 across the UAE); the standard simple pendulum formula T = 2π√(L/g). Walking cadence of roughly 100 to 120 steps a minute comes from research on adult walking by Tudor-Locke and colleagues. Stride length from height and floor heights are rough rules of thumb. Sample data is made up to show how each experiment works.