Bosch Sensortec Community

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

    BMI270 c++ api for sparkfun

    BMI270 c++ api for sparkfun

    Mark_2004
    New Poster

    Hello

    I use Sparkfun bmi270 board connected via i2c

    I have no problems running the python library and getting accelerometer and gyroscope data, but I have problems using the official BMI270-Sensor-API library

     

    As far as I understand, it is intended for Application/Shuttle Bosh board?

    How can I use BMI270-Sensor-API with Sparkfun bmi270 board?

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi Mark_2004,

    Example code based on BMI270 Sensor API could be migrated to different hardware, not only for shuttle board.
    Could we know what is detailed problems when you used BMI270-Sensor-API on your hardware?

    BMI270-Sensor-API/bmi270_examples/accel.c

    Unable to connect with Application Board!
    1. Check if the board is connected and powered on
    2. Check if Application Board USB driver is installed.
    3. Check if board is in use by another application. (Insufficient permissions to access USB)

    And I changed line 73 in accel.c BMI2_SPI_INTF to BMI2_I2C_INTF

    Minhwan
    Community Moderator
    Community Moderator

    Hi Mark, 

     

    Sparkfun board is different from our application board and shuttle board. It's Sparkfun board. 

    Our API is for our application board and shuttle board. Of course you can still use it after changing I2C functions depends on your board. 

    I'd like to check as below step. 

     

    1) Your application board is our app 2.0 or app 3.0? 

    Application Board 2.0 - https://www.mouser.com/datasheet/2/783/Bosch_Applicationboard-2-0_Flyer-1217...

    Application Board 3.0 - https://www.bosch-sensortec.com/software-tools/tools/application-board-3-0/

    If you are using one of them, please go 2-1). Or, go 2-2) 

    2-1) You have to connect our app board and sparkfun board properly. If you are using I2C, you might need pull up resistors. Then, go 3) 

     

    2-2) You are not using our application board, so you should change interface function. 

    Please go common.c in common folder and change I2C properly for your system. 

     

    3) If you are using our application board and sparkfun, the API is run by our COINES. 

    https://www.bosch-sensortec.com/software-tools/tools/coines/

     

    Thank you. 

    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