November 22, 2024, 11:56:57 PM

Parsing xyz axis from MOD-MMA7260

Started by Fahad, March 20, 2014, 07:12:58 AM

Previous topic - Next topic

Fahad

Hi All,

I am trying with MOD-MMA7260 accelerator to parse the x,x,z axis co-ordinates for my project.
I am a linux user. I could get raw HID data from the device with the  command
"cat /dev/input/mouse2 | hexdump"
The output of the command is something like this
0000000 0208 0800 0200 0208 0800 0200 0208 0800
0000010 0200 0208 0800 0200 0208 0800 0200 0208
0000020 0800 0200 0208 0800 0200 0208 0800 0200
0000030 0208 0800 0200 0208 0800 0200 0208 0800
0000040 0200 0208 0800 0200 0208 0800 0200 0208......

Can anyone please help me to get the x,y and z co-ordinate from the output.
Whether my approach to parse the xyz co-ordinates from MOD-MMA7260 is correct??
Please help me..

-Fahad