Sensores

Prueba del sensor de movimiento

Combine lecturas de orientación y movimiento para verificar la inclinación, la rotación, la detección de sacudidas y la capacidad de respuesta general del sensor.

Privacidad: Las muestras de movimiento y orientación se procesan en la página. No se carga ni almacena nada.
Las etiquetas de la interfaz y los nombres de las herramientas se traducen. La orientación detallada y las preguntas frecuentes de esta página están actualmente escritas en inglés.

Interfaz de prueba

Es posible que su navegador le solicite permiso después de presionar Inicio.
Listo. Habilite la prueba y mueva el dispositivo.
α—°
β—°
γ—°
Movimiento—m/s²
Temblores detectados0
Muestras0
Eventos recibidos—
La detección de sacudidas utiliza un umbral de aceleración simple. La disponibilidad de eventos y las unidades varían según la plataforma, y ​​muchas computadoras de escritorio no exponen ningún sensor de movimiento.

Cómo utilizar esta herramienta

  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.

Anuncio

Explicación técnica

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.

Solución de problemas

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.

Preguntas frecuentes

Anuncio