Hello everyone,
I'm working on Angle measurement project
IMU sensor : ICM-42688-P
MCU : nRF52832
Communication : I2C
Configuration of ICM-42688-P
ACCEL_FS_SEL : +- 4G
ACCEL_ODR : 25HZ
ACCEL_UI_FILT_BW : max(400Hz, ODR)/40 (Not sure how to select this parameter)
ICM_WOM_X_THR : 6
ICM_WOM_Y_THR : 6
ICM_WOM_Z_THR : 6
GYRO_FS_SEL : +- 500dps
GYRO_ODR : 25HZ
GYRO_UI_FILT_BW : max(400Hz, ODR)/40 (Not sure how to select this parameter)
Note : AAF and notch filters are disabled.
Initially GYRO is off and Accel is on interrupt mode. When door open/moves, based on accel interrupt turning on gyro and enabling data ready interrupt. Based on data ready interrupt reading the raw data from gyro X axis and calculating the angle
Problem is not getting exact angle and the angle value is based on the way I open the door.Suppose if I open door slowly and stops at know angle(90 degree) it gives one angle value and if I open door fast and stops at same known angle gives some other angle value.
Can any one please help me on this how to get an accurate angle.