DevTools Logo

Motion Sensor Logger

Motion Sensor Logger

Record phone motion streams, plot them live and export a labelled CSV.

Runs in your browser
0 Hz0 samples0.0 sunknown

Checking sensor support…

Actual rate is measured from timestamps — DeviceMotion has no rate-request API.

Reported interval: not reported · gaps >1 s: 0

Drag to pan · wheel to zoom · double-click to reset. Red dots mark detected peaks.

Minimum and maximum per visible channel in the current time window
ChannelMinMax
Accel Y +g (m/s²)——
Rotation X (°/s)——
0 peaks · none yet

Session capabilities

  • Acceleration with gravity: not reported
  • Linear acceleration (gravity removed): not reported
  • Rotation rate: not reported
  • Interval hint: not reported — rate measured from timestamps
  • Heading: no compass-referenced fix
  • Absolute orientation API: not exposed

Units: m/s² for acceleration, °/s for rotation, degrees for heading.

Capture notes

  • CSV includes metadata comment rows, UTC timestamps and every captured channel.
  • Spikes are recorded faithfully — no smoothing or filtering is applied.
  • The screen wake lock is requested where supported; backgrounded tabs may pause events and create gaps.
  • Sessions are memory-only and disappear on reload — export before leaving.
  • Nothing is uploaded.

Examples

Noise floor on a desk

Put the phone flat, start a 30-second capture and watch the gravity-free channels hover near zero before exporting.

Steps in a pocket

Walk a short route, then raise the peak threshold to mark acceleration spikes and compare their times to your steps.

Rotation drill

Rotate the phone slowly and toggle the rotation X/Y/Z channels to align gyroscope spikes with the timeline.

Check your actual sample rate

Compare the live Hz chip with the mean reported interval in the CSV metadata; browsers often report or deliver a different rate.

About this tool

A timed capture session for real DeviceMotion data: acceleration with and without gravity, gyroscope rotation rates, reported interval and compass-referenced heading where available. iOS asks for motion and orientation permission on a tap; other browsers start straight away. Watch a live ten-second window, toggle channels, pan and zoom the full recording, spot acceleration peaks and download every sample as CSV with UTC timestamps and metadata comment rows. Rate is measured from event timestamps rather than requested — the motion event API exposes no rate setting. Sessions stay in memory, are capped at 250,000 samples, and are never uploaded; export before leaving the page. No sensors? Demo mode records a synthetic signal so the whole workflow can be tried on a desktop.

What this tool does not do

  • Processes only the inputs provided in this session without connecting to external accounts or background servers.
  • Runs entirely in the current browser tab; nothing is synced across devices or backed up to a server.

How to use this tool

  1. Open on mobile over HTTPS

    Grant motion sensor permission on your phone or tablet when prompted.

  2. Record live accelerometer/gyro stream

    Start capture and watch real-time X/Y/Z plots and sample rate.

  3. Stop and download CSV

    Export timestamped sensor rows as CSV for Python, MATLAB, or spreadsheet analysis.

Use cases

Noise floor on a desk

Put the phone flat, start a 30-second capture and watch the gravity-free channels hover near zero before exporting.

Steps in a pocket

Walk a short route, then raise the peak threshold to mark acceleration spikes and compare their times to your steps.

Rotation drill

Rotate the phone slowly and toggle the rotation X/Y/Z channels to align gyroscope spikes with the timeline.

Check your actual sample rate

Compare the live Hz chip with the mean reported interval in the CSV metadata; browsers often report or deliver a different rate.

Common mistakes

Mistake:What sample rate do smartphone browsers provide?

Fix:Mobile browsers typically deliver 50–60 Hz (occasionally up to 100 Hz depending on OS and hardware caps); the live HUD measures actual observed Hz.

Mistake:Does recording continue if I lock the screen or switch apps?

Fix:No. Browsers suspend sensor events in background tabs and locked screens, so keep the page active during capture and export the CSV afterward.

Frequently asked questions

Which device motion streams are recorded?

Where supported by mobile browsers over HTTPS, the logger captures 3-axis acceleration (with and without gravity) and 3-axis rotation rate (alpha, beta, gamma) from DeviceMotionEvent.

What sample rate do smartphone browsers provide?

Mobile browsers typically deliver 50–60 Hz (occasionally up to 100 Hz depending on OS and hardware caps); the live HUD measures actual observed Hz.

Does recording continue if I lock the screen or switch apps?

No. Browsers suspend sensor events in background tabs and locked screens, so keep the page active during capture and export the CSV afterward.

Is recorded motion data uploaded?

No. Buffers live in tab memory and download directly to your phone as a timestamped CSV.