เซนเซอร์

การทดสอบไจโรสโคป

อ่านค่าอัตราการหมุนของไจโรสโคปแบบสดโดยที่อุปกรณ์และเบราว์เซอร์ของคุณเปิดเผยค่าเหล่านั้น ด้วยกราฟการเคลื่อนไหวอย่างง่าย

ความเป็นส่วนตัว: ตัวอย่างการหมุนได้รับการประมวลผลในแท็บนี้ ไม่มีการอัพโหลดหรือจัดเก็บข้อมูลการเคลื่อนไหว
ป้ายอินเทอร์เฟซและชื่อเครื่องมือได้รับการแปล คำแนะนำโดยละเอียดและคำถามที่พบบ่อยในหน้านี้ปัจจุบันเขียนเป็นภาษาอังกฤษ

อินเทอร์เฟซการทดสอบ

เบราว์เซอร์ของคุณอาจขออนุญาตหลังจากที่คุณกดเริ่ม
พร้อม. เปิดใช้งานไจโรสโคปและหมุนอุปกรณ์
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.

คำถามที่พบบ่อย

โฆษณา