传感器

加速度计测试

读取实时加速度计值(包括重力),并检查运动和倾斜是否产生明显的变化。

隐私: 加速示例保留在此浏览器选项卡中。不上传或保存任何移动数据。
界面标签和工具名称已翻译。此页面上的详细指南和常见问题解答目前以英文编写。

测试接口

按“开始”后,您的浏览器可能会请求许可。
准备好。启用加速计并移动设备。
X—m/s²
Y—m/s²
Z—m/s²
震级—m/s²
样品0
传感器源—
静止时,总震级应接近 9.81 m/s²。某些浏览器会消除重力或平滑信号,因此使用相对变化而不是绝对精度。

如何使用这个工具

  1. Click Enable accelerometer and allow motion access if prompted.
  2. Hold the device still and note the gravity reading on each axis.
  3. Tilt and shake the device gently and watch the values respond.
  4. Click Stop when finished to release sensor access.

广告

技术说明

The tool uses the Generic Sensor API Accelerometer when available and falls back to DeviceMotionEvent.accelerationIncludingGravity. Values are in metres per second squared (m/s²). At rest, the total magnitude should be close to Earth gravity, about 9.81 m/s².

The browser may remove gravity or apply sensor fusion differently. A phone at rest on a table can still show small fluctuations. This page does not calibrate the sensor and cannot detect a hardware fault with certainty.

故障排除

No values appear

Desktop browsers often have no accelerometer. Use a mobile device and HTTPS.

Values are all zero

Permission may be blocked or the browser may not expose motion events. Check site settings and try another browser.

Magnitude is not close to 9.81 at rest

Some devices report in different units or subtract gravity. Read the axis labels and compare relative changes.

Values are very noisy

Vibration, handling, and sensor quality affect the reading. Place the device on a stable surface.

常见问题

广告