Hi, I'm new to IMUs. We created code to initialize and use the BMI160 inertial measurement unit very similar to Bosch's driver offered in github. I can read gyroscope and magnetometer data, but the accelerometer data freezes most of the time. That is, it repeats the same, or very similar values, all the time. My code goes like this: 0) Initialize the IMU and Magnetometer. All three sensors power mode set to normal. ACC_CONFIG = 0x28, ACC_RANGE = 0x03. 1) Press a button on our device 2) Start reading the DATA register every 10 ms, for 10 seconds, storing it in an array in RAM. 3) After reading and storing the data, print it to our DEBUG serial output (i.e. printf) Result: accel= -6298,1403,-3084, accel= -6298,1403,-3084, accel= -6298,1403,-3084, ... and so on. I verified that these data values are actually received in our I2C interface. Any ideas of what can cause the frozen data? Thanks in advance.
... View more