Bosch Sensortec Community

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

    BHI260AB Game Rotation Vector drift over time

    BHI260AB Game Rotation Vector drift over time

    btruden_henway
    Long-established Member

    Hi,

    I'm using the BHI260AB hosted by an STM32.

    In my application, I use the Game Rotation Vector for getting the current orientation of the device. But I noted that if I apply a constant vibration (3Hz) on the device, the Game Rotation Vector quaternion got from the chip starts shifting over time. The vibration applied is really slow and has low amplitude, it's just a subtle shaking of the device.

    At the beginning of the test the resulting quaternion of the Game Rotation Vector was:

    • w=0.7987
    • x=0.4669
    • y=-0.1874
    • z=-0.3300

    After 1 minute of shaking the device, the resulting quaternion on the same position was:

    • w=0.8357
    • x=0.4942
    • y=-0.1187
    • z=-0.2078
    1. What could be happening? Is there something related to the filtering of the accelerometer and the gyroscope used by the BHI?
    2. Or is it something related to the BSX algorithm that calculates the Game Rotation virtual sensor?
    3. Is there something I can do to solve this issue? 

    Thanks!

    18 REPLIES 18

    BSTRobin
    Community Moderator
    Community Moderator

    Hello btruden_henway,

    Is IMU only used in your application, and not used geomagnetic sensor?
    Could we know what have you configured for the sensor?

    btruden_henway
    Long-established Member

    Hi BSTRobin,

    I use BHI in IMU mode. I don't have any external magnetometer attached to the BHI chip, the BHI uses its internal accelerometer and the gyroscope.

    As additional info, I host the BHI with an STM32 microcontroller connected over SPI.

    Let me enumerate the entire sequence from the startup until I start reading the Game Rotation Vector values.

    • BHI chip is restarted
    • Monitor the boot status of the BHI and wait to be ready
    • Upload the firmware to the BHI (Bosch_SHUTTLE_BHI260.fw)
    • Wait for the firmware to be validated.
    • Make the BHI boot from RAM.
    • Wait boot and check for firmware errors.
    • Check which virtual sensors are present on the BHI. Verify that Game Rotation Vector is present.
    • Run a self-test on the accelerometer and validate the status
    • Run a self-test on the gyroscope and validate the status
    • Configure the Game Rotation Vector with a sample rate of 25Hz and a latency of 0.
    • Continuously read the FIFO to get the virtual sensor measurements.

     

    BR

    Hi BTSRobin,

    Do you have any update on this?

    Thanks!

    Hello btruden_henway,

    Thanks for your feedback.
    We would like to know how do you make sure you return to the same position after shaking?

    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