NiXXiN
June 22, 2022, 8:50pm
1
Hi there, I believe we can use an adxl that we already use for input shaping in another capacity. Instead of using music tuning apps to find the belts frequency for corexy machines we can reuse the adxl mounted on the hotend in live monitoring mode like a spectrum analyser.
Sineos
June 22, 2022, 8:59pm
2
See
https://www.klipper3d.org/Measuring_Resonances.html#testing-custom-axes
and
Klipper3d:master
β Rat-OS:ft-test-resonances-params
opened 02:03AM - 02 Feb 22 UTC
This PR adds `CHIP` and `POINT` arguments to `TEST_RESONANCES`. It was born out β¦ of a need to script generation of belt tension graphs for the upcoming V-Core IDEX printer, without having to edit the config between each test.
Example:
```properties
[gcode_macro GENERATE_IDEX_GRAPHS]
gcode:
{% if params.AXIS is defined %}
{% if params.AXIS|lower == 'x' %}
G28
TEST_RESONANCES AXIS=X CHIP="adxl345" OUTPUT=raw_data NAME=t0
T1
TEST_RESONANCES AXIS=X CHIP="rpi" OUTPUT=raw_data NAME=t1
G4 P5000
RUN_SHELL_COMMAND CMD=generate_tension_graphs PARAMS=x
RESPOND MSG="Belt tension graph generated for the X axis. You'll find it in the input_shaper folder in the machine tab!"
{% elif params.AXIS|lower == 'y' %}
G28
TEST_RESONANCES AXIS=Y CHIP="adxl345, rpi" OUTPUT=raw_data NAME=belt_tension POINT={printer.toolhead.axis_maximum.x},{printer.toolhead.axis_maximum.y/2},20
G4 P5000
RUN_SHELL_COMMAND CMD=generate_tension_graphs PARAMS=y
RESPOND MSG="Belt tension graph generated for the Y axis. You'll find it in the input_shaper folder in the machine tab!"
{% else %}
{action_raise_error("Unknown axis specified. Expected X or Y.")}
{% endif %}
{% else %}
G28
TEST_RESONANCES AXIS=Y CHIP="adxl345, rpi" OUTPUT=raw_data NAME=belt_tension POINT={printer.toolhead.axis_maximum.x},{printer.toolhead.axis_maximum.y/2},20
TEST_RESONANCES AXIS=X CHIP="adxl345" OUTPUT=raw_data NAME=t0
T1
TEST_RESONANCES AXIS=X CHIP="rpi" OUTPUT=raw_data NAME=t1
G4 P5000
RUN_SHELL_COMMAND CMD=generate_tension_graphs PARAMS=y
G4 P5000
RUN_SHELL_COMMAND CMD=generate_tension_graphs PARAMS=x
RESPOND MSG="Belt tension graph generated for X and Y. You'll find them in the input_shaper folder in the machine tab!"
{% endif %}
T0
M84
```
It has been very helpful while trying to get the belt tension right on the upcoming Rat Rig V-Core IDEX (and i would imagine the Voron Tridex as well), and i expect to ship it with RatOS once the printer is released, so here's me getting ahead of that π
1 Like
NiXXiN
June 22, 2022, 10:09pm
3
I see what has been already considered but itβs not quite what I was suggesting. I mean a proper graphic interface (window like camera or temps) with a proper real time spectrum analyser. Maybe with the ability to record data for short times in which we will pluck the belts by hand. I believe that this way we can reduce drastically the time needed to tension the belts relative especially to the first link you shared.