03-17-2022 01:03 PM
Hi,
Is there a document similar to i.e. "How to generate a single and double tap interrupts using BMI160 accelerometer"?
I need to fully understand on how to interface with the BMX160 in reading out the acceleromter data using BMX160::get_accel_data and later on on how to read out the data using fifo buffer and various interrupts.
Having a technical document similar to the single and double tap as mentioned before.
Thanks
André
03-17-2022 03:00 PM
Hello André,
1.For the document, you could refer BMX160 data sheet and BMI160 knowledge share in community:
https://community.bosch-sensortec.com/t5/Knowledge-base/BMI160-Series-IMU-Design-Guide/ta-p/7376
https://community.bosch-sensortec.com/t5/Knowledge-base/BMI160-FIFO-Advanced-Usage/ta-p/8957
2. You also could refer attached exmaple code to read RAW data, read FIFO data, use TAP feature.
03-20-2022 04:55 PM
Thanks!
The code for polling looks very similar to the code samples except I don't use a sleep/wait.
There is I think, if I understand the datasheet correctly, a way to check if new data has arrived in the data registers by checking as described in section 2.11.4 the appropiate drdy_ bits in STATUS 0x18 register when polling for (new) data?
Does it mean that a check for a no motion event before checking for the next data drdy event is required?
Thanks!
03-29-2022 05:06 AM
Hi André,
Check the bit drdy_xxx of 0x1B status register to see if the data was updated.
It means: for example, if you set the ODR bit to 50 Hz, you will see the flag of data update every 20ms, whether the sensor is moving or not.
03-30-2022 03:59 PM
Thanks!
This sound as expected.
This means that the code sample need to be updated?
Cheers