Bosch Sensortec Community

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

    Interfacing BHI260AP through STM32 or Arduino

    Interfacing BHI260AP through STM32 or Arduino

    __Amit_Kumar
    Member

    Hello sir, 

    As you had suggested that BHI260AP is a good replacement of BNO055 sensor. I read BHI260AP api on github and other resources but i didn't find any information about the interface of BHI260AP shuttle board 3.0 with stm or arduino for further prototyping. 

    Can you help me out, I need quaternion or euler angle (as mentioned in example code on github). I need to run these example code to get quaternion or euler angle for further prototyping on arduino or stm32.

    I read about changing the common.c file, but there are many thing and I didn't understand the what exactly I need to change so that those example code run through stm32 or arduino board. 

     

    Thank you

    5 REPLIES 5

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Thanks for your inquiry.

    BHI260AP is soldered on Nicla Sense ME board that is compatible with Arduino at https://docs.arduino.cc/hardware/nicla-sense-me. You may purchase a Nicla Sense ME board and try some sample codes to get the quaternions and Euler angles outputs from BHI260AP.

    Thanks.

    Thankyou for your suggestion, But I have purchased BHI260AP shuttle Board 3.0. 

    Can you suggest me about the interface this shuttle board with stm32? I had read about making changes in common.c, So should I just embedd the I2C api generated by stm32cubeid instead of Bosch Developement Envirnment api? Or I need to something extra, which I am not aware of.

     

    Thank you

    Minhwan
    Community Moderator
    Community Moderator

    Hi Kumar, 

     

    I think you already notice latest our API in github since you mentioned about common.c

    https://github.com/BoschSensortec/BHY2-Sensor-API

    Yes, you need to replace I2C or SPI interface with your own arduino SPI or I2C functions. 

    Please remove all coines related functions and coines.h in common.h. 

    That is our EVM related function. 

    The attached file is for Arduino example based quite old API version, but could be useful for migration work. 

    Therefore, you need to update it with github API. 

    Thank you.  

    Dear Minhwan,
    Thank you for your response, as i understand, I have change embedded(replace with coin's function) the I2C api of any controller (either STM32, Arduino) within the given functions and leave everything as it is. 
     
    I will try it and let everyone know on the same thread. Hope this work fine for us.
     
    Thank you for your support.
     
    Regards,
     
    Amit Kumar
    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