JavaScript Sensor Access Demo
This demo page should be run from a mobile phone or a tablet.
This demo page shows how websites can access sensor data from mobile devices using deviceorientation and devicemotion events.
deviceorientation provides alpha, beta and gamma components which correspond to orientation along the Z, X and Y axes, respectively.
devicemotion provides acceleration and rotation rate along three axes using MEMS accelerometers and gyroscopes.
The sensor data shown below does not leave your browser: it is not collected, shared or transmitted. However this may not be true for other websites that you visit. For more information, see the companion page for our study: "The Web's Sixth Sense: A Study of Scripts Accessing Smartphone Sensors".
Start the demo
Num. of datapoints: 0
Orientation
- X-axis (β): 0°
- Y-axis (γ): 0°
- Z-axis (α): 0°
Accelerometer
- X-axis: 0 m/s2
- Y-axis: 0 m/s2
- Z-axis: 0 m/s2
- Data Interval: 0 ms
Accelerometer including gravity
- X-axis: 0 m/s2
- Y-axis: 0 m/s2
- Z-axis: 0 m/s2
Gyroscope
- X-axis: 0°/s
- Y-axis: 0°/s
- Z-axis: 0°/s