Bosch Sensortec Community

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

    BHI160b Shuttle Board with STM32

    belaya
    Established Member

    Re: BHI160b Shuttle Board with STM32

    I had an idea and looked a little bit closer to the Sensor Configuration. Because i want to enable the Rotation Vector, i searched in the datasheet which Sensors i need to activate to generate sensor ouput for the rotation vector. Actually i couldnt find it in the datasheet but in the code i obviously used the magnetometer because of mapping the matrix for the magnetometer. I thought maybe the Magnetometer wasn't connected to the supply voltage, but all sensors are enabled by default and the magnetometer was connected to the supply voltage. Then i changed the firmware from :

     

    #include ".\firmware\Bosch_PCB_7183_di03_BMI160-7183_di03.2.1.11696_170103.h"

     

    to

     

    #include ".\firmware\Bosch_PCB_7183_di03_BMI160_BMM150-7183_di03.2.1.11696_170103.h"

     

    And after that change i started to have continously readings, the interrupt fires and data has been transmitted.

    success.png

    I attached the I2C capture log file to this Post.

    I also can send the Quaternions via UART to my serial port to the pc!

    HAL_UART_Transmit(&huart2,(uint8_t*)out_buffer, 42, HAL_MAX_DELAY);

    The problem was the firmware, if i want to use the Game rotation vector which is a Sensor fusion without the Magnetometer, should i use the old Firmware?

     

     

    Vincent
    Community Moderator

    Re: BHI160b Shuttle Board with STM32

    Yes.  if you just need game rotation,  you can use first FW.  if you need rotation vector,  you need second FW. 

    Rotation vector is 9DoF sensor fusion which required magnetic sensor.

    Game rotation is 6DoF sensor fusion which only need IMU data. 

    belaya
    Established Member

    Re: BHI160b Shuttle Board with STM32

    Thank you very much for your help!

    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