Dmitry Butyugin

Results 54 comments of Dmitry Butyugin

This was also a good opportunity for me to check how accelerometer works when it is misalined (and compare it with the case when it is aligned): ![aligned_vs_unaligned](https://user-images.githubusercontent.com/53491797/142065200-2c313f07-8bd5-4e25-bbf5-0c115d7ba8ba.png) (here aligned...

BTW, @KevinOConnor, this PR contains a commit e822a5a3a6464e2c762be32d2f2aafe4ebe193cb which fixes a race condition in the accelerometer start/stop code that I ran into. A problematic sequence of code execution may occur...

Thanks for taking a look, Kevin! > 1. I'll take a closer look at [e822a5a](https://github.com/Klipper3d/klipper/commit/e822a5a3a6464e2c762be32d2f2aafe4ebe193cb) and the bug. OK, thanks! > 2. I noticed this feature would require numpy to...

@Sineos, thanks! So, from the results of your test I can conclude that your accelerometer was already correctly aligned with the printer axes, and (according to the accelerometer) the X...

> Ah, okay. So another way to describe the test is - the code integrates the accelerometer data from `p_mid12 -> p_mid21` to obtain an estimated change in velocity. The...

Unfortunately, the problems with the script are due to Python2 being EOLed. Fortunately, both `calibrate_shaper.py` and `graph_accelerometer.py` are fully Python3-compatible. I checked and it seems that `python3-numpy` and `python3-matplotlib` are...

@Sineos, thanks for doing more tests! Gravity direction detection seems to be working very well, e.g. ``` Detected gravity direction: -0.084448, 0.041499, 1.027709 Detected gravity direction: -0.082982, 0.040114, 1.027720 Detected...

> Note: The branch that is referenced for this PR is: https://github.com/dmbutyugin/klipper/tree/accel-calibrate The branch where the output command has been added is: https://github.com/dmbutyugin/klipper/tree/resonance-test So I went with the `resonance-test`, hoping...

@Sineos, BTW, I tried to fix the missing measurements at the end of test (in the correct accel-calibrate branch), you can give it a try when you have an opportunity.

@Sineos thanks! TBH, Adafruit board offers other components of higher quality and has logic level shifter. And there is little to no chance that, for example, capacitors will be soldered...