How to getting movement size from 3 axis accelerometer data

flatronka

I did a lot of experiment using the accelerometer for detecting the movement size(magnitude) just one value from x,y,z acceleration. I am using an iPhone 4 with accelerometer update frequency 1.0 / 50.0 (50HZ), but I've also tried with 100HZ, 150HZ, 200HZ.

Examples:

Acceleration on X axis Acceleration on Y axis Acceleration on Z axis

I assume ( I hope I am correct) that the accelerations are the small peaks on the graph, not the big steps. I think from my experiments that the big steps show the device position. If changed the position the step is changed too.

If my previous assumption is correct I need to cut the peaks from the graph and summarize them. Here comes my question how can I cut those peaks without losing the information, the peak sizes.

I know that the high pass filter does this kind of thinks(passes the high peaks and blocks the noise, the small ones, I've read some paper about the filters. But for me the filter cut a lot of information from my "signal"(accelerometer data).

I think that there should be a better way for getting the information out from the data.

I've tried a simple one which looks nice but it isn't correct.

I did this data data using my function magnitude

for i = 2 : length(x)
    converted(i-1) = x(i-1) - x(i);
end

Where x is my data and converted array is the result.

The following row generated a the image below, which looks like nice.

xyz = magnitude(datay) + magnitude(dataz) + magnitude(datax)

enter image description here

However the problem with that solution is that if I have continuos acceleration the graph just will show the first point and then goes down. I know that I need somehow better filter, but I am bit confused. Could you give some advice how can I do this properly.

Thanks for your time, I really appreciate your help

Edit(answers for Zaph question):

What are you trying to accomplish? I want to measure the movement when the iPhone is placed to desk, chair or bed. The accelerometer is so sensible if I put down a pencil it to a desk it shows me. I want to measure all movement that happens in a specific time.

What are the scale units? I'm not scaling the data.

When you say "device position" what do you mean, an accelerometer provides movement (in iPhones with gyros) I am using only the accelerometer. When I put the device like the picture below I got values around -1 on x coordinate, 0.0 on z and y coordinate. This is what I mean as device position. enter image description here

Nikolai Ruhe

The measurements that are returned from the accelerometer are acceleration, not position.

I'm not sure what you mean with "big steps" but the peaks show a change of acceleration. The fact that the values are not 0 when holding the device still is from the fact that the gravitation accelerates the device with 9.81 m/s^2 (the magnitude of the acceleration vector).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Accelerometer movement limit according to screen size

From Dev

How to decorrelate accelerometer data

From Dev

Three.JS: Move 3D cube with accelerometer data over x an y-axis

From Dev

Gyroscope and accelerometer data from Windows?

From Dev

Collecting Accelerometer Data from Service running

From Dev

Trying to capture accelerometer axis

From Dev

How to get degrees by Accelerometer data (Java libGDX)

From Dev

cell2mat error on Matlab from accelerometer txt data and how to plot it

From Dev

D3: How to add a margin between min/max from data and min/max from axis?

From Dev

D3.js how to extract Y domain value from data array with multiple Y axis columns

From Dev

Use Accelerometer for Roll-a-ball Movement

From Dev

SQL query for getting data from 3 tables

From Dev

Openlayers 3: Getting data from multiple features

From Dev

Get accelerometer and gyroscope data from apple watch (and not the iphone)?

From Dev

Android: Prevent phone vibrate function from affecting accelerometer data

From Dev

Classifying human activities from accelerometer-data with neural network

From Dev

Android: Prevent phone vibrate function from affecting accelerometer data

From Dev

Getting file size from S3 bucket

From Dev

How do I set tick units on domain axis after getting it from range axis in a jfreechart in java?

From Dev

Using Android accelerometer y axis falls through terrain - Unity3D

From Dev

Camera Movement on the Y axis

From Dev

Movement of data from variables to registers in NASM programming

From Dev

How to/Should I implement a Kalman filter to get accurate Accelerometer data?

From Dev

Accelerometer data: How to interpret? Sparkfun ADXL335 with Arduino

From Dev

How to Store Accelerometer Data for Classification by using Machine Learning

From Dev

How can I interpolate accelerometer data in pandas into fixed sampling rate?

From Dev

Pushing accelerometer data into an array

From Dev

Reading Accelerometer data in Android

From Dev

(LIBGDX) How can I incorporate, step by step, the accelerometer and use the Z axis on an ANDROID to move a car?

Related Related

  1. 1

    Accelerometer movement limit according to screen size

  2. 2

    How to decorrelate accelerometer data

  3. 3

    Three.JS: Move 3D cube with accelerometer data over x an y-axis

  4. 4

    Gyroscope and accelerometer data from Windows?

  5. 5

    Collecting Accelerometer Data from Service running

  6. 6

    Trying to capture accelerometer axis

  7. 7

    How to get degrees by Accelerometer data (Java libGDX)

  8. 8

    cell2mat error on Matlab from accelerometer txt data and how to plot it

  9. 9

    D3: How to add a margin between min/max from data and min/max from axis?

  10. 10

    D3.js how to extract Y domain value from data array with multiple Y axis columns

  11. 11

    Use Accelerometer for Roll-a-ball Movement

  12. 12

    SQL query for getting data from 3 tables

  13. 13

    Openlayers 3: Getting data from multiple features

  14. 14

    Get accelerometer and gyroscope data from apple watch (and not the iphone)?

  15. 15

    Android: Prevent phone vibrate function from affecting accelerometer data

  16. 16

    Classifying human activities from accelerometer-data with neural network

  17. 17

    Android: Prevent phone vibrate function from affecting accelerometer data

  18. 18

    Getting file size from S3 bucket

  19. 19

    How do I set tick units on domain axis after getting it from range axis in a jfreechart in java?

  20. 20

    Using Android accelerometer y axis falls through terrain - Unity3D

  21. 21

    Camera Movement on the Y axis

  22. 22

    Movement of data from variables to registers in NASM programming

  23. 23

    How to/Should I implement a Kalman filter to get accurate Accelerometer data?

  24. 24

    Accelerometer data: How to interpret? Sparkfun ADXL335 with Arduino

  25. 25

    How to Store Accelerometer Data for Classification by using Machine Learning

  26. 26

    How can I interpolate accelerometer data in pandas into fixed sampling rate?

  27. 27

    Pushing accelerometer data into an array

  28. 28

    Reading Accelerometer data in Android

  29. 29

    (LIBGDX) How can I incorporate, step by step, the accelerometer and use the Z axis on an ANDROID to move a car?

HotTag

Archive