11-10-2023 07:24 AM
Hi team,
I use MAX78000 to interface the BHI160B IC and for calibration of the IMU sensor I use the following example https://github.com/boschsensortec/BHy1_driver_and_MCU_solution/blob/master/examples/calib_profile_ex...
I can calibrate the accelerometer but have problems with the magnetometer and gyroscope as the accuracy value does not change from 0.
The calibration procedure I used is referred to in the below video.
https://www.youtube.com/watch?v=Bw0WuAyGsnY
can anyone give me a hint as to what the problem might be?
Thanks in advance
Saicharan
Solved! Go to Solution.
11-13-2023 03:54 AM
Hi Saicharan,
I upload example on STM32F4 for your reference, which based on BHI160B sensor API https://github.com/boschsensortec/BHy1_driver_and_MCU_solution/tree/master
Eanble the macro definition in user_define.h
#define USE_BHI160
#define BHI160_BMM150_9DOF
Eanble virtual sensor IDs VS_TYPE_ACCELEROMETER, VS_TYPE_GYROSCOPE, VS_TYPE_GEOMAGNETIC_FIELD and get calibration profile & accuracy in callback function sensors_callback_acc_gyro_mag().
11-15-2023 12:01 PM - edited 11-15-2023 12:10 PM
Hi BSTRobin,
I have tried the above code, Now I can calibrate Acc and Gyro but the magnetometer calibration accuracy values change from 1,2,3 then again to zero.
is there anything we need to enable or disable?
11-28-2023 10:27 AM
Hi BSTRobin,
The calibration values are lost during the power cycle. is there any possibility of storing the calibration parameters and rewriting them to the device on every power on?
Thanks
G Saicharan