10-10-2020 09:35 AM
Connected bmx160 to nordic nrf52 DK board over i2c. The x,y,z readings are zero from both accelerometer and gyroscope.
Followed this https://github.com/BoschSensortec/BMI160_driver/wiki/How-to-use-an-auxiliary-sensor-or-magnetometer-...TWI initialization, BMI160 initialization, accelerometer and gyroscope set config is success. After that x,y,z readings are zero from both accelerometer and gyroscope.
10-12-2020 03:35 PM
Hello Sijil,
"TWI initialization, BMI160 initialization, accelerometer and gyroscope set config is success." Could you get chip id? You could capture I2C wave form to check actual I2C communication first.
10-13-2020 05:05 AM - edited 10-13-2020 05:06 AM
would you like to read some registers to check whether to success, like 0x02/0x03/0x41/0x41/0x42/0x43?
If unsuccessful, probable you need to add delay function after bmi160_init or before bmi160_set_sens_conf().