benagricola / tracker

Particle Electron GPS / GSM tracker based on fancy-asset-tracker demo and ULOC tracking example.
GNU General Public License v3.0
30 stars 24 forks source link

Accelerometer sensitivity + motion detection when horizontal. #6

Open DigiDr opened 8 years ago

DigiDr commented 8 years ago

Hi,

Your work on this is fantastic and much appreciated! Wanted to draw your attention to this and am curious to know whether it is designated as a bug or a feature: as far as i can tell, if the board is lain flat, the accelerometer doesn't fire (and there seems to be ~5 degrees of leeway) , but if left at an angle it will continue to fire until it is returned to the horizontal position.

I intend to use this kit for a motorbike alarm (i have done the coding for a python based self hosted web page and will share it when polished) but i cannot guarantee the angle the bike will be left at. Nor can i be sure that if the bike were to move, the kit would necessarily be past the angle required to fire. Is it possible to configure it so that any motion in any direction wakes it up and reports the loc? Separately, is it possible for us to tweak the sensitivity of that?

Thanks again for the work you've done here.

benagricola commented 8 years ago

Hey, I'm actually using this for the exact same thing! I noticed this when switching to a new accelerometer library (to fix issues with motion after sleep) a couple of months ago and it appears to be down to the way the accelerometer is initialised. I think maybe this can be fixed by modifying the settings used to init.

I'll try and have a look this weekend.

On Tue, 23 Aug 2016, 20:38 KuDeTa, notifications@github.com wrote:

Hi,

Your work on this is fantastic and much appreciated! Wanted to draw your attention to this and am curious to know whether it is designed as a bug or a feature: as far as i can tell, if the board is lain flat, the accelerometer doesn't fire (and there seems to be ~5 degrees of leeway) , but if left at an angle it will continue to fire until it is returned to the horizontal position.

I intend to use this kit for a motorbike alarm (i have done the coding for a python based self hosted web page and will share it when polished) but i cannot guarantee the angle the bike will be left at. Nor can i be sure that if the bike were to move, the kit would necessarily be past the angle required to fire. Is it possible to configure it so that any motion in any direction wakes it up and reports the loc? Separately, is it possible for us to tweak the sensitivity of that?

Thanks again for the work you've done here.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/benagricola/tracker/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AAryEFG-FqhrzCV8Oi8bn0x_hWTt2xSiks5qi0xPgaJpZM4JrTme .

DigiDr commented 8 years ago

Oh great! I have other questions re:bike security and these things that might be better dealt with by email ..?

I'm also curious to know whether we can force the device to wake up and report location by calling a function, as in the basic stock examples included by particle? This is very useful in the event it does go missing and we can activate some kind of stolen/emergency mode (this might also be incorporated via webhook responses, if i've read the docs right?). Haven't had time to test it out, but all it gives me on the cli when i "particle list" is

Functions: int publish(String args)