Bosch Sensortec Community

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

    BNO055 Direction of Movement

    BNO055 Direction of Movement

    paschaef
    Member

    Hi all,

     

    Is there a possibility to measure the direction of movement in sensor-body-coordinates with the BNO055?

    Generally, the approach would be to integrate linear acceleration over time to obtain the velocity in each axis and keep track of velocity to obtain a vector of the actual movement of the sensor. However, in the datasheet of the BNO055 sensor it says integrating lineare acceleration is not a good idea:

    Note: The linear acceleration signal typically cannot be integrated to recover velocity, or
    double-integrated to recover position. The error typically becomes larger than the signal within
    less than 1 second if other sensor sources are not used to compensate this integration error.

    Is it possible to perform such a task with the BNO055? The value of the velocities is not important only the direction of movement.

     

    Thanks for your help.

    5 REPLIES 5

    Vincent
    Community Moderator
    Community Moderator

    What is the exactly result you want about the Direction of Movement. 

    Only the direction itself or the distance of the movement. 

    If only the direction,  then using orientation data is already enough.

    If you are care about the moving distance,  then you need to consider to use BNO output (compensated accel and gyro data) with third party algorithm.  Directly use linear acceleration is not a good idea which already explain in datasheet and you copied here.  

    The goal is to know in which direction the sensor is moving.

    Imagine the followoing scenario: the sensor performs a 1 dimensional movement along the x-axis. Then, the accelerometer indicates positive acceleration in x direction in the beginning. While moving with constant velocity, the acceleormeter shows no acceleration at all. When the the sensor is deaccelerating it shows a negative acceleration on the x axis (in the oposite direction of the actual movement).
    Our goal is to get a vector pointing always in x-direction during the whole movement (in this example). This information is needed to activate further sensors that are pointing in the respective direction. Is this task possible ?

    Can you elaborate on how to use only the orientation data to perform this task, please?

     

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Thanks for your inquiry.

    It is true that integrating BNO055 linear acceleration outputs to obtain the velocity vector is not a good idea. This is because any noise of the linear acceleration outputs will quickly accumulate to large velocity vector errors.

    BNO055 is capable of providing absolute orientation with respect to fixed local coordinates. This means that you always know where your device is pointing statically and dynamically. If you add one more 3-axis accelerometer such as BMA253 in your device, then you can enable BMA253 built-in high-pass filter to get real-time acceleration data that has removed gravity vector. By analyzing the BMA253 data after high-pass filter you should be able to determine which direction on your device body coordinates your device is moving.

    Thanks.

    Vincent
    Community Moderator
    Community Moderator

    If you only care about the motion direction,  you can take linear accel then accumulate with time to get velocity value. 

    Then positive velocity means move towards posivite direction of one axis and negative velocity means move towards negative direction of one axis. 

    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