Датчики

Тест датчика движения

Объедините показания ориентации и движения, чтобы проверить наклон, вращение, обнаружение дрожания и общую реакцию датчика.

Конфиденциальность: На странице обрабатываются образцы движения и ориентации. Ничего не загружается и не сохраняется.
Переведены метки интерфейсов и названия инструментов. Подробные инструкции и часто задаваемые вопросы на этой странице в настоящее время написаны на английском языке.

Тестовый интерфейс

Ваш браузер может запросить разрешение после того, как вы нажмете «Пуск».
Готовый. Включите тест и переместите устройство.
α—°
β—°
γ—°
Движение—m/s²
Обнаружены тряски0
Образцы0
Полученные события—
Обнаружение встряски использует простой порог ускорения. Доступность событий и устройства различаются в зависимости от платформы, а многие настольные компьютеры вообще не имеют датчиков движения.

Как использовать этот инструмент

  1. Click Enable motion test and allow motion access.
  2. Tilt the device and watch the orientation values and level indicator.
  3. Shake the device gently and see the movement counter increase.
  4. Click Stop to remove the listeners and end the test.

Реклама

Техническое объяснение

The page listens for devicemotion and deviceorientation events. It derives a movement magnitude from accelerationIncludingGravity, counts sharp changes as shake events, and shows orientation angles where available.

Event availability and units differ by platform. iOS requires a permission request from a user gesture, and many desktops expose no motion sensors at all. Shake detection is a simple threshold and is not a calibrated measurement.

Поиск неисправностей

No sensor events arrive

Use a mobile device over HTTPS. Check that motion access is allowed for the site.

Shake is not counted

Shake more firmly or lower the threshold if the page offers one. Gentle movement may stay below the threshold.

Orientation is missing but motion works

Some devices expose one event type but not the other. The status row shows what was received.

Values freeze

Background tabs and power saving can pause sensors. Keep the page visible and the screen on.

Часто задаваемые вопросы

Реклама