Capteurs

Test de gyroscope

Lisez les valeurs de taux de rotation du gyroscope en direct là où votre appareil et votre navigateur les exposent, avec un simple graphique de mouvement.

Confidentialité: Les échantillons de rotation sont traités dans cet onglet. Aucune donnée de mouvement n'est téléchargée ou stockée.
Les étiquettes d’interface et les noms d’outils sont traduits. Les conseils détaillés et les FAQ sur cette page sont actuellement rédigés en anglais.

Interface de test

Votre navigateur peut demander l'autorisation après avoir appuyé sur Démarrer.
Prêt. Activez le gyroscope et faites pivoter l'appareil.
X—°/s
Y—°/s
Z—°/s
Ampleur—°/s
Échantillons0
Source du capteur—
La plupart des ordinateurs de bureau n'exposent pas de gyroscope. Sur mobile, utilisez HTTPS et accordez l’autorisation de mouvement. Une petite dérive et du bruit sont normaux pour les capteurs grand public.

Comment utiliser cet outil

  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.

Publicité

Explication technique

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.

Dépannage

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.

Questions fréquemment posées

Publicité