Bosch Sensortec Community

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

    BMI160 beats like a resonant and wrong value

    BMI160 beats like a resonant and wrong value

    coder
    Member

    Moderators and engineers:

    We found some problems with the debugging program using BMI160 DEM BOARD, and we'd like to ask you to give us guidance.

    We want to do gravity acceleration testing in the hardware environment as follows:

     Cortex M4F and BMI160 Demo Board.

    The BMI160 sets the acceleration sensor range at +/-2g  and the gyroscope at 2000, the sampling rate is 100Hz.

    The test action is to slowly turn the BMI160 Demo Board 90 degrees, then remain stationary, do such actions for one turn. As light as possible during the flip process, the acceleration sensor output value is mostly gravity value.

    Program is as simple as possible:

    Sensors setting:

    /* Select the Output data rate, range of accelerometer sensor */
    bmi160.accel_cfg.odr = BMI160_ACCEL_ODR_100HZ;
    bmi160.accel_cfg.range = BMI160_ACCEL_RANGE_2G;
    bmi160.accel_cfg.bw = BMI160_ACCEL_BW_NORMAL_AVG4;

    Read data:

    bmi160_get_sensor_data((BMI160_ACCEL_SEL | BMI160_GYRO_SEL), &accel, &gyro, &bmi160);
    ax = (float)accel.x / 16384.0;
    ay = (float)accel.y / 16384.0;
    az = (float)accel.z / 16384.0;

    Data output:

    bmi160_get_sensor_data((BMI160_ACCEL_SEL | BMI160_GYRO_SEL), &accel, &gyro, &bmi160);

     

    Now lets see the Issues:

    Issue 1: there some regular value jumps in 10Hz

    Raw Acc. valueRaw Acc. valueRegular jumps in 10 HzRegular jumps in 10 HzJumps of valueJumps of value

     

    Issue 2: Illogic data appears.

    This is unreasonable, it is impossible to produce so high acceleration values when turning  slowly, and it is illogical to look at the gyroscope data.

    20190825213454.jpg20190825213503.jpg

     (from left to right: 6bytes Acc, 6bytes Gyro, AccZ, AccY, AccX, GyroZ, Gyro Y, Gyro X)

    I know there's noise in BMI160, but it can't be noise, noise are not so high. I found that there was a lot of such data when i connected with board to board cable-connector between my CPU BOARD and SENSOR BOARD, and then I took a soldered connection, which was reduced, but still unavoidable.

    Thanks for your help!

    Andy

    2 REPLIES 2

    shellywang
    Occasional Contributor

    Please take a look at the data,which was logged as the sensor rotated around its y-axis, with Acc range = 2g, ODR =100 Hz, normal bandwidth; Gyro range = 2000dps, ODR = 100 Hz, normal bandwidth.

    After plotting, we did not observe a 10Hz jump. There is a big accelerometer value in the figure below because the sensor hit the desk before it kept  stationary on the desk.

    Please give further information about:

    1. Could you please describe more details, for example, how you rotated the sensor, around which axis?

    2. Did you rotate the sensor around an axis in the air or on the desk?

    3. Can you try moving the sensor to another position to avoid some occasional disturbances from the external environment and see what result it is?

     

    Thank you Shellywang, the problem was solved, it was my program error in the data conversion part, I rewrote the program, the problem has been solved.

    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