Bosch Sensortec Community

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

    BNO055 Units (Arduino)

    BNO055 Units (Arduino)

    Marc_3D
    Member

    Hello, I am trying to understand the sensor output of my BNO055

    Currently I am publishing data via Rosserial which works fine:

    The output is as follows:

    Screenshot from 2023-09-27 15-28-14.png

    According to the docs the linear accelearation should be in m/s² However it seems to be mm/s².

    Furthermore, the arudino commands to change the units dont seem to work:

    void setup()
    {
    delay(1000);
    Wire.begin();
    BNO_Init(&bno);
    bno055_set_operation_mode(OPERATION_MODE_NDOF);
    delay(1);
    bno055_set_accel_unit(0x00); // m/s²
    delay(1);
    bno055_set_gyro_unit(0x01); // rps
    delay(1);
    bno055_set_euler_unit(0x01); // rad
    delay(1);



    nh.initNode();
    nh.advertise(temp_pub);
    nh.advertise(mag_pub);
    nh.advertise(imu_pub);
    nh.advertise(grav_pub);
    Serial.begin(921600);
    nh.loginfo("initialization done.");
    }


    Changing the values between 0x00 and 0x01 doenst seem to make any difference.

    So my questions are:

    1) What am I doing wrong with the arduino code
    2) What are default units of the BNO055 in NDOF mode?

     

    1 REPLY 1

    Marc_3D
    Member

    It was beause I didnt divide by the given LSB values

    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