03-05-2021 01:22 PM - edited 03-05-2021 02:09 PM
Hi,
I tried to read GyroZ( AA 01 18 02) , and AccZ(AA 01 0C 02) simultanuosly and is continous polling every 100ms. After a certain period of of time Gyro Data is mixed up with Acc Data. I am not able to distinguish between GyroZ data and AccZ data . How can I read Gyroscope and Accelerometer in same time?
Thanks in advance
03-06-2021 04:06 AM
Hello sheejavarghese,
Which mode you configured?
There was example code in github, you could refer it.
https://github.com/BoschSensortec/BNO055_driver/blob/master/bno055_support.c
Application note: https://www.bosch-sensortec.com/media/boschsensortec/downloads/application_notes_1/bst-bno055-an007....
03-09-2021 12:32 PM
@ BSTRobin => NDOF
03-16-2021 02:18 PM
Hello sheejavarghese,
You could use reference code in github to read ACC, GYRO data.
https://github.com/BoschSensortec/BNO055_driver/blob/master/bno055_support.c
/* Raw accel X, Y and Z data can read from the register
* page - page 0
* register - 0x08 to 0x0D*/
comres += bno055_read_accel_x(&accel_datax);
comres += bno055_read_accel_y(&accel_datay);
comres += bno055_read_accel_z(&accel_dataz);
comres += bno055_read_accel_xyz(&accel_xyz);
/* Raw mag X, Y and Z data can read from the register
* page - page 0
* register - 0x0E to 0x13*/
comres += bno055_read_mag_x(&mag_datax);
comres += bno055_read_mag_y(&mag_datay);
comres += bno055_read_mag_z(&mag_dataz);
comres += bno055_read_mag_xyz(&mag_xyz);
/* Raw gyro X, Y and Z data can read from the register
* page - page 0
* register - 0x14 to 0x19*/
comres += bno055_read_gyro_x(&gyro_datax);
comres += bno055_read_gyro_y(&gyro_datay);
comres += bno055_read_gyro_z(&gyro_dataz);
comres += bno055_read_gyro_xyz(&gyro_xyz);