传感器

陀螺仪测试

使用简单的运动图读取设备和浏览器公开的实时陀螺仪旋转速率值。

隐私: 在此选项卡中处理旋转样本。不上传或存储任何运动数据。
界面标签和工具名称已翻译。此页面上的详细指南和常见问题解答目前以英文编写。

测试接口

按“开始”后,您的浏览器可能会请求许可。
准备好。启用陀螺仪并旋转设备。
X—°/s
Y—°/s
Z—°/s
震级—°/s
样品0
传感器源—
大多数台式机不暴露陀螺仪。在移动设备上,使用 HTTPS 并授予运动权限。对于消费类传感器来说,小的漂移和噪声是正常的。

如何使用这个工具

  1. Click Enable gyroscope and grant motion permission if your browser asks.
  2. Rotate the device slowly around each axis and watch the x, y, and z values.
  3. Observe the magnitude graph while the device is still and moving.
  4. Click Stop to remove the listeners and end sensor access.

广告

技术说明

The page prefers the Generic Sensor API Gyroscope constructor. Where that is unavailable it falls back to DeviceMotionEvent.rotationRate, which reports degrees per second around the alpha, beta, and gamma axes. Values are smoothed slightly for readability.

A desktop or a device without a gyroscope will not produce rotation data. iOS requires an explicit motion permission request from a user gesture. Drift and noise are normal for consumer sensors and are not proof of a hardware fault.

故障排除

No gyroscope data appears

Most laptops have no gyroscope. Use a phone or tablet and serve the page over HTTPS.

The permission prompt does not appear

On iOS the request must follow a direct tap. Reload and press the button again.

Values drift while the device is still

Sensor bias and temperature changes cause small drift. This is normal and is corrected by sensor fusion in many apps.

Only some axes change

Rotate around each axis deliberately. A device may not expose all axes equally depending on orientation and browser.

常见问题

广告