2020-12-10 07:17 AM
Hello
I am using the LIS3DH to detect an impact on a vehicle. Our layout does contain only one interrupt pin, so I have to switch during the event.
Init:
I build a pendulum to have a predictable signal. This seems to work well as I do get an interrupt:
This seems to work quite good, as I get the amount of data I am looking for.
But the data I do receive is not looking as I expect, there is nothing that looks like a pendulum and it does have spikes in it.
Can somebody tell my where I do have an error in my procedure?
Kind regards
2020-12-14 09:25 AM
Hi @SSpuh.1 ,
during the procedure of the two switching interrupts, are you resetting and setting alternatively each of the two interrupts?
Did you try to read data in polling/continuous mode (without going through the FIFO), to check if they are consistent in this operating mode? I'm wondering if you are maybe concatenating non-consecutive samples from different consecutive FIFO readings
-Eleon
2021-01-06 05:34 AM
Dear Eleon
I am very sorry for my late answer. Was quite a busy time.
No I am not setting them manually. I thought (as they are not lached) they will reset each other themselves.
Yes, I did test without the fifo and it seems to be right then.
Would it be an option to let the device run in stream mode instead of stream-to-fifo, wait for an interrupt when an axis exceeds the threshold and switch then the interrupt to watermark (or overflow)? When I read faster as the positions are sampled I should be able to read correct values without switching to fifo mode.
2021-01-15 01:08 AM
Hi @SSpuh.1 ,
>> Would it be an option to let the device run in stream mode instead of stream-to-fifo, wait for an interrupt when an axis exceeds the threshold and switch then the interrupt to watermark (or overflow)? When I read faster as the positions are sampled I should be able to read correct values without switching to fifo mode.
Yes, it could be a valid option. Did you have the time to test it?
-Eleon