Phone Sensor Test - Check Gyroscope, Accelerometer and Compass
Phone Sensor Test
Tap Start and move your phone: the page reads its orientation, motion and compass sensors live, shows which sensors your browser can reach and lets you try vibration patterns.
Orientation
Tilt —Compass
If the heading drifts, move the phone in a figure eight a few times, away from magnets, speakers and laptops. The compass points to magnetic north.
Motion
Lying still, one axis shows about 9.8 m/s² – that is gravity. Shake the phone firmly to count shakes.
Vibration
Nothing felt? Silent mode, battery saver or the system vibration settings can switch it off.
Sensor status
deviceorientation
Checking
devicemotion
Checking
absolute / webkitCompassHeading
Checking
navigator.vibrate
Checking
Accelerometer
Checking
Gyroscope
Checking
Magnetometer
Checking
AmbientLightSensor
Checking
The last four rows use the newer Generic Sensor API, available mainly in Chromium-based browsers on Android; the magnetometer and light sensor are often switched off by default.
How the phone sensor test works
Phones combine an accelerometer, a gyroscope and a magnetometer. The browser turns their readings into orientation angles, motion values and a compass heading, and this page shows them live so you can see whether each sensor responds.
How to use the test
- 1 Open the page on your phone and tap Start sensors; allow motion access if you are asked.
- 2 Tilt and turn the phone: the 3D model, spirit level and compass follow it, and the graph shows acceleration on three axes.
- 3 Check the status table, try the vibration patterns and shake the phone to test the counter.
Alpha, beta and gamma explained
Alpha is the turn around the axis through the screen (0 to 360°), beta is the front-to-back tilt (−180 to 180°) and gamma is the left-to-right tilt (−90 to 90°). Flat on a table, beta and gamma are close to 0; held upright, beta is about 90°.
Acceleration with and without gravity
At rest the accelerometer measures gravity, about 9.81 m/s², on the axis pointing up; the sign can differ between browsers. The without-gravity view removes it using the gyroscope, so only your own movement is left. Phones usually deliver these values dozens of times per second.
Why the compass can be off
The compass relies on the magnetometer, which metal, magnets and electronics easily disturb. It shows magnetic north, which differs from true (geographic) north by an angle that depends on where you are. A figure-eight movement helps the phone recalibrate.
Browser support and privacy
iPhone and iPad need a tap and your permission before they share motion data, and every browser requires HTTPS. Vibration works in most Android browsers but not in Safari on iOS. Sensor readings stay in your browser: nothing is stored or sent.