cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate LIS331HH wakeup threshold

Hello All,

I try to set threshold of INT1 in LIS331HH
According to the datasheet the sensitivity of the sensor can be set to(3 , 6 , 12)mg/digit
And the threshold register is 7-bit register


Can anyone confirm these calculations or there's another factor must be added to set the threshold :
Threshold(mg) = (Sensitivity) * (7-bit value)

For ex :
To set threshold to 1g . and set the sensitivity to 12mg/digit :
1000 mg = (12) * register value
register value = 1000/12 = 83

 

2 REPLIES 2
Peter BENSCH
ST Employee

I am extremely sorry to have to inform you that the LIS331HH accelerometers have long been discontinued and that STMicroelectronics no longer has any information about them. I am very sorry not to be able to give you more pleasant information.

But maybe there is another user who has used this sensor and can help you.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Ali9088
Visitor

To calculate the LIS331HH wakeup threshold, use this formula:

Threshold=THS×Sensitivity\text{Threshold} = \text{THS} \times \text{Sensitivity}Threshold=THS×Sensitivity

  • THS = Value from the threshold register (0-127)
  • Sensitivity = 12 mg/digit (for ±6g mode) or 48 mg/digit (for ±24g mode)

Example: If THS = 50 and using ±6g mode →

50×12=600 mg(0.6g)50 \times 12 = 600 \text{ mg} (0.6g)50×12=600 mg(0.6g)

Similar to KDV Hesaplama, where you set a minimum taxable amount, here, you set a minimum motion level for wake-up