# Configure accelerometer interrupts

**URL:** <https://mangoh.discourse.group/t/configure-accelerometer-interrupts/4147>\
**Category:** mangOH Red\
**Created:** [March 26, 2020, 10:38am UTC](https://mangoh.discourse.group/t/configure-accelerometer-interrupts/4147 "2020-03-26T10:38:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulmeis](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@paulmeis](https://mangoh.discourse.group/u/paulmeis)\
**Post date:** [March 26, 2020, 10:38am UTC](https://mangoh.discourse.group/t/configure-accelerometer-interrupts/4147/1 "2020-03-26T10:38:17Z")

</div>

Hello

I’m trying to use the accelerometer of my mangOH Red.  
So far I made an app based on the [RedSensorToCloud](https://github.com/mangOH/RedSensorToCloud) sample. It reads the x,y and z acceleration values in `/sys/bus/i2c/devices/4-0068/iio:device0/in_accel_<x,y,z>_raw` and print them in logs every second.

Now I would like to be able to configurate the accelerometer to trigger an interrupt on its INT pins when the devices moves. I want to be able to configure the threshold that triggers this interrupt.

Is it possible to do that using the [bmi160 driver](https://github.com/mangOH/mangOH/tree/master/linux_kernel_modules/bmi160) contained in the mangOH repo ? And if it is possible, how could I do it ?
