06-18-2024 04:13 PM - edited 06-18-2024 04:15 PM
I put my microcontroller on stop mode when there is no motion in order to save battery.
So I want an interruption which is triggered by the bmi270 to restart the chip and the program when there is motion.
For now, I can read some acceleration values using the example code "accel_gyro".
So my question is: what do I have to change in order to make the bmi270 trigger a callback that restarts the chip ?
My code is in the attachments.
06-19-2024 11:31 AM
Hi MageScript,
Thanks for your inquiry.
You can refer to BMI270 any motion example to wakeup host.
https://github.com/boschsensortec/BMI270_SensorAPI/blob/master/bmi270_examples/any_motion_interrupt_...
06-19-2024 03:53 PM
Thanks, I used this code but I have no interruption on INT1 after moving the bmi.
Nothing either appears on the oscilloscope.