Slots / Widget

G-Meter

A widget that visualizes the forces on your vehicle in real time using your phone's accelerometer. Longitudinal G (acceleration / braking) and lateral G (cornering) are plotted on a two-axis circular display. This page covers calibration, why the meter does not work on motorcycles, and recommended mounting.

Published · April 15, 2026·Updated · April 15, 2026

1.Overview

The G-meter extracts vehicle G from the device's built-in 3-axis accelerometer and renders a ball with a trail on a circular grid. The center is zero G; the further out the ball moves, the higher the force.

Accurate readings require a calibration step that compensates for the device's mounting angle. Calibration runs on a long-press while stopped, or automatically when a recording starts.

2.On-screen elements

The display contains the following elements:

Center originZero G (constant-velocity cruising or stopped)
Ball positionDirection and magnitude of the current G vector
Trail lineLine from origin to ball (helps read direction)
Grid ringsReference circles every 0.5 G
Combined G valueNumeric √(gX² + gY²) shown bottom-right (live value, not session max)
Ball colorShifts from primary to warning above 0.3 G

Axis mapping

X (lateral G)Device left/right → vehicle cornering force
Y (longitudinal G)Device up/down → vehicle accel/decel
Z (gravity)Removed automatically by calibration

3.Calibration

Because the G-meter depends on the device's mounting angle (dashboard tilt, mount orientation), calibration before use is mandatory. Two methods are available: manual and automatic.

Manual calibration (long-press)

  1. Long-press the G-meter widget while stopped
  2. The app averages the last 2 seconds (20 samples) to estimate the gravity vector
  3. A rotation matrix is computed so that gravity points straight down
  4. The matrix is saved on-device (persists across app launches)

The long-press only triggers when vehicle speed is 0 km/h (from ECU or GPS). It will not run while moving.

Auto-calibration on recording start

The same calibration runs automatically the moment a recording starts. You don't need to remember to long-press — starting a recording resets calibration. A snackbar at the bottom of the screen confirms completion.

Calibration logic

Raw data (m/s², gravity included)
  ↓
[1] Apply rotation matrix (pitch / roll correction)
  ↓
[2] Subtract gravity (-9.80665 m/s²)
  ↓
[3] Convert to G units (÷ 9.80665)
  ↓
Calibrated G values (gX, gY, gZ)

Only pitch and roll are corrected — yaw (heading) is not. Mount the phone in portrait orientation with the device's Y-axis (top edge) aligned with the vehicle's forward direction.

4.Why it does not work on motorcycles

As noted in the slot setting screen, the G-meter does not function correctly on motorcycles. This is because the calibration logic assumes the device and vehicle stay in fixed alignment.

Motorcycles lean into corners, so lateral G is measured along an axis tilted relative to the road, not relative to the bike. As a result, gravity bleeds into the lateral G channel during cornering, and the pure centripetal force can't be isolated.

On four-wheel vehicles roll angles are small enough to ignore in practice, but on two wheels the error dominates.

5.Detail settings

The only configurable item under the Detail Settings tab is the meter range (maxValue), which defaults to 1.5 G. This is the maximum G represented by the outer ring — raise it if values clip during sport driving, or lower it for daily driving where the ball would otherwise sit close to the center.

The warning threshold (ball color shifts above 0.3 G) and the smoothing factor are fixed as internal constants and are not currently user-configurable.

6.Update rate and smoothing

ItemValue
Sensor sampling50 Hz (every 20 ms)
Display update throttle60 ms (~16.7 FPS)
Animation150 ms easeOut interpolation
SmoothingEMA: filtered = filtered × 0.7 + raw × 0.3

7.Tips

  • Always calibrate on first use (mount the phone first, then long-press)
  • Re-calibrate after changing the mount angle or moving the holder
  • Stopped-only: long-press only works at 0 km/h
  • Auto-calibration on recording start means forgetting the manual step is not fatal
  • The combined G value (bottom-right) is the live reading, not a session maximum
  • Not recommended for motorcycles

8.FAQ

I calibrated, but the ball does not sit at the origin

The phone may not have been completely still during calibration. Try again at a stoplight or other point where the vehicle is fully stopped.

No lateral G in corners, or it bleeds into longitudinal G

The device Y-axis is probably not aligned with the vehicle's forward direction. Check your phone mount: portrait orientation, top of the device facing forward.

How do I reset calibration?

There is currently no in-app reset UI. Either clear app data, or simply long-press to re-calibrate at the new mount position.

Download OBD NINJA

Free on iOS and Android.