2017-05-17 12:36 PM
This document
provides information regarding an 'Activity/Inactivity recognition' on page 51ff. The section has been added in Jan 2017. I recently purchased a Sparkfun LIS3DH breakout and I cannot make this function work. Is there any pseudo code (what register has to be initialized how?)Regards
2017-09-22 12:24 AM
Thank you for an exceptional support. But my only concern is that if a controller is in sleep mode and I configured that threshold seeting in accelerometer then is it possible to accelerometer can send a high or low pulse to the controller GPIO pin?
2017-09-22 06:05 AM
Yes, of course the accelerometer can generate positive or negative pulse on one of the interrupt pin when the threshold is reached.
Even if you are using IIS2DH I encourage you to check application note for LIS3DH especially chapter 5 and 6 about the interrupts.2017-10-09 10:38 PM
I have done following configuration for activity/inactivity interrupt. In that, I have successfully got interrupted when a sensor is in freefall and when freefall occurs my controller goes into sleep mode for someduration of time. But my requirement is when some minimum amount of motion occurs it will give interruptto microcontrollerbecause I will use this sensorfor door open/close application. So, in that sensor is in sleep mode when the door is in the closed condition and it will interrupt when door starting to open.
I2C_WriteByte(&ctrl_1,1,0x27);
I2C_WriteByte(&ctrl_4,1,0x10);I2C_WriteByte(&ctrl_6,1,0x08);
I2C_WriteByte(&int2_config,1,0x3F);; I2C_WriteByte(&act_ths,1,0x50); I2C_WriteByte(&act_dur,1,0x32);Could you please provide proper configuration for my requirement. Thank you for your time.
2017-11-16 08:20 PM
Hi , this is really useful. But during constant motion with same velocity , acceleration= 0 right.. At that time it detects as inactivity. Any suggestions on while accelerometer moving under constant speed ? I'm using LIS2DE12. It should n't detect inactivity while moving with constant speed. Thanks in advance.
2017-11-17 06:42 AM
From the principle the accelerometer, measures the acceleration so if the device is moving at the constant speed the acceleration is 0 and the output of the accelerometer will be 0, you can't do anything about it. This is theory, in practice it would be difficult to move some device with exactly constant speed, so some acceleration should be measurable.
2018-01-18 02:48 AM
Hi Miroslav, I have configured activity interrupt and its duration. My requirement is to that in between activity duration of time I want to clear the interrupt on (INT2). So, is it possible to clear interrupt without time over which is configured into activity duration register? For example, If I have configured duration for 15sec of time and some activity is triggered when movement occurs than interrupt got on INT2 pin and after the sensor is stable after supposing 10sec of time at that time I want to make the sensor to sleep mode by clearing the interrupt instead of 15sec of time which is configured on the activity duration. So, how I achieve it?
2018-01-23 03:22 AM
Could you please give some solution to my previous comment for interrupt timer configuration?
2018-01-24 01:45 AM
I'm not sure that I understand you request, but you can change the duration without impact on the duration counter. So I think you request is not possible.
2018-06-12 01:30 AM
Hello,
as usual I'm facing the very same issue but I can't seem to get the example running (the one from the link). I'm 100% that I'm transmitting the same exact configuration but I guess I'm missing something, my INT1 stays low. Is there anything else not mentioned in the article that I'd have to consider, e.g., reading REFERENCE or thelike after the configuration step ?
Thanks.M