Adafruit_LIS3DH icon indicating copy to clipboard operation
Adafruit_LIS3DH copied to clipboard

LIS3DH_DATARATE_LOWPOWER_5KHZ mode is not setting the accelerometer in 5kHz low power mode but in 1.344 kHz High resolution mode

Open nalexopo opened this issue 6 years ago • 4 comments

lis.setDataRate(LIS3DH_DATARATE_LOWPOWER_5KHZ);

Above code is not setting the accelerometer in 5kHz mode but in 1.344 kHz High resolution mode. I read the LIS3DH_REG_CTRL1 register and i get a value b'1001 0111. It should be b'1001 1111 for 5kHz low power mode and the HR bit in LIS3DH_REG_CTRL4 should be 0. Read Lis3dh datasheet in page 35/54.

nalexopo avatar Jun 01 '18 07:06 nalexopo