我想回到这个问题,因为我仍然在努力。
我修改了配置,看起来像这样:
CTRL_REG1 = 0x27 // 10Hz,正常功耗模式,ZXY使能
CTRL_REG2 = 0x01 // INT1的HP过滤器
CTRL_REG3 = 0x40 // IA1启用
CTRL_REG4 = 0xB0 // 16g | BDU
CTRL_REG5 = 0x0A //锁存在INT1和INT2上
CTRL_REG6 = 0x22 //低电平有效INT2启用
INT2_THS = 0x7F //最大值
INT2_DURATION = 0x00 // 0.1 * 0s
INT2_CFG = 0x2A // OR,X,Y,Z高于阈值
INT1_THS = 0x01 // 186mg * 1 ?????
INT1_DURATION = 0x03 //0.1s * 3
INT1_CFG = 0x2A //
现在,当阈值设置为186mg时,满量程16g,即使设备保持原位,它也会不断中断!将它改为372mg有帮助但对我来说太过分了。在满量程为8g且阈值为128mg之前,我没有这样的问题。这种行为可能是什么原因?
以上来自于谷歌翻译
以下为原文
I would like to go back to this question since I still struggle with it.
I modified the configuration so it looks like this:
CTRL_REG1 = 0x27 //10Hz, normal power mode, ZXY enable
CTRL_REG2 = 0x01 // HP filter for INT1
CTRL_REG3 = 0x40 //IA1 enable
CTRL_REG4 = 0xB0 //16g | BDU
CTRL_REG5 = 0x0A //latch on INT1 and INT2
CTRL_REG6 = 0x22 //active low & INT2 enable
INT2_THS = 0x7F //max
INT2_DURATION = 0x00 // 0.1*0s
INT2_CFG = 0x2A //OR, X,Y,Z higher than threshold
INT1_THS = 0x01 //186mg * 1?????
INT1_DURATION = 0x03 //0.1s * 3
INT1_CFG = 0x2A //
Now with full scale 16g when the threshold is set to 186mg it constantly interrupts, even when the device remains in place! Changing it to 372mg helps but it is too much for me. Before when full scale was 8g and the threshold value was 128mg I didn't have such problems. What might be a reason of such behavior?
我想回到这个问题,因为我仍然在努力。
我修改了配置,看起来像这样:
CTRL_REG1 = 0x27 // 10Hz,正常功耗模式,ZXY使能
CTRL_REG2 = 0x01 // INT1的HP过滤器
CTRL_REG3 = 0x40 // IA1启用
CTRL_REG4 = 0xB0 // 16g | BDU
CTRL_REG5 = 0x0A //锁存在INT1和INT2上
CTRL_REG6 = 0x22 //低电平有效INT2启用
INT2_THS = 0x7F //最大值
INT2_DURATION = 0x00 // 0.1 * 0s
INT2_CFG = 0x2A // OR,X,Y,Z高于阈值
INT1_THS = 0x01 // 186mg * 1 ?????
INT1_DURATION = 0x03 //0.1s * 3
INT1_CFG = 0x2A //
现在,当阈值设置为186mg时,满量程16g,即使设备保持原位,它也会不断中断!将它改为372mg有帮助但对我来说太过分了。在满量程为8g且阈值为128mg之前,我没有这样的问题。这种行为可能是什么原因?
以上来自于谷歌翻译
以下为原文
I would like to go back to this question since I still struggle with it.
I modified the configuration so it looks like this:
CTRL_REG1 = 0x27 //10Hz, normal power mode, ZXY enable
CTRL_REG2 = 0x01 // HP filter for INT1
CTRL_REG3 = 0x40 //IA1 enable
CTRL_REG4 = 0xB0 //16g | BDU
CTRL_REG5 = 0x0A //latch on INT1 and INT2
CTRL_REG6 = 0x22 //active low & INT2 enable
INT2_THS = 0x7F //max
INT2_DURATION = 0x00 // 0.1*0s
INT2_CFG = 0x2A //OR, X,Y,Z higher than threshold
INT1_THS = 0x01 //186mg * 1?????
INT1_DURATION = 0x03 //0.1s * 3
INT1_CFG = 0x2A //
Now with full scale 16g when the threshold is set to 186mg it constantly interrupts, even when the device remains in place! Changing it to 372mg helps but it is too much for me. Before when full scale was 8g and the threshold value was 128mg I didn't have such problems. What might be a reason of such behavior?
举报