- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 19.6k
 
FTM: Preliminary Resonance Testing support #28158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: bugfix-2.1.x
Are you sure you want to change the base?
Conversation
| 
           Oh cool, you used the new exchangeable trajectory generators for it  | 
    
| 
           The first version was before the merge of your last   | 
    
| 
           Can we warn for peaks below the minimum shaper requency set for FT_MOTION?  | 
    
| 
           @oliof, This is not possible as we don't have the data from the accelerometer in Marlin. Data must be recorded by an external accelerometer (for now) and then you can get the resonance frequency in Marlin when you enter the timeline value via the menu or the gcode. Or perhaps you talk about a warning when the frequency is calculated?  | 
    
| 
           It's so much fun to watch the frequency test when it gets close to the refresh rate of the camera CCD.  | 
    
| 
           Z support would ve fantastic too, its currently the hardest to calibrate, and very useful in some machines. Video example (in this other pr  | 
    
          
 Yes  | 
    
| 
           Side note: it might be worth revisiting https://github.com/pfn/stickc-accel for machines without CAN support for a detachable sensor.  | 
    
| 
           May want to check out how calibration movements implemented in klipper - they recently moved from "shaking in place" to sweeping motions which works better if there is friction in axis where just vibration may not move toolhead/bed at all.  | 
    
| 
           @dbuezas , for Z testing do we need to change default parameters to match Z axis?  | 
    
Description
As
FT_MOTIONhas recently improved, it's perhaps time to introduce a resonnance test to calibrate the shapers. @rondlh has posted 2 PRs with preliminary support for can bus and ADXL345. This test generates a sine wave pulse for theFT_MOTIONsystem.FT_MOTIONandFTM_RESONANCE_TESTmust be enabled inConfiguration_adv.h;EMERGENCY_PARSERis also mandatory to stop prematurely the test if needed. The test can be launched for X or Y axis (via gcode, default is X axis). If you have a USB accelerometer connected to your printer, you can start the test and then calculate the resonance frequency via the menu or a gcode giving the time value of your vibration peak. Now, There is no function to caculate the damping ratio.Introduces 2 new G-codes:
Default parameters are largely inspired by Klipper. If no parameters are given
M495 Slaunches the test on the X axis.A menu is provided to launch the test on X or Y axis with the default values and to abort it. You can also simply compute the resonance frequency by giving the timeline value of your peak vibration either in the menu or via
M495 G xx.xxx(in seconds and milliseconds)resonance_test.mp4
Requirements
FT_MOTIONandFTM_RESONANCE_TESTenabled inConfiguration_adv.h