FXOS8700CQ low pass filter for tilt sensor?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

FXOS8700CQ low pass filter for tilt sensor?

跳至解决方案
1,152 次查看
tedhuntington1
Contributor II

Hi,

I am using the FXOS8700CQ strictly for tilt detection. I find that I am getting some high acceleration readings though.

I see that I can set the CTRL_REG1 LNOISE bit.

Does the HP_FILTER_CUTOFF setting LPF=1 and HPF=1 work as a low pass filter for regular sampling or only for pulse detection?

What is the best way to configure this device for reading just the acceleration due to the earth's gravity?

Thanks,

Ted

标签 (1)
0 项奖励
1 解答
741 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Ted,

The low pass filter can be enabled for the pulse detection by setting the pulse_lpf_en bit in the HP_FILTER_CUTOFF register. It is always enabled for all the other functions (landscape/portrait, transient, freefall/motion…). The low pass filter is a simple 1st order decimation filter, i.e. a moving average filter followed by a down-sampling. Its cut-off frequency depends on ODR and MODS settings.

The best way to configure the FXOS8700CQ for tilt sensing is using the lowest possible ODR (ideally 1.56 Hz), High Resolution mode (MODS[0:1] = 0b10) with the lnoise bit set. 

I hope it helps.

Regards,

Tomas

PS: If my answer helps to solve your question, please mark it as "Correct". Thank you.

在原帖中查看解决方案

0 项奖励
2 回复数
741 次查看
tedhuntington1
Contributor II

Adding that- is a good strategy to lower the sample rate if only concerned about acceleration from the earth's gravity? Will that affect the quality of the sample at all?

0 项奖励
742 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Ted,

The low pass filter can be enabled for the pulse detection by setting the pulse_lpf_en bit in the HP_FILTER_CUTOFF register. It is always enabled for all the other functions (landscape/portrait, transient, freefall/motion…). The low pass filter is a simple 1st order decimation filter, i.e. a moving average filter followed by a down-sampling. Its cut-off frequency depends on ODR and MODS settings.

The best way to configure the FXOS8700CQ for tilt sensing is using the lowest possible ODR (ideally 1.56 Hz), High Resolution mode (MODS[0:1] = 0b10) with the lnoise bit set. 

I hope it helps.

Regards,

Tomas

PS: If my answer helps to solve your question, please mark it as "Correct". Thank you.

0 项奖励