Skip to content

LSM6DS Accelerometer/Gyroscope Sensor

The lsm6ds motion platform allows you to use your LSM6DS Accelerometer/Gyroscope (datasheet) sensors with ESPHome. The I²C Bus is required to be set up in your configuration for this sensor to work.

The LSM6DS is an IMU including a 16-bit 3-axis accelerometer and a 16-bit 3-axis gyroscope, plus an on-chip temperature sensor.

The LSM6DS3 is currently the only supported variant.

# Example configuration entry
motion:
- platform: lsm6ds
accelerometer_range: 4G
gyroscope_range: 2000DPS
sensor:
- platform: motion
type: acceleration_x
name: "LSM6DS Accel X"
- platform: motion
type: gyroscope_x
name: "LSM6DS Gyro X"
- platform: motion
type: roll
name: "LSM6DS Roll"
  • address (Optional, int): Manually specify the I²C address of the sensor. Defaults to 0x6A.

  • accelerometer_range (Optional, string): The full-scale range of the accelerometer. One of 2G, 4G, 8G, 16G. Defaults to 4G.

  • accelerometer_odr (Optional, string): The output data rate of the accelerometer. One of OFF, 12_5HZ, 26HZ, 52HZ, 104HZ, 208HZ, 416HZ, 833HZ, 1666HZ, 3332HZ, 6664HZ. Defaults to 104HZ.

  • gyroscope_range (Optional, string): The full-scale range of the gyroscope. One of 125DPS, 250DPS, 500DPS, 1000DPS, 2000DPS. Defaults to 2000DPS.

  • gyroscope_odr (Optional, string): The output data rate of the gyroscope. One of OFF, 12_5HZ, 26HZ, 52HZ, 104HZ, 208HZ, 416HZ, 833HZ, 1666HZ, 3332HZ, 6664HZ. Defaults to 208HZ.

  • All other options from Motion.

As an IMU with both an accelerometer and a gyroscope, the LSM6DS3 supports all of the Motion sensor types, as well as the orientation binary sensors (face_up, face_down, free_fall, moving) and the shake event.