An accelerometer measures linear acceleration including gravity, in m/s². At rest, the total magnitude should read ≈9.81 m/s² (Earth's gravity) — this page shows that live per axis, with a gravity tilt-pad and an AT REST / FREE-FALL / IN MOTION badge. A reading far from 9.81 when still indicates a miscalibrated sensor.
Accelerometer.
Live acceleration on every axis, in m/s². Hold the device still to read Earth gravity (≈9.81 m/s²); the tilt pad shows which way gravity is pulling.
iOS asks for permission. Some browsers expose a higher-rate version via the new Accelerometer Web API — we use the broader DeviceMotion path.
On iOS, tap below to grant motion access. Android and desktop start automatically.
We subscribe to window.addEventListener("devicemotion", …) and read accelerationIncludingGravity live per event. Each axis updates its own signed bar in real time.
Total magnitude is computed as sqrt(x² + y² + z²). At rest this equals gravity (≈9.81 m/s²); the badge flags whether the live reading is at rest, free-fall, or in motion. Significant deviation at rest indicates calibration drift — restart the device.