cancel
Showing results for 
Search instead for 
Did you mean: 

in LSM6DS3TR The accelerometer is activated from power-down by ODR_XL[3:0] in CTRL1_XL (10h) the gyroscope is activated from power-down by ODR_G[3:0] in CTRL2_G (11h). For combo-mode what we have to do?

Mk.7
Associate
 
1 REPLY 1
Eleon BORLINI
ST Employee

Hi @Mk.7​ ,

to activate both devices (combo mode), you can just set ODR_XL[3:0] and then ODR_G[3:0] in sequence. You can refer for example to Github sample code --> lsm6ds3_read_data_polling.c

  /* Set full scale */
  lsm6ds3_xl_full_scale_set(&dev_ctx, LSM6DS3_2g);
  lsm6ds3_gy_full_scale_set(&dev_ctx, LSM6DS3_2000dps);
  /* Set Output Data Rate for Acc and Gyro */
  lsm6ds3_xl_data_rate_set(&dev_ctx, LSM6DS3_XL_ODR_12Hz5);
  lsm6ds3_gy_data_rate_set(&dev_ctx, LSM6DS3_GY_ODR_12Hz5);

-Eleon