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.
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