How to set ranges for gyro and accel for Gravity - BMI160 6DoF IMU

userHead Mikolaj.Gra 2023-03-14 16:53:18 593 Views1 Replies

Hello, 

 

I have Gravity - BMI160 6DoF IMU (DFRobot SEN0250). I would like to set the following parameters from the arduino ide using DFRobot_BMI160.h library:

-BMI160_ACCEL_RANGE_4G
-BMI160_ACCEL_ODR_50HZ 
-BMI160_GYRO_RANGE_250_DPS
-BMI160_GYRO_ODR_50HZ

 

but I don't know what syntax to use to set these parameters for the sensor. Syntax “bmi160.setRanges(BMI160_ACCEL_RANGE_4G)” didn't work.

Does anyone have a solution to change the range of values?

 

Thanks by advance.

 

2023-03-15 14:02:23

 

For Gravity - BMI160 6DoF IMU (DFRobot SEN0250), according to the library, you may have to call this function to modify the configuration of the sensor.

 

userHeadPic NeloKin