Prueba de movimiento y brújula
Lea los datos del acelerómetro, giroscopio y brújula cuando estén disponibles, con un nivel de burbuja y visualización de orientación en vivo.
Interfaz de prueba
Es posible que su navegador le solicite permiso después de presionar Inicio.Cómo utilizar esta herramienta
- Click Enable sensors and grant motion permission if your browser asks.
- Tilt the device and watch the bubble level and axis values.
- Rotate the device to check compass behaviour where supported.
- Stop the test to remove event listeners and end sensor access.
Anuncio
Explicación técnica
The Generic Sensor API and DeviceOrientation/DeviceMotion events expose orientation and motion depending on platform. iOS requires an explicit permission request after a gesture; many desktops expose no motion sensors at all.
Compass readings can be affected by magnetic interference from cases, speakers, and metal surfaces. A browser cannot calibrate the sensor or prove that a reading is physically accurate.
Solución de problemas
Sensors are unsupported
Desktop browsers often have no motion sensors. Use a mobile device with the required hardware.
Permission request does not appear
On iOS, call the permission prompt from a direct user gesture and ensure the page is served over HTTPS.
Values drift
Magnetic interference and sensor fusion algorithms can cause drift. Move away from magnets and metal objects.
Compass points the wrong way
Compass accuracy varies by device and environment. Do not rely on it for navigation.
Herramientas relacionadas
Preguntas frecuentes
Anuncio