Motion Sensor Logger
Record phone motion streams, plot them live and export a labelled CSV.
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.
| Channel | Min | Max |
|---|---|---|
| Accel Y +g (m/s²) | — | — |
| Rotation X (°/s) | — | — |
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
Open on mobile over HTTPS
Grant motion sensor permission on your phone or tablet when prompted.
Record live accelerometer/gyro stream
Start capture and watch real-time X/Y/Z plots and sample rate.
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.
Related tools
Battery Status Monitor
Watch battery level, charging state and discharge rate live with a rolling chart and time-to-empty projection.
Bluetooth Device Inspector
Inspect BLE GATT trees in the browser: services, characteristics, descriptors, live values and notifications.
Browser Benchmark
Measure JavaScript and DOM performance with deterministic, transparent benchmark suites.
Device Information
See what your browser reveals about your device — screen, hardware hints, platform and capabilities.
Digital Bubble Level
Measure surface tilt with a visual bullseye and a ±0.2° level threshold.
Digital Compass
Read a device heading with a manual desktop simulator and magnetic interference guidance.