Skip to main content
YTreg.1
Associate
May 18, 2021
Solved

Is there an order to change the debounce steps value at the initialization of the LSM6DSOX?

  • May 18, 2021
  • 2 replies
  • 1084 views

Hello,

I am using the pedometer function in the LSM6DSOX.

I want to change the debounce steps register value (default =10).

I have changed the value to 15 but i am already seeing some delta steps = 11 (<15).

Is there on order to change the debounce steps value?

I'm doing like this:

  • enable the accelerometer
  • change the debounce steps value in 0x84 register
  • enable the pedometer function

best regards

Yann

This topic has been closed for replies.
Best answer by niccolò

Hi Yann @YTreg.1​ ,

did you wrote bit FUNC_CFG_EN = 1 in FUNC_CFG_ACCESS (01h) to enable access to embedded functions registers, before writing the debounce threshold?

can you check that you follow example on page 149 of datasheet to write it?

Niccolò

2 replies

niccolò
niccolòBest answer
ST Employee
May 19, 2021

Hi Yann @YTreg.1​ ,

did you wrote bit FUNC_CFG_EN = 1 in FUNC_CFG_ACCESS (01h) to enable access to embedded functions registers, before writing the debounce threshold?

can you check that you follow example on page 149 of datasheet to write it?

Niccolò

YTreg.1
YTreg.1Author
Associate
May 19, 2021

Hi,

yes i have done that.

Finally, it was a mistake in the addressing PAGE_SEL register.

Now i'm writing in the good register and it's working.

Best regards,

Yann

niccolò
ST Employee
May 19, 2021

Hi Yann @YTreg.1​ ,

glad to hear everything is ok, it is a common mistake to forget that.

Niccolò

p.s. if you found the solution to your problem, you can select a best answer to help other users with a similar problem