Source: https://mokxi.com/parts/lsm6dsox
Updated: 2026-11-18

Part

# Six-axis IMU, LSM6DSOX

An accelerometer and a gyroscope at 12.5 Hz to 6.66 kHz over I2C, little-endian sixteen-bit outputs.

See every part

- 6 pins
- 4 settings
- In 1 project

Drawn live by the editor's own code, at the size you see it.

At a glance

## The Six-axis IMU, LSM6DSOX in brief

What it is, and every setting the properties panel gives it.

The ST LSM6DSOX is a six-axis inertial measurement unit. It reads acceleration and turn rate, sixteen bits each, over I2C at 0x6A, with data rates from 12.5 Hz to 6.66 kHz. It is the motion sensor on newer Adafruit and Arduino boards, with lower noise than the MPU6050 and a machine learning core of its own, which the model leaves out. Pins are VIN and GND for supply, SCL and SDA for I2C with the board carrying the pull-ups, and INT1 and INT2 left high-Z. Properties are the address, 0x6A or 0x6B, plus pitch, roll and heading sliders that tip and turn the board. The gyroscope reads a rate, so it moves only while a slider moves. The model leaves out the FIFO, embedded functions, interrupt pins, filters, noise and offsets. For 10 ms after power-on it boots and does not answer.

Family

Sensors

Pins

6

address

106

pitch

0

roll

0

heading

0

Pins

## 6 pins

Named as the editor names them, so a wire lands where you expect it.

Pin

What it does

VIN

Supply, 3 to 5 V on the board.

GND

Ground.

SCL

I2C. The board carries the pull-ups.

SDA

I2C. The board carries the pull-ups.

INT1

Interrupts, left high-Z by the model.

INT2

Interrupts, left high-Z by the model.

How to use it

## How to use the LSM6DSOX accelerometer with an Arduino

The built-in project "Nine axes" shows this part wired to an Arduino Uno. An LSM6DSOX accelerometer and gyroscope sits beside an LIS3MDL magnetometer. Together they give pitch, turn rate and compass heading: the three things a drone or a head tracker needs. The project runs beside the words and opens in the editor as drawn.

Pitch comes from the accelerometer alone. The gyroscope reads turn rate only while the board is moving. Drag the pitch slider on the LSM6DSOX to tilt the board, and drag the heading slider on the LIS3MDL, plus the one on the LSM6DSOX, to see the gyro move.

With default settings, the serial monitor printed: "pitch 20 turn 0 dps heading 90". Pitch 20 comes from the default pitch slider, and the turn is 0 because the board is still.

After changing the pitch setting to 40, the serial monitor printed: "pitch 40 turn 0 dps heading 90". Only the pitch number changed, because the slider tipped the board while it stayed at rest.

Part pin

Goes to

SCL

Arduino Uno R3 pin SCL

SDA

Arduino Uno R3 pin SDA

GND

Arduino Uno R3 pin GND

VIN

5 V

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

sketch.ino · Arduino Uno R3 · the first 45 lines

Common errors

## Common Six-axis IMU, LSM6DSOX errors and fixes

What goes wrong

The fix

The sketch prints "No LSM6DSOX" and reads nothing.

Check the wiring: SCL to SCL, SDA to SDA, GND to GND, VIN to 5 V.

Both sensors read zeros.

Both sensors power up off. Write a data rate before reading, which begin_I2C and the Adafruit library handle for you.

The gyroscope never moves.

It reads a rate, so it is zero whenever the board is still. Drag a pitch or heading slider and the turn rate appears.

The chip does not answer right after power-on.

It boots for 10 ms after power-on. Wait a moment before talking to it.

Questions

## Questions and answers

### what is the lsm6dsox

It is a six-axis IMU from ST. It reads acceleration and turn rate, sixteen bits each, over I2C.

### what is the lsm6dsox i2c address

The default is 0x6A. The address property can also be set to 0x6B.

### lsm6dsox vs mpu6050

The LSM6DSOX has lower noise than the MPU6050. It also has a machine learning core, though the model does not include it.

### why is my gyroscope reading zero

The gyroscope reads a turn rate, so it reads zero whenever the board is still. Drag the pitch or heading slider to move it.

How it is modeled

## What is true about the Six-axis IMU, LSM6DSOX, here

In its help article’s own words: what the simulation gets right, and where it stops.

### Not modeled

The FIFO, the embedded functions (pedometer, tap, tilt, the machine learning core), the
interrupt pins, filters, noise and offsets.

From LSM6DSOX accelerometer and gyroscope, in full.

Projects

## See the Six-axis IMU, LSM6DSOX in a project

One built-in project uses it. It opens in the editor, already wired.

Boards

## The boards it is shown on

This board has a built-in project with the Six-axis IMU, LSM6DSOX in it.

- Arduino Uno R3

Keep going

## Keep going

- I2C Scanner for Arduino and ESP32, and Fixes
- Accelerometer and gyroscope, MPU6050
- Accelerometer, ADXL345
- Nine-axis IMU, MPU-9250

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the Six-axis IMU, LSM6DSOX

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.

Start building free Open the editor
