Bosch Sensortec Community

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

    BMI160 accelerometer Data command and data unit

    BMI160 accelerometer Data command and data unit

    Soup
    New Poster

    Hello,

    I have two questions about the BMI160-acceleration sensor.

    Im using the BMI160 sensor with the Arduino ide programme to get gyroscope and accelerometer data for a project. I have no problem to get the gyroscope data on the serial monitor with the following command :

    BMI160.readGyro(gx, gy, gz);

    I tried to get the accceleerometer data with the same command "BMI160.readAccel(gx,gy,gz)" or "BMI160.readAcc(gx,gy,gz)" but without any success. How do I get the data? What do I have to write into my programme?

     

    My second question is about the stored Gyro- and Accelleration data. What is the unit, the data is stored and is shown on the serial monitor? How can I convert them into °/s (Gyro) and m/s^2 ? I could not find anything in the datasheet.

    Kind regards

    Sophie

    4 REPLIES 4

    Vincent
    Community Moderator
    Community Moderator

    Did you try  bmi160.readAccelerometer(ax,ay,az)?

    Hi Sophie,

    Which BMI160 library are you using ? You should refer to the documentation of the BMI160 library. Our official API is writting in C code (unlike the C++ library you are currently using)
    You can download it here: https://github.com/BoschSensortec/BMI160_driver/

    o_O

    ok, that was easy. Thank you!!

    Can you help me with the converting?

    Is it right to multiply the raw accel data with the LSB value(typ.) (from the datasheet, sensitivity) to get m/s^2 ?

    Do I do the same calculation with the raw gyrodata and its LSB value(typ.)?

    How do I know which range I am having in my programme, when I did not set any?

    Kind regards

    Sophie

    Hallo,

    I have the same problem . How I dan convert the raw data (get from function "getAcceleration(...)") to m/s^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