04-22-2021 04:36 PM
Using the BMA456 Sensor API and using both examples "Acceleromter.c" then "motion.c". on a Grove Step Counter that carries a BMA456 via i2C linked up to a Raspberry pi Pico.
The accelerometer example works fine, the motion example sets everythine up fine, prints out "shake the board etc " and nothing else happens.
The code is running the loop, but calling the function bma456_read_int_status always returns zero no matter how hard the board is shaken, if i put it into a loop to read the accelerometer ,and shake it, it is easily pulling 2g in one or two axis.
As this is the bosch sensor api, with me just writing the user I2C read./write and delay, i would have thought it should just work, any suggestions to make it work or further fault finding?
12-25-2023 09:56 AM
Firstly please ensure your hardware was correctly setup. And refer to official BMA456 example code on Github(https://github.com/boschsensortec/BMA456-Sensor-API) and previous comments.