Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    bmi270 CAN NOT SET ACCELARATION BANDWIDTH res_avg16 on arduino teensy 4.1 board

    jimit007
    New Poster

    bmi270 CAN NOT SET ACCELARATION BANDWIDTH res_avg16 on arduino teensy 4.1 board

    hi,

    jimit here, I recently buy a bmi270 IMU, for my flight controller project, I successfully initialize the sensor without any problem(writing a config file with help of a datasheet) now I initialize the sensor in normal mode and start pulling the acceleration sensor data, I set  ACC_range = 2G,  then I set the ODR 200Hz, bandwidth on res_avg16 mode, then I show now I see I get Acceleration on the Z axis 4175 - 4185 instead of  16384, I don't know why this happened then I check 0x1b Event resistor, I see I get Error of 1, means ACC_CONFIG error, I am pretty sure I write right resistor on my config file I can show you in my code,  please check my code and guide me what did I wrong, thank you!

    Tags (1)
    3 REPLIES 3
    Minhwan
    Community Moderator

    Re: bmi270 CAN NOT SET ACCELARATION BANDWIDTH res_avg16 on arduino teensy 4.1 board

    Hi, 

     

    Why don't you use our API? 

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

    Here is the Arduino example code based on API. 

    It's not latest API, so please update the bmi270 and bmi2 with above URL. 

    Thank you. 

    jimit007
    New Poster

    Re: bmi270 CAN NOT SET ACCELARATION BANDWIDTH res_avg16 on arduino teensy 4.1 board

    brother, I am building a flight controller, I don't want to use any API implementation code please can you help me? am I right or wrong in my code? can you please check my code? I request you!

    Minhwan
    Community Moderator

    Re: bmi270 CAN NOT SET ACCELARATION BANDWIDTH res_avg16 on arduino teensy 4.1 board

    Hi Jimit, 

     

    If you need my help for register programming, please provide your data log using logic analyzer. 

    Then, I can check where is problem. 

    Thanks, 

    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