Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BNO055 Sudden jumps in heading

    BNO055 Sudden jumps in heading

    Zoggbarr
    New Poster

    I'm using the BNO055 in a small robot car. I'm using the BNO055 in NDOF mode, and all other settings at default.  Most of the time the heading is perfectly fine with very little drift even in extreme situations like when the car is doing donuts.  However, sometimes (once every few minute, perhaps) the heading makes  an instantaneous jump of around 20 to 90 degrees. The heading will then usually start drifting back towards the previous heading, but sometimes stop before it gets there (might be interrupted by motion).  I know that several jumps have occured while the car was completely stationary (its an electric RC car, so there are very little vibrations when the car is not moving). Similar jumps have also been observed when the sensor was not mounted to the car.

    The code reads the quaternions over i2c (the euler angles on the BNO055 are never touched) and the resulting heading is visualized in rviz (visualisation program that's part for the robot operating system), so it's unlikely that there is an error related to faulty conversion to euler angles.

    I currently do not have any loggs at hand, but I might get some latter if needed.

    Edit with some more info: The sensor is mounted on the adafruit 9 DoF sensor breakout, and the car is driven indoors.

    1 REPLY 1

    o_o
    Contributor
    Hi Zoggbarr,

    In order to validate the output, we would need the datalog of timestamp, accelerometer, gyroscope, magnetometer, calibration statuses, quaternions and of course an indication from your side on which timestamps to look for the jumps in heading.

    Hypothesis: magnetic data not reliable
    Heading is compensated by using magnetometer data, and the magnetic fields indoors are far from perfect. In addition, since you mention an RC car, I can assume that you have electrical motors with permanent magnets, a lithium battery that contains cobalt, and draw multiple amperes of electrical current. All of these factors can affect the magnetic field around the sensor and ruin your data integrity.

    If the magnetic field is not stable, you can always use the IMU mode, or relocate the sensor further from the disturbances

    o_o
    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