FXOS8700CQ low pass filter for tilt sensor?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FXOS8700CQ low pass filter for tilt sensor?

Jump to solution
1,131 Views
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

Labels (1)
0 Kudos
1 Solution
720 Views
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.

View solution in original post

0 Kudos
2 Replies
720 Views
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 Kudos
721 Views
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 Kudos