Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    how to get data from BHI360 with Arduino

    how to get data from BHI360 with Arduino

    FIRAT_SARP
    Established Member

    Hello, I'm trying to retrieve data from the BHI360 shuttle board using an Arduino via I2C. Are there any libraries or examples available for initializing and reading data via I2C? Also, could you provide a connection diagram for the BHI360 shuttle board with I2C?

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi FIRAT_SARP,

    Thank for your inquiry.
    For hardware part, you can refer to the reply in https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BHI360-I2C/m-p/98494#M18141
    For the software part, you can refer to BHI360 official sensor API & example on github: https://github.com/boschsensortec/BHY2_SensorAPI

    FIRAT_SARP
    Established Member

    Thanks for the reply. I am using a shuttle board with an Arduino.

    • CS (connected to 1.8V)
    • SCK (connected to the host's SCL pin)(ı used pull up resisitors properly )
    • SDO (connected to GND)
    • SDI (connected to the host's SDA)

    I have connected VCC (1.8V) and GND properly to the host's GND.

    I am trying an I2C scanner in Arduino, but it cannot find the BHI360 in the scan data.

    What am I missing? Is it a connection issue or any other initialization protocol for I2C?

    FIRAT_SARP
    Established Member

    To use the BHI360 application board, do I need to re-flash the firmware every time? How can I upload the firmware using I2C and Arduino? I haven't solved my I2C problem yet; I monitored the I2C pins with a digital analyzer and didn't see any activity on the pins. I tried using SPI, and there is some activity on some pins as shown in the image, but I cannot read the chip ID with an example SPI register read code on Arduino. I can't communicate with the BHI360. How can I test if the board is working properly?

    Screenshot from 2024-08-01 16-55-39.png

    Screenshot from 2024-08-01 17-09-10.png

    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