cancel
Showing results for 
Search instead for 
Did you mean: 

I am using a LSM6DS3, I need to receive a an interrupt signal on int1 or int2 pin which ever. When I try to set up the wake up interrupt signal as in the AN4650 chapter 4.3, it doesn't seem to trigger ever? Do you have any sample projects using this?

LSmit.1
Associate II

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.

14 REPLIES 14

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.

LSmit.1
Associate II

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.

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

Eleon BORLINI
ST Employee

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

LSmit.1
Associate II

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)