Bosch Sensortec Community

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

    BNO055 gyro 0 for all values

    BNO055 gyro 0 for all values

    Plasmabot
    Member

    Hello,

    I have recently created a custom PCB which includes a 16mhz atmega32u4 at 5v, a BNO055 (over i2c, no external crystal) and a TXS0102 level shifting IC. I am having a problem with the BNO055 in that the gyro values (registers 0x14 through 0x18) are always 0. The other sensors and the sensor fusion euler angles function properly. The euler angles sometimes freeze also and I cannot calibrate the magnetometer at all while the gyro calibration is always 3. The self test always reports that everything works except for the gyro, the system does not report any errors.

    Here are the solutions I have tried:

    • Changing operation modes to NDOF, IMU, AMG and GYRO ONLY
      • Result: No change, gyro values still always 0, gyro fails self test
    • Using the Adafruit BNO055 library instead of my code
      • Result: No change
    • Desoldering the BNO055 and replacing it with a new one from digikey
      • Result: No change

    Thank you for your help.

    My code is attatched. It uses the arduino standard wire i2c library. (.ino files are not allowed so I have zipped it.)

    5 REPLIES 5

    kgoveas
    Community Moderator
    Community Moderator

    Hi Plasmabot,

    Are the register values after the fix? Register 0x03 should be non-zero. 

    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