Capteurs

Test du capteur de mouvement

Combinez les lectures d'orientation et de mouvement pour vérifier l'inclinaison, la rotation, la détection des secousses et la réactivité globale du capteur.

Confidentialité: Les échantillons de mouvement et d'orientation sont traités dans la page. Rien n'est téléchargé ou stocké.
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 test et déplacez l'appareil.
α—°
β—°
γ—°
Mouvement—m/s²
Secousses détectées0
Échantillons0
Événements reçus—
La détection des secousses utilise un simple seuil d'accélération. La disponibilité des événements et les unités varient selon la plate-forme, et de nombreux ordinateurs de bureau n'exposent aucun capteur de mouvement.

Comment utiliser cet outil

  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.

Publicité

Explication technique

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.

Dépannage

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.

Questions fréquemment posées

Publicité