2020-08-18 07:49 AM
I search the net, and found a post with someone with a similar issue, but the link that was posted on the response is dead error 404.
I was able to set up the significant motion event to trigger on int1 but it only seems to read 1 axis of the accelerometer. And depending on its position it might never triggers the interrupt
What I would like to do is set up a "wake up" interrupt, that happens when motion is detected on any of the accelerometer axis.
Do you have any examples or sample code of this being implemented?
The one in the AN4650 never triggers no matter how i shake my board.
Thank you.
Luis.
Solved! Go to Solution.
2020-08-20 07:53 AM
Just check the registers, everything is as it should be I receive the right values from the read. The exact same as the one I wrote.
2020-08-20 09:51 AM
Niccolo tutti va bene.
I am sorry to have bothered you. But after reproducing the steps you asked me too, and checking that everything was ok on my side. I went and checked in with the person who built the board for me, to check if a signal was emitted with the osciloscope like you suggested.
And we found the issue apparently he put on a LSM6DSMtr instead of the LSM6DS3. Needless to say, it was never going to work since the wakeup interrupt although similar are programmed differently on both models.
Once again, thank you for your help.
And sorry to have wasted your time, although I did learn about significant motion, so it wasn't a total loss of time for me!
Sincerely,
Luis.
2020-08-21 01:17 AM
That's very good news, I'm happy that you could find the problem.
I too learned something by noticing that the application note needs to explain better what the significant motion is =)
Best regards
2020-08-21 05:06 AM
Hello guys, as a side note please consider that a (very) short -and a bit general- definition of significant motion as intended by st for accelerometers can be found in the LIS2DS12 AN4748 at p.30:
The significant motion function generates an interrupt when a ‘significant motion’, that could be due to a change in user location, is detected. To be considered significant, a motion should be at least 5 steps (of the pedometer / step counter).
The general meaning of significant motion is broader, including sometimes all the low-power-consumption embedded features that enable you to detect a (specific) movement.
Regards
2020-08-21 05:21 AM
Yeah the part you highlighted as being 5 steps is really what was missing fo rme to understand it directly from the description in the AN4650. But thanks to Niccolo's explanation I understood it was steps, and why I had to bounce my board up and down to wake it up made sense. (when I was using sig motion interrupt)