Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMA400 Accel 5 Click with ESP32 - Auto wakeup & lowpower

    BMA400 Accel 5 Click with ESP32 - Auto wakeup & lowpower

    kbeggs2021
    New Poster

    Goal: Automatic normal power with activity, automatic low power with inactivity

    Configuration followed: https://community.bosch-sensortec.com/t5/Knowledge-base/Introduction-about-BMA400-Auto-Wakeup-and-Au.... GEN1 > INT2, Wakeup > INT1, Manual updates for both, threshold 8, not latched, filter 2, inactivity setup for GEN1, samples 3.

    ESP32 physical pin connections: 

    • SDA: 33, SCL: 32
    • 3V3, GND
    • INT = 25

    Accel 5 Click physical pin connections:

    • 3V3, GND
    • INT1/2
    • SDA, SCL

    Although GEN1 is programmed to INT2, it seems like the interrupt pin is actually connected to INT1.

    MAJOR ERROR: INT status seems to only change when the pin is PHYSICALLY DISCONNECTED from the ESP32. That is the ONLY TIME the pin 'recognises' that there is an interrupt. 

    My basic code is based from Seeed: https://github.com/Seeed-Studio/Grove_3Axis_Digital_Accelerometer_BMA400. The code I used is attached (Accelclick5 is actually Accelclick5.ino, as I porgrammed this in Arduino but cannot upload the file like that).

    I have tried to follow the suggested activity change code: https://github.com/BoschSensortec/BMA400-API/blob/master/examples/activity_change/activity_change.c - but to my knowledge, you shouldn't need activity change interrupts (like it does in this code). 

    I have also tried implementing the basic code (datasheet example). I cannot find the original post - I apologize for not showing properly. This HAS THE SAME ERROR - interrupt only being recognised WHEN THE WIRE IS REMOVED (so there is no connection between the ESP32 and the Accel Click 5).

    Is it a physical issue? Do I need to connect another pin? 

    Thanks for the help! I really need it!

     

     

     

    2 REPLIES 2

    kbeggs2021
    New Poster

    Here is the schematic of the Accel_5_click for those wondering about physical pin connection like I am: https://download.mikroe.com/documents/add-on-boards/click/accel-5/accel-5-click-schematic-v100.pdf

    BSTRobin
    Community Moderator
    Community Moderator

    Hello kbeggs2021,

    Please refer the following application note, and re-config your code again.

    https://community.bosch-sensortec.com/t5/Knowledge-base/Introduction-about-BMA400-Auto-Wakeup-and-Au...

    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