Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMA456 Not working (I2C)

    tawa
    New Poster

    BMA456 Not working (I2C)

    Hello,

    I'm opening this thread because I made a custom board with a BMA456 sensor, but it's not working. If I try to read the 0x00 register I don't get the 0x16 as result. I also tried to connect my board to arduino and run one of the examples but they also don't work. The other I2C sensors are all working. I tried both 0x18 and 0x19 as device address. I also tried to use the online API for this sensor, and I get "bma456_read_int_status.Error [65532] : Null pointer"

    Did I do any error in the schematic that prevents the sensor from working? If yes, is it possible to fix it somehow without printing a new PCB?

    If the schematic is correct, what can it be the issue?

    tawa_0-1638988511083.png

    Thank you all in advance,

    Best regards

     

    4 REPLIES 4
    doppio-R
    Member

    Re: BMA456 Not working (I2C)

    Good evening,

    one aspect in the schematic is, that I miss the use pull-up resistors (4,7k) for each I2C wire. Maybe you could try this.

    Additional I would check if the sensor is his right position. The SDO pin should have the voltage of Vcc or GND. Make sure it has a defined voltage.

     

    Best regards

    BSTRobin
    Community Moderator

    Re: BMA456 Not working (I2C)

    Hello tawa,

    For hardware side, you should ensure SCL, SDA I2C bus had pull up resistance(from host MCU or external).

    Refer BMA456 github code, https://github.com/BoschSensortec/BMA456-Sensor-API/tree/master/examples/bma456/generic

    You also could refer example code in other community topic for BMA456 discussion. https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BMA456-Init-fail/m-p/47081

    tawa
    New Poster

    Re: BMA456 Not working (I2C)

    I didn't put pull-up resistors because my MCU has already pull up resistors. 
    I tried to follow the example already, but it's not working, I'll try again from zero.

    Regarding the schematic, how I connected the jumper to the other elements is correct? Maybe the problem comes from there. What do you think about it?

    BSTRobin
    Community Moderator

    Re: BMA456 Not working (I2C)

    Hello tawa,

    Haven't seen mistake in your schematic. You could try to setup your software.

    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