2016-03-30 11:19 PM
I need help to configure the interrupt, specifically for a 6d orientation interrupt.
I have working as needed a light touch interrupt on any axis, but I also need sometimes to configure to interrupt only on a transition from out of the cone of z-positive then into that cone. I cannot find any explanation in the LSM6DS0 data sheet, nor any application note. I do see app note for LSM6DS3 here: http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/DM00157511.pdf But that does not help for this LSM6DS0 Also to note that I have both of these interrupts working on a LSM303D part. For both interrupts on LSM6DS0, I configure for 10-Hz and 2-g. For light touch on any axis, I set this: INT_GEN_CFG_XL = 0x2A INT_GEN_THS_xyz_XL = 8 INT_GEN_DUR_XL = 0x81 The above works to generate light touch on any axis. For orientation interrupt on z-axis, I've tried many different THS and DUR values, many different permutations with INT_GEN_CFG_XL as 0xD0, 0xE0, and so on. Any hints would be greatly appreciated. #lsm6ds0-6d-movement-interrupt2016-03-30 11:53 PM
Ok, the LSM6DS0 6d is working like I needed to get it working (and like I had it working on the LSM303D) - I found my own bug (erroneously, always overwriting the 6d interrupt configuration with the light touch configuration) just after I posted the below.