CoderTools

Motion Sensor Test

Test accelerometer, gyroscope, and orientation sensors in real-time

Accelerometer
Gyroscope
Orientation

3D Visualization

Rotate your device to see real-time response

Accelerometer Data m/s²

X 0.00
Y 0.00
Z 0.00

Gyroscope Data °/s

X 0.00
Y 0.00
Z 0.00

Orientation Data

0.0°
Alpha (Z)
Compass direction (0-360°)
0.0°
Beta (X)
Front/back tilt (-180° to 180°)
0.0°
Gamma (Y)
Left/right tilt (-90° to 90°)

Real-time Data Graph

X Y Z
Accelerometer
Gyroscope

Peak Values

Max Acceleration 0.00 m/s²
Max Rotation 0.00 °/s

API Information

Active API -
Sample Rate 0 samples/sec

Understanding Motion Sensors

What Are Motion Sensors?

Modern smartphones and tablets contain multiple motion sensors that detect device movement and orientation. These sensors enable features like automatic screen rotation, fitness tracking, and augmented reality applications.

This tool provides direct access to your device's motion sensors through web browser APIs, allowing you to verify sensor functionality and observe real-time sensor data.

Types of Motion Sensors

Accelerometer

Measures acceleration forces acting on the device, including gravity. The accelerometer detects motion along three axes: X (left-right), Y (forward-backward), and Z (up-down). When stationary, the accelerometer reads approximately 9.8 m/s² in the direction of gravity.

Gyroscope

Measures the rate of rotation around the device's three axes. Unlike the accelerometer, the gyroscope is unaffected by gravity and provides angular velocity data. This sensor is essential for tracking device orientation changes and rotational movements.

Orientation Sensors

Combines data from the accelerometer, gyroscope, and optionally the magnetometer to determine the device's absolute orientation in 3D space. Orientation is expressed using three angles: Alpha (compass heading), Beta (front-back tilt), and Gamma (left-right tilt).

Common Applications

Gaming

Racing games, flight simulators, and AR games use motion sensors for intuitive tilt-based controls.

Fitness Tracking

Step counting, workout detection, and activity monitoring rely heavily on accelerometer data.

Navigation

Augmented reality navigation and compass applications use orientation sensors to overlay directions on camera views.

Photography

Camera apps use motion sensors for optical image stabilization and panorama capture alignment.

Technical Notes

  • Motion sensors require HTTPS for security reasons. Sensor data is processed entirely in your browser.
  • iOS 13 and later require explicit user permission before accessing motion sensors. Tap the Start button to trigger the permission dialog.
  • Sensor accuracy varies between devices. Consumer-grade sensors are suitable for general motion detection but not for precision measurements.

Browser Compatibility

Motion sensor support varies across browsers and platforms:

Chrome on Android: Full support
Safari on iOS: Requires permission prompt
Firefox: Limited support
Edge on Android: Full support
Desktop browsers: Limited (requires physical sensors)

For best results, use this tool on a mobile device with the latest browser version.

Related Tools

Quick Menu

No recent tools