cancel
Showing results for 
Search instead for 
Did you mean: 

Configure LIS2DH for both single click and double click

chandan bhatia
Associate II
Posted on May 08, 2018 at 09:52

Hello, I want to configure LIS2DH for generating interrupt for single click as well as double click, Can we do that? I am using INT1 for FIFO so INT2 is for clicks interrupt, Individually I can able to get interrupt from them but when I am combining single and double click in same code, I am not able to get single interrupt, Its showing only for double INT.

My sensors configurations are as below. Please suggest.

CTRL_REG1 =

0x37

CTRL_REG2 = 0x00

CTRL_REG3 = 0x04

CTRL_REG4 = 0x10

CTRL_REG5 = 0x40

CTRL_REG6 = 0x80

FIFO_CTRL_REG=0x99

CLICK_CFG = 0x3F

CLICK_THS = 0x20

TIME_LIMIT = 0x10

TIME_LATENCY = 0x10

TIME_WINDOW = 0x40

Thanks

2 REPLIES 2
Miroslav BATEK
ST Employee
Posted on May 09, 2018 at 08:30

It is not possible to detect single click as well as double click. You can use either single click or double click.

chandan bhatia
Associate II
Posted on May 09, 2018 at 09:21

Thank, I want to know one thing, Can we relay on single tap interrupt from accelerate, I performed some test. Out of 15 times, we was missing single tap detection twice. I want to use it like a touch screen. As per my setup, I need to put lis2dh inside some box and when ever some one single tap outer surface,  it should generate detection. Can we performed same ?

One more thing, Will other movements on the box like some movement will cause single tap suppose some hold it on hand and walk?