I am trying to configure BMI270 in low power mode and I followed the steps given in the datasheet under the quick start section. I want to use the average values of the accelerometer data for 32 or 64 samples. And I guess we can only get the average in low-power mode.
The problem I am facing is, that after the device is in Low power mode, I am getting the accelerometer data as incorrect values.
for +- 2g and +-4g ACC_RANGE, I get the 1g reading as 2047 and 4087 respectively. Sometimes the accelerometer data is OFF by factor 4. According to the datasheet, the values should be 16384 and 8192 respectively.
My config settings for low power mode:
And then I read the accelerometer data and this puts the device in low power mode.
Now, I again change the configuration of the accelerometer ACC_CONF to set ACC_BWP for 32 samples and set ACC_ODR for 100 or 200 Hz, and then when I read the data the accelerometer data is OFF by some factor of 2 or 4. And I am not sure how to resolve this problem.
I tried changing the ACC_ODR and ACC_BWP and tried all combinations but the data is not correct. i
for only two cases I got the correct data which was for
And I do not understand why is this the case. For only two cases I get the data correct and for all others, the data is OFF by some factor.
Can someone please help me with that? Thanks 🙂