2021-03-22 12:14 PM
Hi, I'm using the LIS3DHTR and I read the applications note and the datasheet, but after that I'm still no understanding how to use the high pass filter, so I have some questions.
1-The purpose of the high pass filter is to filter de DC component?
2-I read that 2 modes exits, but in the application note AN3308 explains that there are 4 modes. Could you explain exactly what each mode do and how to use them? I do not understand if I need to reed the reference register each ODR or only at the beggining and the differences between each mode.
¡Thanks !
Solved! Go to Solution.
2021-03-25 04:26 AM
Hi @AJura.1 ,
they are the same normal mode.
The REFERENCE (26h) register is just recommended to be read when the device operating mode is switched from high-resolution configuration (HR) to power-down mode (PD); this operation resets the filtering block before switching to normal/high-performance mode again (app note, p.11).
Moreover, it is used when you to want to high-pass filtering your dataout, instantly deleting the DC component of the acceleration (app note, p.18).
-Eleon
2021-03-23 02:45 AM
Hi @AJura.1 ,
1-The purpose of the high pass filter is to filter de DC component?
Basically yes, it is intended to remove the DC components, and in particular the Earth gravity vector. If you want to go deeper in the HP filter use, you can check the C code on Github lis3dh_wake_up.c, that shows the simplest way to detect wake-up from sensor and how to use HP filter.
2-Could you explain exactly what each mode do and how to use them?
You are right, the modes are 4, probably the 2 (super)modes are Low power and normal mode. They are described in the application note AN3308 you reported, together with the meaning and the definitions for each operating mode. They are listed by increasing power consumption, and also decreasing accuracy and resolution.
If my reply answered --at least partially- your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.
-Eleon
2021-03-23 03:27 PM
Hi @Eleon BORLINI ,
Thanks fot your reply but, I don't understand the difference between the normal mode (reset by reading REFERENCE) and the normal mode which is activated with the bits (10).
2021-03-25 04:26 AM
Hi @AJura.1 ,
they are the same normal mode.
The REFERENCE (26h) register is just recommended to be read when the device operating mode is switched from high-resolution configuration (HR) to power-down mode (PD); this operation resets the filtering block before switching to normal/high-performance mode again (app note, p.11).
Moreover, it is used when you to want to high-pass filtering your dataout, instantly deleting the DC component of the acceleration (app note, p.18).
-Eleon
2021-03-28 11:44 PM
Hi @Eleon BORLINI ,
Ok, I understand It has been very helpful. Thanks!