Confusion on waking up Electron Asset Tracker

HI there,

I’m a bit confused after trying to wake up electron with Asset Tracker shield.

I tried

System.sleep(SLEEP_MODE_DEEP, seconds);
and
System.sleep(WKP, RISING, seconds);

both making my electron sleep for ‘seconds’ nevermind the motion that is going on before time passes by.

From https://docs.particle.io/datasheets/particle-shields/#using-the-asset-tracker I read that accelerometer is connected to WKP for wake-up. Although I don’t know where I can set the motion treshold mentioned in ‘cross a threshold you set on the accelerometer’.

I tried using ‘accel’ object (defined as Adafruit_LIS3DH accel = Adafruit_LIS3DH(A2, A5, A4, A3); ) directly - like it is in https://github.com/benagricola/tracker/blob/master/main.cpp but that gives me compile errors about private methods.

Summing up - using Asset Tracker Kit I want an easy way to put electron in deep sleep having it wake up when motion is observed or some maximum time passes by. What am I missing?

Using latest firmware 0.5.1.

Thanks!

Maybe you are seeing this issue

You could ping Dave whether he’s found a solution to this yet.

BTW, I found this thread via forum search for asset tracker and WKP

I literally read that topic and a few more before submitting.

I just saw that but… hmm I thought that this can’t just be a systematic problem with the board. Anyway - I Will try to ping Dave there and maybe do some measuring and hard-wiring the pin to test what’s going on.

Hey all, I’m going to close this topic and point to the other thread, since they’re running in parallel.

Continued in this thread.