Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMA222. Incorrect acceleration values

    Jet
    Occasional Contributor

    Re: BMA222. Incorrect acceleration values

    Hi Sir:

      Did you switch another BMA222e to re-check?

      Could you read out all register values of BMA253 and sent them to us?

       Maybe need to check them correct or not first.

     

     

    davidovskii
    New Poster

    Re: BMA222. Incorrect acceleration values

    I apologize for the long answer, the attached txt file contains the values ​​contained in the registers of my accelerometer.(file Response.txt)

    I do not have the opportunity to use an accelerometer of another model, in my country it is rather difficult to buy quickly.

    I also added the firmware that I use for polling. (I am using PlatformIO in Visual Studio Code)

    Jet
    Occasional Contributor

    Re: BMA222. Incorrect acceleration values

    Hi Sir:

       I am not sure whether you succeed to read out the register values. But I had a look at response.txt, I didn't see the flag I want to confirm first.

       Please see the following picture:

    Jet_0-1614303231927.png

     First CHIP_ID need be read out to check whether to choose the corresponding Sensor.

    BMA222E CHIP ID at register 0x00 is 0xf8. You should first check whether to get this value.

     

     

    davidovskii
    New Poster

    Re: BMA222. Incorrect acceleration values

    Hello.

    I tried to read the register values ​​of my accelerometer using the official API (https://github.com/BoschSensortec/BMA2x2_driver), but I could not run the project on my ESP NODEMCU V2. Do you have an example of firmware for ESP? Could you please share it

    Jet
    Occasional Contributor

    Re: BMA222. Incorrect acceleration values

    Hi Sir:

        Sorry to say that no ESP example is available. In general I also only use STM32 platform.

        Regarding your issue, maybe you should check your communication correct or not if don't get CHIP ID.

    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