Bosch Sensortec Community

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

    BMX160 - Setting the correct ODR

    BMX160 - Setting the correct ODR

    Nikosant03
    Long-established Member

    Hi, I suppose that this is a very simple question 🙂

    I there any reason to set higher ODR that the frequency of sensor reading?

    For example, in my code I have set the ODR for both accel and gyro at 800Hz but I actually read the sensors with a frequency of 100Hz. Is there any reason to have the ODR = 800Hz (or higher) or should I decrease it to 100Hz?

    sensor.accel_cfg.odr = BMI160_ACCEL_ODR_800HZ;     
      sensor.accel_cfg.range = BMI160_ACCEL_RANGE_2G;    
      sensor.accel_cfg.bw = BMI160_ACCEL_BW_NORMAL_AVG4; 
      sensor.accel_cfg.power = BMI160_ACCEL_NORMAL_MODE; 
    
      sensor.gyro_cfg.odr = BMI160_GYRO_ODR_800HZ;        
      sensor.gyro_cfg.range = BMI160_GYRO_RANGE_2000_DPS; 
      sensor.gyro_cfg.bw = BMI160_GYRO_BW_NORMAL_MODE;    
      sensor.gyro_cfg.power = BMI160_GYRO_NORMAL_MODE;    

    Thanks in advance 

    Nick

    3 REPLIES 3

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Thanks for your inquiry.

    If you set BMX160 both accel and gyro ODR to 100Hz, then the 3dB cutoff frequency for accel and gyro will be 40.5Hz and 39.9Hz respectively according to BMX160 datasheet Table 13 and Table 15. If your physical motion signal maximum frequency is 50Hz for example coming from the vibration, then 100Hz ODR for BMX160 accel and gyro will not be fast enough to measure and duplicate the motion signal. You need to increase the ODR to have the bandwidth that is higher than 50Hz.

    Thanks.

    Nikosant03
    Long-established Member

    Thank you for your great responce!! So in order to measure with a frequency of 100Hz I have to set at least 400Hz ODR for both Accel and Gyro right?

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Yes, you should set BMX160 accel and gyro ODR to 400Hz or higher in order to measure 100Hz signal, because the 3dB cutoff frequency of accel and gyro is higher than 100Hz when at 400Hz ODR.

    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