2024-02-08 03:43 AM
Hello everyone,
I'm currently facing an issue while working with the LSM6DSOX accelerometer.
In my setup, the LSM6DSOX accelerometer is not consistently triggering an interrupt on INT1 when the specified threshold is exceeded. Code, connections, and power supply: everything appears to be in order. I am trying to implement a wake-up feature similar to the example in AN5273 but with a different threshold (1.0g +/- 0.1g). The FSM operates at an ODR of 104 Hz, and the accelerometer shares the same ODR with a full-scale range of 4g. I used the Unico tool to generate the .ufc file for configuration, imported it into my code, and also experimented with the UNICLEO tool and an eval-board for DIP24 on a different setup, encountering the same issue.
Config:
For each data point (checked using the DRDY bit with BDU enabled), I calculate the norm on the host MCU as per the AN example. However, I've noticed that the INT pin goes low for a few samples while the computed norm is still higher than the threshold. This results in intermittent "holes" in interrupt generation, even though the condition is met.
Has anyone encountered a similar issue with the LSM6DSOX FSM?
2024-02-13 02:57 AM
Hi @ozlow_own ,
Are your calculation in float32? If yes that's wrong because the device works in float16.
2024-03-04 02:57 AM
Hi @ozlow_own ,
Didi you solve using float16?