# Accelerometer Data in MangoH Yellow

**URL:** <https://mangoh.discourse.group/t/accelerometer-data-in-mangoh-yellow/9200>\
**Category:** Uncategorized\
**Created:** [May 21, 2021, 10:57am UTC](https://mangoh.discourse.group/t/accelerometer-data-in-mangoh-yellow/9200 "2021-05-21T10:57:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [May 21, 2021, 10:57am UTC](https://mangoh.discourse.group/t/accelerometer-data-in-mangoh-yellow/9200/1 "2021-05-21T10:57:30Z")

</div>

Hello,  
can someone point me to some example or give me some help on getting Accelerometer data with Mangoh Yellow? I need a continuous reading of x,y,z data. Please the easy way cause I’m new to the platform.

Regards,  
Gianmaria

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [May 21, 2021, 11:24am UTC](https://mangoh.discourse.group/t/accelerometer-data-in-mangoh-yellow/9200/2 "2021-05-21T11:24:31Z")

</div>

Do you see the accelerometer/gyroscope directory?

> [@Mangoh Yellow - Magnetometer Not Connected?](https://mangoh.discourse.group/t/mangoh-yellow-magnetometer-not-connected/3135):
>
> Hi guys, I’m having some issues getting data from the built in magnetometer on the MangOH yellow. According to the sample app, the sys interface implemented by the kernel module should be here: /sys/bus/i2c/devices/6-0010/iio:device1/ However, this directory does not exist. Any ideas why this would be? The accelerometer/gyroscope directory exists and that’s working fine. -Nick

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [May 24, 2021, 8:51am UTC](https://mangoh.discourse.group/t/accelerometer-data-in-mangoh-yellow/9200/3 "2021-05-24T08:51:03Z")

</div>

Hello,  
yes i’ve the accel directory under:  
/sys/device/…/x\_value\_xxxxxxx

I see values changing whit simple cat command, but what i really need is to receive a signal (even a GPIO state change) when accellerometer is high or when it goes over a “quiet” level. My question is… can i receive data from accelerometer without reading files (x,y,z) ? Can i set a range on accelerometer and read a GPIO high or low when this level is overcomed?

Regards,  
Gianmaria

PS: in same time i’m studing documentation and wll report any info here.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [May 24, 2021, 9:24am UTC](https://mangoh.discourse.group/t/accelerometer-data-in-mangoh-yellow/9200/4 "2021-05-24T09:24:01Z")

</div>

I think you need to study the accelerometer chipset and see if it has such function.

---

<div class="post-metadata">

**Author:** ![gianmariaiaculo](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gianmariaiaculo](https://mangoh.discourse.group/u/gianmariaiaculo)\
**Post date:** [May 26, 2021, 1:42pm UTC](https://mangoh.discourse.group/t/accelerometer-data-in-mangoh-yellow/9200/5 "2021-05-26T13:42:05Z")

</div>

Problem solved. for anyone having same problem can contact me and I will share solution/code.

Anyway i done in this way:

1. Accelerometer BMI160 with default setting signal movement on INT2.
2. I attached an event handler on GPIO 21 (Int2 connected to WP7702). Gpio naturally must be set as input.

Regards.  
Gianmaria

---

<div class="post-metadata">

**Author:** ![sayedulkibria1](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sayedulkibria1](https://mangoh.discourse.group/u/sayedulkibria1)\
**Post date:** [August 3, 2023, 2:49am UTC](https://mangoh.discourse.group/t/accelerometer-data-in-mangoh-yellow/9200/6 "2023-08-03T02:49:07Z")

</div>

Hi, I am new to this field. I need to use a MangOH yellow Board for having accelerometer data and send it to octave. Please help me

---

<div class="post-metadata">

**Author:** ![iker](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@iker](https://mangoh.discourse.group/u/iker)\
**Post date:** [August 24, 2023, 2:05pm UTC](https://mangoh.discourse.group/t/accelerometer-data-in-mangoh-yellow/9200/7 "2023-08-24T14:05:55Z")

</div>

hi @gianmariaiaculo, i have the same problem as you, i need to read de accelometer sensor and then sed the data to my own server. Ho do you solved it? could you please help me?

thanks in advance  
Iker
