Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMA222. Incorrect acceleration values

    BMA222. Incorrect acceleration values

    davidovskii
    New Poster

    Hello.  

    I am a BMA222e accelerometer user. I use the CJMCU 222e board to connect to it. Having connected to the board for the first time, I received the correct temperature and acceleration values. However, recently, on a temperature request, I get 0x00 in register 0x08. Register 0x07 contains the value 0x7F permanently. register 0x05, regardless of position, contains the value 0x08. In register 0x03, the values ​​change, but do not correspond to reality. At the same time, the rest of the accelerometer registers have a standard value, except for the 0x0E register, which contains the value 0x81. To solve this problem, I did a self-test for each axis as well as a softreset. Nothing helped. Could you help me? 

    15 REPLIES 15

    Jet
    Occasional Contributor

    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.

     

     

    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

    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.

     

     

    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

    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