# The Electron and LIS3DH (wake-on-movement)

**URL:** https://community.particle.io/t/the-electron-and-lis3dh-wake-on-movement/35060
**Category:** General
**Created:** [August 2, 2017, 10:24pm UTC](https://community.particle.io/t/the-electron-and-lis3dh-wake-on-movement/35060 "2017-08-02T22:24:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Athnetix](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Athnetix](https://community.particle.io/u/Athnetix)
#### Post date: [August 2, 2017, 10:24pm UTC](https://community.particle.io/t/the-electron-and-lis3dh-wake-on-movement/35060/1 "2017-08-02T22:24:55Z")

</div>

There are quite a few different LIBS that I searched for Electron, I2C and wake on movement.

What I would like to do is use an Electron, use I2C and the LIS3DH accelerometer. I do already have that accelerometer from Adafruit. I have basic code that uses I2C and reads the accelerometer and displays the x,y,z values Ok.

Now I would like to add an interrupt that will wake the Electron from movement.

I was a little confused with so many different LIBS and not sure which one(s) I should use to accomplish the wake on movement.

Any direction on this would be great…Thanks

---

<div class="post-metadata">

### Author: ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)
#### Post date: [August 2, 2017, 10:56pm UTC](https://community.particle.io/t/the-electron-and-lis3dh-wake-on-movement/35060/2 "2017-08-02T22:56:12Z")

</div>

I wrote this library and it supports wake-on-move. I’ve used it with both I2C and SPI, including the Adafruit board.

Instructions here:

> **[rickkas7/LIS3DH](https://github.com/rickkas7/LIS3DH)**
>
> LIS3DH Accelerometer driver for Particle

It’s “LIS3DH” in the community libraries in Particle build.

---

<div class="post-metadata">

### Author: ![Athnetix](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Athnetix](https://community.particle.io/u/Athnetix)
#### Post date: [August 2, 2017, 11:53pm UTC](https://community.particle.io/t/the-electron-and-lis3dh-wake-on-movement/35060/3 "2017-08-02T23:53:22Z")

</div>

Great Work… I’ll give it a shot…Thanks
