Bosch Sensortec Community

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

    BMX160 - Number of averaging cyrcles

    BMX160 - Number of averaging cyrcles

    Nikosant03
    Long-established Member

    Hi everyone,

    I was looking the BMX160 datasheet and on page 18 the table 9 shows the current consumption in according to number of averaging cyrcles and ACCEL ODR settings. 

    What is the AVG-Number of Averaging Cyrcles and how could I change this value at my code?

     

    Screenshot_41.png

     

    Thanks in advance

    Nick

    6 REPLIES 6

    BSTRobin
    Community Moderator
    Community Moderator

    Hello,

    You could also refer page 22 from BMX160 data sheet. In the same time, the larger the average value, the more sampling times.

    The following is accelerometer example to config register by using BMX160 API.

    bmx160_set_accel_bw(BMX160_ACCEL_OSR4_AVG1);

    #define BMX160_ACCEL_OSR4_AVG1 (0)
    #define BMX160_ACCEL_OSR2_AVG2 (1)
    #define BMX160_ACCEL_NORMAL_AVG4 (2)
    #define BMX160_ACCEL_CIC_AVG8 (3)
    #define BMX160_ACCEL_RES_AVG2 (4)
    #define BMX160_ACCEL_RES_AVG4 (5)
    #define BMX160_ACCEL_RES_AVG8 (6)
    #define BMX160_ACCEL_RES_AVG16 (7)
    #define BMX160_ACCEL_RES_AVG32 (8)
    #define BMX160_ACCEL_RES_AVG64 (9)
    #define BMX160_ACCEL_RES_AVG128 (10)

    ACC data processing.JPG

     

    Nikosant03
    Long-established Member

    Hi BSTRobin and thank you for your answer,

    Is there a BMX160 API provided by Bosch? At the moment I am using the BMI160 API to program the BMX160

    BSTRobin
    Community Moderator
    Community Moderator

    Hello Nikosant03,

    Yes, there is BMX160 API. You could apply for it with local Bosch distributor.

    Nikosant03
    Long-established Member

    Hi BSTRobin and thank you for your answer,

    So, if I have understand correctly, for example, for the accelerometer for AVG 16 the maximum ODR in order to stay in low power mode is 50Hz. That means that 16 signal samples will be averaged per 20ms right? The higher the AVG the lower the noise level but the current consumption is increased right?

    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