cancel
Showing results for 
Search instead for 
Did you mean: 

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

Vikram baliga
Associate II
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
1 ACCEPTED SOLUTION

Accepted Solutions
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.

View solution in original post

3 REPLIES 3
Miroslav BATEK
ST Employee
Posted on February 28, 2018 at 09:26

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

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
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.