# Confusion on waking up Electron Asset Tracker

**URL:** <https://community.particle.io/t/confusion-on-waking-up-electron-asset-tracker/23720>\
**Category:** Firmware\
**Created:** [June 14, 2016, 10:11pm UTC](https://community.particle.io/t/confusion-on-waking-up-electron-asset-tracker/23720 "2016-06-14T22:11:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kretes](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/kretes/32/20753_2.png) [@kretes](https://community.particle.io/u/kretes)\
**Post date:** [June 14, 2016, 10:11pm UTC](https://community.particle.io/t/confusion-on-waking-up-electron-asset-tracker/23720/1 "2016-06-14T22:11:45Z")

</div>

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](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](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!

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [June 15, 2016, 6:00am UTC](https://community.particle.io/t/confusion-on-waking-up-electron-asset-tracker/23720/2 "2016-06-15T06:00:55Z")

</div>

Maybe you are seeing this issue

> [@Asset Tracker Accelerometer + GPS problem](https://community.particle.io/t/asset-tracker-accelerometer-gps-problem/20602/10):
>
> Hmm, I managed to wake my electron from one of these “comatose” states by leaving the WKP pin higher for longer using a jumper wire… I wonder if maybe the signal from the accelerometer isn’t HIGH long enough, or maybe the WKP pin is somehow checked less frequently during sleep states? (I realize this isn’t how interrupt pins are meant to work, but that seems to reflect what I just saw) Thanks, David

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_

---

<div class="post-metadata">

**Author:** ![kretes](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/kretes/32/20753_2.png) [@kretes](https://community.particle.io/u/kretes)\
**Post date:** [June 15, 2016, 6:33am UTC](https://community.particle.io/t/confusion-on-waking-up-electron-asset-tracker/23720/3 "2016-06-15T06:33:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![will](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/will/32/23374_2.png) [@will](https://community.particle.io/u/will)\
**Post date:** [June 15, 2016, 5:39pm UTC](https://community.particle.io/t/confusion-on-waking-up-electron-asset-tracker/23720/4 "2016-06-15T17:39:51Z")

</div>

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](https://community.particle.io/t/asset-tracker-accelerometer-gps-problem/20602/10).

---

<div class="post-metadata">

**Author:** ![will](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/will/32/23374_2.png) [@will](https://community.particle.io/u/will)\
**Post date:** [June 15, 2016, 5:40pm UTC](https://community.particle.io/t/confusion-on-waking-up-electron-asset-tracker/23720/5 "2016-06-15T17:40:00Z")

</div>


