For "door guard" etc. purposes, it would be nice if the acceleration sensing was smarter.
Namely:
It should be able to eliminate the gravity term from the acceleration.
This can be done simply with a rolling average; basically, over the last 20 or whatever observations, figure out what the static acceleration of the tag is (like gravityX = (gravityX * 20 + accelX) / (20 + 1), or whatever smoothing term you want to use instead of 20), then subtract that from the actual observations.
It should be able to sum up these acceleration terms even during interval, and then post the summed-up "motion since we last spoke" value(s).
Naturally, all this should be configurable, because knobs and sliders 🤓
For "door guard" etc. purposes, it would be nice if the acceleration sensing was smarter.
Namely:
This can be done simply with a rolling average; basically, over the last 20 or whatever observations, figure out what the static acceleration of the tag is (like
gravityX = (gravityX * 20 + accelX) / (20 + 1)
, or whatever smoothing term you want to use instead of 20), then subtract that from the actual observations.interval
, and then post the summed-up "motion since we last spoke" value(s).Naturally, all this should be configurable, because knobs and sliders 🤓