Bosch Sensortec Community

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

    BMI160 IMU Gyroscope data does not update

    New Poster

    BMI160 IMU Gyroscope data does not update

    Dear All,

    I am currently trying to gather data from the BMI160 shuttleboard after successfully having done so with the other BMIs.

    However, with this one, when I print the gyroscope values (and magnetometer) they do not change but are fixed. However, the accelerometer ones do change.

    The pin layout I have is 3.3V to pins 1,2,8,9,15  with a pullup resistor. SCL and SDA to pins 16 and 17 with pullups and Ground to pin 3.
    I also have set commands to turn on the gyroscope and accelerometer to register 0x7E with values 0x15 and 0x11 respectively. I also wait more than the required time before acquiring data once they are powered up.
    I also read register 0x03 in order to check whether the gyroscope is powered on and I get 0x14 as a result indicating that the gyroscope is indeed on. However, when reading register 0x1B to check if the gyroscope is data ready, the 6th bit (so the one for the gyro) is equal to 0 indicating that it is not data ready.

    I was wondering what I was missing in order to refresh the gyroscope data.

    Thanks in advance,
    Best Regards,

    Anthony Guillard

     

    2 REPLIES 2
    Community Moderator

    Re: BMI160 IMU Gyroscope data does not update

    For shuttle connection,  3.3V goes to 1, 2, 15 without pull up register then SDA / SCL goes to pin 17 / 18. 

    You enable the acceleration and gyro at the same time in sensor, what is the respective ODR for them?

    In BMI160,  the sampling of accel and gyro are based on same clock base.   And both new data are generate at same time point.  in this case, when you got interrupt and read from 0x1B, you are able to get both data ready for accel and gyro.  and the status is read to clear means after first read, you read it again, the data ready indication will be 0 . 

    So if you enable both data ready interrupt for accel and gyro, in one interrupt response routin, you shoule able to get bit 6 and 7 in relative register. 

    Highlighted
    Established Member

    Re: BMI160 IMU Gyroscope data does not update

    Hello

    I am using the BMI160 shuttle board for my application with SPI connection. My application is to have continuous accel/gyroscope. I have two questions with regard your answer:

    1- Does this wiring configuration work for SPI as well?

    2- Do I need any interrupt for having the accel/gyroscope data?

     

    Thanks

    Tags (2)
    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