Pendulum experiment
Hang your phone as a pendulum: its gyroscope measures the period, and you get g, the acceleration of gravity.
Hang the phone from a string, type the length from the pivot to the middle of the phone, press Start, then start a small swing.
Readings are processed on your device only: nothing is recorded or sent unless you export it.
- Period T
- —
- Frequency
- —
- Measured g
- —
- Expected T for this length
- —
Swing the phone gently: a few full swings are needed.
Small-angle formula T = 2π √(L / g); g ≈ 9.81 m/s² on Earth.
Runs entirely in your browser. Your files never leave your device.
About this tool
A classic physics lab you can do at home: hang the phone from a string or a lanyard, measure the length from the pivot to the middle of the phone, and let it swing gently. The gyroscope follows the swing many times a second, and the page finds the time of one full oscillation, the period, from the moments the motion changes direction.
For small swings the period depends only on the length and on gravity, T = 2π √(L / g), not on the mass or the amplitude. With the measured period and your length, the page computes g, which should come out close to 9.81 m/s². Try different lengths to see the period grow with the square root of the length, as Galileo noticed.
How it works
- Measure the length from the pivot to the centre of the phone.
- Type it and press Start.
- Start a gentle swing of less than 15 degrees.
- Wait a few swings, then read the period and g.
The axis that rotates the most is used automatically. The period is averaged over the last 15 seconds of upward zero crossings of the rotation rate.
Worked example
Hang the phone from a lanyard so that 0.80 m separates the pivot from the middle of the phone. Theory gives T = 2π √(0.80 ÷ 9.81) ≈ 1.79 s. If the page measures 1.80 s, it computes g = 4π²L ÷ T² ≈ 9.75 m/s², within 1 % of the real value.
Shorten the string to 0.20 m: the period halves to about 0.90 s, because it follows the square root of the length.
Good to know
- Keep the swing small, under about 15°, for the formula to hold.
- Measure the length to the middle of the phone, not to its top edge.
- Tie the lanyard firmly and swing over a bed or a cushion.