04-12-2024 01:19 AM
Hello I have working with BMi160 sensor for a couple of days now. I have succesfully been able to use the Bosch IMU to record and display the accleration data.
I next wanted to set a interrupt that would trigger after significant motion (greater than 1g in the x-direction lets say) has been detected.
I first created a function to configure the interrupt. The code is displayed below (additionally a screenshot of this intitiliazation function is attached).
I am having trouble writing the interrupt service routine however.I first only want the ISR to do something simple such as display a message like "you have exceeded 1g" and then clear.
Does anyone have advice on how to write the ISR and bind it to the interrupt structure?
04-21-2024 05:14 PM
Hi gkuhn100,
Thanks for your inquiry.
We provide BMI160 example of enabling feature and host side ISR for your reference, hoping it will be helpful to you.
BMI160 has been discontinued and is not recommended for use in new designs. You can use BMI323, BMI270, BHI360 in your new design, detailed product information, you can find it from https://www.bosch-sensortec.com/products