Accelerometer Data in MangoH Yellow

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

1 Like

Do you see the accelerometer/gyroscope directory?

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.

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

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

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

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