So, got the latest results for my free-fall trials. It's working, but it's a tiny bit strange. The behavior is like this:
I let the puck with ADXL345 fall for like 1.5 meters or so
IF I pick it up soon thereafter, I get the Free Fall event
IF I let it be, pick it up after some seconds, nothing is triggered.
To me it looks like the interrupts are only activated once new accelerometer data is received. Would that make somehow sense? Below is the latest code for reference.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
So, got the latest results for my free-fall trials. It's working, but it's a tiny bit strange. The behavior is like this:
I let the puck with ADXL345 fall for like 1.5 meters or so
IF I pick it up soon thereafter, I get the Free Fall event
IF I let it be, pick it up after some seconds, nothing is triggered.
To me it looks like the interrupts are only activated once new accelerometer data is received. Would that make somehow sense? Below is the latest code for reference.