Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Distance calculation using linear acceleration.

    Distance calculation using linear acceleration.

    PriyanshuM
    Occasional Visitor

    Hello,

    We are using a BNO055 sensor in one of our projects, to achieve below-mentioned functionalities,
    1] To calculate the distance by double integrating the linear acceleration.
    2) Rotation of the video stream based on the angle received from the Gyroscope.

    We are facing a problem with distance calculation functionality as described below.
    *BNO055 is configured in NDOF sensor fusion mode and kept in idle position.
    * Even when there is no movement, there is a considerable amount of noise present in the linear acceleration data.
    * This results in a cumulative error, which is around a few meters in a couple of minutes only.
    * Please suggest a way to reduce the noise, or anything to take care of during distance calculation.

    Also, let me know if the sensor is suitable for screen rotation functionality.

    1 REPLY 1

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Thanks for your inquiry.

    We don't recommend to use linear acceleration to obtain distance by double integration, because little noise in linear accelerations will accumulate to large distance error at distance = 0.5 * a * t^2. For example, if the linear acceleration 'a' has 1mg noise which is 1 * 0.001 * 9.81m/s^2 = 0.00981m/s^2. At 100 seconds of time, the distance error = 0.5 * 0.00981 * 100^2 = 49m.

    Additional filtering after BNO055 linear acceleration output will reduce the noise, but this will have delay for the motion. It is a trade-off.

    In order to avoid distance increasing when the object is at rest, you may set a dead-zone for linear acceleration output of BNO055. For example, when abs(a) < 3mg, then a = 0.

    BNO055 9DoF sensor fusion can output Euler angles (pitch/roll/heading) at 100Hz. You can use this data to do screen rotation.

    Thanks.

    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