Cảm biến

Kiểm tra con quay hồi chuyển

Đọc các giá trị tốc độ quay của con quay hồi chuyển trực tiếp trong đó thiết bị và trình duyệt của bạn hiển thị chúng bằng biểu đồ chuyển động đơn giản.

Sự riêng tư: Các mẫu xoay được xử lý trong tab này. Không có dữ liệu chuyển động được tải lên hoặc lưu trữ.
Nhãn giao diện và tên công cụ được dịch. Hướng dẫn chi tiết và câu hỏi thường gặp trên trang này hiện được viết bằng tiếng Anh.

Giao diện thử nghiệm

Trình duyệt của bạn có thể yêu cầu quyền sau khi bạn nhấn Bắt đầu.
Sẵn sàng. Kích hoạt con quay hồi chuyển và xoay thiết bị.
X—°/s
Y—°/s
Z—°/s
Kích cỡ—°/s
Mẫu0
Nguồn cảm biến—
Hầu hết các máy tính để bàn không có con quay hồi chuyển. Trên thiết bị di động, hãy sử dụng HTTPS và cấp quyền chuyển động. Độ lệch nhỏ và tiếng ồn là điều bình thường đối với cảm biến của người tiêu dùng.

Cách sử dụng công cụ này

  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.

Quảng cáo

Giải thích kỹ thuật

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.

Khắc phục sự cố

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.

Câu hỏi thường gặp

Quảng cáo