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
... View more
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-Auto-Low-Power/ta-p/8863. 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!
... View more