Minimalistic library for motion detection using low cost KXTJ3-1057, 3-axis MEMS accelerometer, low-power, ±2g/±4g/±8g/±16g full scale, high-speed I2C digital output, delivered in a 2x2x0.9mm LGAplastic package operating from a 1.71V–3.6V DC supply.
-
returnError
Handler - Update Keywords
Operating mode (HZ) | Low Power | High Resolution |
---|---|---|
0.781 | 1.543 | |
1.563 | 1.635 | |
3.125 | 1.922 | |
6.25 | 2.488 | |
12.5 | 3.431 | |
25 | 5.784 | |
50 | 9.821 | |
100 | 18.15 | |
200 | 34.72 | |
400 | 156 | |
800 | 156 | |
1600 | 156 |
Interrupt threshold sensitivity is compared to the top 12bits of the accelerometer 8g output value regardless of the resolution chosen:
This value can be anything from 1 to 4095
- i.e 0.0039 (1/256) to 16 g (4095/256)
Interrupt event duration to trigger the interrupt pin is a function of events and Sample Rate:
This value can be anything from 1 to 255
- i.e 5 event_counts / 6.25 Hz = 0.8 seconds
Interrupt non-activity duration to reset the interrupt pin is a function of events and Sample Rate:
This value can be anything from 1 to 255
- i.e 5 event_counts / 6.25 Hz = 0.8 seconds
- Only 8 and 12 bits modes are implemented (14-bit is not);
- Only non-latched interrupt is implemented;
Github Shields and Badges created with Shields.io