Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    BNO055 Fusion Data Spike

    BNO055 Fusion Data Spike

    canpinaremre
    Member

    Hardware : Gravity: BNO055+BMP280 intelligent 10DOF AHRS from DFRobot  & STM32F407VGT Discovery

    Method: Reading Euler angles using I2C

    Problem: There are spikes in reading data.

    Tests:

    1- Tried with another IMU (L3G4200D and LSM303DLHC) and I2C working perfectly fine. This means STM32F407VGT Discovery is OK.

    2- Tried other fusion outputs (Quaternion and Linear Acc) and reading spikes. So the problem is not about Euler registers.

    3- There is no vibration at all just using my hand to rotate very slowly sometimes faster. Speed doesn't change the results. I have always reading spikes.

    Files added:

    1- Excel table for my reading logs. (Obtained from STM Studio)

    2- 1 PNG images from STM Studio that show spikes.

    3- 1 PNG image from Excel table where spike can clearly observable.

    Questions:

    1- Is it a problem that occurs in any BNO055 or my BNO055 is damaged?

    2- What is the probable cause and how to avoid it?

    3- My goal is to use this IMU in Quadcopter. Any advice about using another model? I am not good with filters like Kalman so I have to have an IMU that calculates angles for me.

    This is my second post. The first one never answered. Please I need some answers.

    Emre,

    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    Yes, sorry for copying the post. When there was no answer I want to declare the problem more clearly. Waiting for your solutions. Thank you.

    Emre,

    Hello Emer,

    Email from Emer

    "

    I have added a zip file. In this file, there is 1 raw txt log and 1 excel file for the log.

    You can see 3 spikes in PNG files. They have named with data name and timestamp so you can look from excel.

    For example:

    spike1_euler(2)_t_7481ms = First spike, in bno055_euler[2] with timestamp 7481 ms.

    So go to log.xlsx and see row number 3949. In the time of 7483.93'th ms bno055_euler[2], jump 0 to -16 degree.After that, it comes back to -0.25 degree.

     

    To see better I only have Euler data in the graph. But all measurements are in the log files.

     

    The I2C reading time (elapsed time) labeled with elapsed_time (in ms).

     

    I also added my code snipped for main init and while loop. And I2C related functions.

    My hardware is STM32F407VGT Discovery. It is a very basic developer board.

    I use STM32CubeIDE to program my board.

    I have tested with the same pins, same code (Of course different I2C address) with another IMU and I have 1-2 ms elapsed time max.

    I am using fast mode (400kHz). I have tested with normal mode (100kHz) but the result was worse as expected.

    "

     

    thanks for your update of the data log and better description of your issue. 

    I have tried to reproduce your issue with one BNO055 in my hand, but I cant reproduce.

    I have checked your code and data. It appears to me the problem comes from the setup of I2C. Can you please capture the oscillogram with an oscilloscope and check and then we can have a look at the what really happened about the spike.

     

    BSTRobin
    Community Moderator
    Community Moderator

    Hello canpinaremre,

    After we took phone call with you, could you give further feedback?

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist