Skip to main content
Visitor II
February 28, 2018
Solved

H3LIS331DL: Acceleration is shown in all the 3 axis. Not just the axis in which I had hit it.

  • February 28, 2018
  • 1 reply
  • 1239 views
Posted on February 28, 2018 at 05:30

If i shake the sensor board, acceleration is produced in the corresponding axis. but if i tap on the board, to produce higher g values, say 200g - 400g, the acceleration spike is seen in all the 3 axis, not just axis which I had tapped.

#h3lis331dl #h3lis331dl-working
    This topic has been closed for replies.
    Best answer by Miroslav BATEK
    Posted on April 19, 2018 at 10:08

    The configuration seems to be correct and the behavior is normal. The tap is never be exactly along one axis so the sensor will move little bit in all directions.

    1 reply

    ST Employee
    February 28, 2018
    Posted on February 28, 2018 at 09:26

    Please provide your sensor configuration and a plot of X, Y, Z data during the tap.

    Visitor II
    April 17, 2018
    Posted on April 17, 2018 at 11:08

    Configuration data sent via I2C in the following order:  

                                                                Register address   Value written

    Set data rate and enable all 3 axis :            0x20                   0x3F

    Scale selection : +/- 400g :                          0x23                   0x30

    Filter settings for offsetting the errors :        0x21                   0x1F

    Reference for high pass filter = 0g :            0x26                   0x00

    Interrupt threshold :                                     0x32                   0x70

     

    Interrupt setting :                                         0x30                   0x2A

    Plot of all the 3 axes during tap:

    Data rate 1 kHz. 

    0690X0000060AciQAE.png
    ST Employee
    April 19, 2018
    Posted on April 19, 2018 at 10:08

    The configuration seems to be correct and the behavior is normal. The tap is never be exactly along one axis so the sensor will move little bit in all directions.