# Empty Motiion analysis data

**URL:** <https://klipper.discourse.group/t/empty-motiion-analysis-data/2570>\
**Category:** Developers\
**Created:** [April 11, 2022, 2:40pm UTC](https://klipper.discourse.group/t/empty-motiion-analysis-data/2570 "2022-04-11T14:40:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NsN](https://avatars.discourse-cdn.com/v4/letter/n/3ab097/32.png) [@NsN](https://klipper.discourse.group/u/NsN)\
**Post date:** [April 11, 2022, 2:40pm UTC](https://klipper.discourse.group/t/empty-motiion-analysis-data/2570/1 "2022-04-11T14:40:10Z")

</div>

Hi,  
I’m trying to check if there is any “stickyness” in my x/y axes. For that I wanted to graph my adxl345 data over the expected acceleration data from the motion analysis tool.

Hoewer the motion analysis file seems very empty. I’ve attached a screenshot of 2 graphs. On the left is the data I collected using the `ACCELEROMETER_MEASURE` command, on the right is the data from the `motan_graph.py`.

 ![Screenshot from 2022-04-11 16-34-24](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/0/00a77642c3b01d4caa3a56f81deb109a3d89e6a6.png)

My process to collect this data:

- On the pi I start  
`~/klipper/scripts/motan/data_logger.py /tmp/klippy_uds mylog`

- In the fluidd web UI I ran

```auto
G1 x10 y10 F25000
ACCELEROMETER_MEASURE
G1 x200 y10 F25000
G1 x10 y10 F25000
G1 x10 y140 F25000
G1 x10 y10 F25000
ACCELEROMETER_MEASURE

```

- on the pi I stop the data collection with CTRL+C

Is that the correct procedure?  
I can see that there is some noise in the adx345 data in the motion analysis, so something seems to be captured. Am I interrupting the capture the wrong way?

---

<div class="post-metadata">

**Author:** ![koconnor](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@koconnor](https://klipper.discourse.group/u/koconnor)\
**Post date:** [April 12, 2022, 3:55pm UTC](https://klipper.discourse.group/t/empty-motiion-analysis-data/2570/2 "2022-04-12T15:55:56Z")

</div>

By default, the motan\_graph.py tool only shows 5 seconds of data. Use the `-s` and `-d` options to select a time range of interest to you. Run `motan_graph.py --help` for a list of options.

-Kevin

---

<div class="post-metadata">

**Author:** ![NsN](https://avatars.discourse-cdn.com/v4/letter/n/3ab097/32.png) [@NsN](https://klipper.discourse.group/u/NsN)\
**Post date:** [April 12, 2022, 7:29pm UTC](https://klipper.discourse.group/t/empty-motiion-analysis-data/2570/3 "2022-04-12T19:29:46Z")

</div>

That makes so much sense! I kept thinking it was something in the recorded data, that I didn’t even look for it in the motan\_graph.py.

Thank you, now I can see the matching values.  
One more question, if you don’t mind:

My Acceleration sensor seems quite noisy, even though the data from `MEASURE_AXES_NOISE` is around 30-60 for each axis.

On the top graph on the left, you can see the raw data from the accelerometer, and on the is the moving window average with a window of 100 values. This looks approximately like the expected movement on the bottom left.  
Is this kind of noise normal? Or could it be something either in my wiring or in my mechanics?

 ![Screenshot from 2022-04-12 21-22-54](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/e/ed0b66a4a1f8f35826f7fdd452b58b207c095d03.png)

Thanks again,  
NsN

---

<div class="post-metadata">

**Author:** ![koconnor](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@koconnor](https://klipper.discourse.group/u/koconnor)\
**Post date:** [April 12, 2022, 9:56pm UTC](https://klipper.discourse.group/t/empty-motiion-analysis-data/2570/4 "2022-04-12T21:56:14Z")

</div>

That’s normal.

-Kevin
