Tutorials
LSM6DSOX Axis and Scale Check: Turn the Assembled Board Six Ways
Published · Updated
Run a static orientation test before trying to correct motion in software. It can expose a data order or board-orientation error that a calibration fit would hide.
Write down the board frame and keep raw counts

Mark +X, +Y and +Z on a drawing of the assembled board, then compare them with the sensor package axis convention. Record how the enclosure is meant to be held. Choose whether the application reports specific force or an inferred gravity vector and use that convention consistently when checking signs.
At ±2 g the nominal accelerometer sensitivity is 0.061 mg/count. A 1 g magnitude therefore corresponds to approximately 16,393 counts using the rounded sensitivity. Read back the full-scale setting. A recorded magnitude near half the expected count can point to a range mismatch, though tilt, axis mapping and offset still need examination.
Use opposing faces to separate offset and scale

Hold each face still and average a short interval after settling. In the chosen output convention, a synthetic opposing pair of +16,500 and −16,100 counts has an offset midpoint of +200 counts and a half-span of 16,300 counts per g. A first-pass correction subtracts 200 and then divides by 16,300. Use independent orientations to check the fit.
Repeat for the other two axes. If placing X upward changes the Y channel, fix the mapping before fitting scale. If all axes are noisy or the dominant axis is smaller than expected, inspect the mount, reference orientation and selected digital filtering. A six-face static check does not characterize dynamic errors or gyro drift.
Store the raw and corrected values alongside the board revision, sensor placement and coefficient version. Keep raw logs portable across firmware builds by saving units and the full-scale setting in the record metadata.
If each orientation change appears on the wrong axis, which correction comes first?
Check the data ordering and sensor-to-board mapping before fitting per-axis scale.
Show the three-step example

Positive example: +16500 counts. Negative example: -16100 counts. Midpoint / half-span: +200 / 16300 counts per g.
LSM6DSOX device documentation · nRF52840 host documentation · FIFO watermark and service-time budget · Motion logger project and storage worksheet · Work through signed binary test vectors
Bring six raw static averages, the full-scale readback and a drawing of the enclosure axes. Prepare an engineering review.
References
ST LSM6DSOX data sheet, accelerometer sensitivity and package axes.
Back to Tutorials