2019-02-06 06:23 AM
Hello there,
I have a question about this sensor.
I'll be using it as a low-power device on a PIC, which is most of the time in sleep mode, and will wake up on interrupts from various devices. I want to configure this sensor so it will notify the PIC via interrupt also if some conditions are met.
The conditions are:
Registers are set as follows for now:
CTRL_REG1 = 0x2F OSD =10Hz, all axis enabled, this should be fine as is
CTRL_REG3 = 0x40 Enable interrupt on movement, should also be fine
INT1_CFG = 0x7F/FF* I'm currently testing combinations here, see below
INT1_THS = 0x03 Changes testwise
INT1_DURATION = 0x01 Changes testwise
*When the combination AOI/6D detection are set, that looks like a useful feature to me. Problem is, the "known zone" is z=1, xy=0, but it's possible the sensor will be in another base position in the final product. Is it possible to change this zone? That would probably be the best solution I can imagine.
Another option might be using the Goto Sleep/return from sleep functions (ACT_ Register), cause this seem to recognize ongoing movement itself. Is it possible to call an interrupt when waking up from sleep?
For testing purposes, I have a dedicated Evaluation Hardware and I use Unico v8.0.1.0 as Test Software.
Hardware is Carrier Board: STEVAL-MKI109V3, Demo Kit: STEVAL-MKI175V1.
I'll add some screenshots, Taken from Unico at 10Hz ODR 2g Full Scale, which shows some examples when the sensor should react. The red lines below indicate there should be one ore more interrupts, green means no interrupt should be generatad.
I will be grateful if someone could give me a hint how to go further ;)
Simon
2019-02-13 06:09 AM
..