Adxl345 readings seem reaaly high?

Printer Model: ender6
MCU / Printerboard: manta m4p

klippy.log.zip (1.3 MB)
config-20230803-153511.zip (4.0 KB)

looking for some help or advice, i recently switched over to using just spread cycle on my tmc 2209 drivers and when doing resonance testing etc i get really high numbers and recommended values… and both x and y are exactly the same at 148.8 hz with accel at 86300 mm. i have a tremendous amount of ghosting going on and i only have my settings at ma accel 600, max velocity 500.
so i guess im asking did i mess something up in my config? belt temsion is pretty bang on not to tight and not sloppy loose. any help would be great.

please note i had to zip my log and config due to it being over 8mb.

Please post the graphs of your resonance testing. Also see Interpreting the Input Shaper Graphs

Honestly i have no idea how to get those graphs…is there an easy to follow instruction?

What instruction did you follow to get your strange values and no graphs?
The standard instruction shows and tells you how to generate the graphs:
https://www.klipper3d.org/Measuring_Resonances.html#measuring-the-resonances

If in doubt on any topic carefully read through the Klipper documentation:
https://www.klipper3d.org/

1 Like

Hi brian,

Yeah with my adxl readings i simple ran the resonance test through my klipper screen menu on input shaping, then it just automatically sets it in my printer.cfg as far as i have seen. The link you have in your reply i have read through those articles and for some reason i just cant get my head working to achieve the out come explained, like do i do this throught ssh or my command line on mainsail etc. I would love to see the graphs to better understand whats going on etc. Some things with klipper i have found easy to understand and get done, others i dont know if its just due to not enough info for my brain to compute or if its just past my technical skills lol.
Is there a write up somewhere thats more like a for dummies guide haha? I would really like to be able to just upload the required info as of late ive been able to understand how all this info shows exactly whats going on, and now know when i ask for help it makes things so much more simple.

The instruction is quite easy to follow, you just need to know what you have and when to use it.

You mainly need Mainsail/Fluidd and a SSH connection to your RasPi CM4 or CB1 compute module.
Lets call the first GUI and the last SBC (single board computer).

The guide on the link above often says OctoPrint, however we use Mainsail/Fluidd here. And there the console.
@Sineos when has Octoprint been put in the guide? It looks reworked but if I recall correctly the OctoPrint stuff is relatively new?!

All the commands in capitals are run in the console.
And only where it says

These files can be processed with the stand-alone script on a Raspberry Pi

you run commands via console on the SBC connected via SSH (best is you use putty for that tasks).
And those commands run on the SBC are only the following:

~/klipper/scripts/calibrate_shaper.py /tmp/resonances_x_*.csv -o /tmp/shaper_calibrate_x.png
~/klipper/scripts/calibrate_shaper.py /tmp/resonances_y_*.csv -o /tmp/shaper_calibrate_y.png

This of course depends on a properly installed and set up Klipper on the SBC with the correct paths and stuff.

You are not the first and not the last newbie in Klipper that gets this done. So just try it with following the guide.

For a long time, Octoprint was the only user interface for Klipper, and much of the documentation was written at that time. So, in fact, it is rather old.
To install and use Klipper today, the documentation would need some work.
Some work has already been done, e.g. Docs: Update Config_checks.md by JamesH1978 · Pull Request #6278 · Klipper3d/klipper · GitHub

thanks brian i will try this, i probably simply over thought on the process, i do use putty and i run a cb1 on the manta board so lets hope i do this right lol

so quick first off running the query command i got this back which has me puzzled as it is a core xy machine.
accelerometer values (x, y, z): -2886.803174, 0.000000, 2911.162892

ok so i have followed all instructions everything is upto date and installed…when i run commands given by brian i get all the tests and recommended shaper etc, but i do not get a graph so obviously i have missed something?

Umm, yes, probably reading the instructions? :man_shrugging:

  1. Login to your RPi / CM / Manta Linux via SSH with the user that is running Klipper
  2. In the Linux command shell run: rm /tmp/resonances_*.csv (deletes old measurement files / will also be deleted upon a reboot)
  3. Run TEST_RESONANCES AXIS=X in the printer’s webinterface command console
  4. Run TEST_RESONANCES AXIS=Y in the printer’s webinterface command console
  5. In the Linux command shell run (you logged in during No 1):
    ~/klipper/scripts/calibrate_shaper.py /tmp/resonances_x_*.csv -o /tmp/shaper_calibrate_x.png
    
  6. In the Linux command shell run (you logged in during No 1):
    ~/klipper/scripts/calibrate_shaper.py /tmp/resonances_y_*.csv -o /tmp/shaper_calibrate_y.png
    
  7. Retrieve the graph files shaper_calibrate_x.png and shaper_calibrate_y.png from the /tmp folder
1 Like

ok so last night and tonight i re read several times to see where/what i have missed,.

  1. i run the script all test values etc pop up in the ssh client but no graph.
  2. i have searched for a /tmp folder but cannot find one?
    so what do i do or what have not done?

ok so it appears it is an access issue for me in ssh with my cb1 on the manta m4p… sadly i only know of the main password user name from the intial setup then what it was changed to once the install was complete.
so i dont know how or where to find out how to enable root access for me on the cb1.

I’m pretty sure that there is a /tmp folder and that you can access it without root rights.

Run following two commands in the Linux shell and copy / paste the output here:

  1. ls -al /
  2. ls -al /tmp

Edit:
Which operating system do you use to access your CB1? Windows?

sorry for delay sineos, i am using ubuntu and for ssh i have always used putty.

biqu@BTT-CB1:~$ ls -al /
total 80
drwxr-xr-x  19 root root  4096 Mar  3 04:23 .
drwxr-xr-x  19 root root  4096 Mar  3 04:23 ..
lrwxrwxrwx   1 root root     7 Feb 26 19:31 bin -> usr/bin
drwxr-xr-x   6 root root 16384 Dec 31  1969 boot
drwxr-xr-x  17 root root  3420 Aug 25 23:18 dev
drwxr-xr-x  90 root root  4096 Aug 23 17:09 etc
drwxr-xr-x   3 root root  4096 Mar  3 02:10 home
lrwxrwxrwx   1 root root     7 Feb 26 19:31 lib -> usr/lib
drwx------   2 root root 16384 Mar  3 02:12 lost+found
drwxr-xr-x   2 root root  4096 Feb 26 19:31 media
drwxr-xr-x   2 root root  4096 Feb 26 19:31 mnt
drwxr-xr-x   2 root root  4096 Feb 26 19:31 opt
dr-xr-xr-x 195 root root     0 Dec 31  1969 proc
drwx------   3 root root  4096 Mar  3 02:18 root
drwxr-xr-x  22 root root   660 Aug 26 17:46 run
lrwxrwxrwx   1 root root     8 Feb 26 19:31 sbin -> usr/sbin
drwxrwxr-x   2 root root  4096 Mar  3 02:06 selinux
drwxr-xr-x   2 root root  4096 Feb 26 19:31 srv
dr-xr-xr-x  12 root root     0 Dec 31  1969 sys
drwxrwxrwt   9 root root   460 Aug 25 23:18 tmp
drwxr-xr-x  11 root root  4096 Feb 26 19:31 usr
drwxr-xr-x  12 root root  4096 Mar  3 04:39 var
biqu@BTT-CB1:~$ ls -al /tmp
total 376
drwxrwxrwt  9 root root    460 Aug 25 23:18 .
drwxr-xr-x 19 root root   4096 Mar  3 04:23 ..
-rw-r--r--  1 biqu biqu   9902 Aug 24 11:03 calibration_data_x_20230824_105805                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   9902 Aug 24 18:53 calibration_data_x_20230824_184820                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   9902 Aug 25 19:46 calibration_data_x_20230825_194149                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   9902 Aug 24 11:03 calibration_data_y_20230824_105805                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   9902 Aug 24 18:53 calibration_data_y_20230824_184820                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   9901 Aug 25 19:46 calibration_data_y_20230825_194149                                                                                                                                                   .csv
drwxrwxrwt  2 root root     40 Aug 23 17:08 .font-unix
drwxrwxrwt  2 root root     40 Aug 23 17:08 .ICE-unix
lrwxrwxrwx  1 root root     10 Aug 23 17:08 klipper_host_mcu -> /dev/pts/0
-rw-r--r--  1 biqu biqu   5939 Aug 24 18:06 resonances_x_20230824_180433.csv
-rw-r--r--  1 biqu biqu   5984 Aug 25 22:32 resonances_x_20230825_223026.csv
-rw-r--r--  1 biqu biqu   5984 Aug 25 22:36 resonances_x_20230825_223409.csv
-rw-r--r--  1 biqu biqu   5939 Aug 24 17:32 resonances_y_20230824_173032.csv
-rw-r--r--  1 biqu biqu 132553 Aug 25 22:37 shaper_calibrate_x.png
-rw-r--r--  1 biqu biqu 131426 Aug 25 00:28 shaper_calibrate_y.png
drwx------  3 root root     60 Aug 23 17:09 systemd-private-6e8c9dfbf5fe421184                                                                                                                                                   725003242845d5-ntp.service-Rfufuj
drwx------  3 root root     60 Aug 23 17:08 systemd-private-6e8c9dfbf5fe421184                                                                                                                                                   725003242845d5-systemd-logind.service-tzjerg
drwxrwxrwt  2 root root     40 Aug 23 17:08 .Test-unix
-r--r--r--  1 root root     11 Aug 23 17:09 .X0-lock
drwxrwxrwt  2 root root     60 Aug 23 17:09 .X11-unix
drwxrwxrwt  2 root root     40 Aug 23 17:08 .XIM-unix
biqu@BTT-CB1:~$

Do you really use Ubuntu and Putty as your daily “work machine”? If so, this should be easy for you: As you can see from the two directory listings, you have a /tmp folder right where it used to be, and in your temp folder you already have the resonance measurement files:

-rw-r--r--  1 biqu biqu   9902 Aug 24 11:03 calibration_data_x_20230824_105805                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   9902 Aug 24 18:53 calibration_data_x_20230824_184820                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   9902 Aug 25 19:46 calibration_data_x_20230825_194149                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   9902 Aug 24 11:03 calibration_data_y_20230824_105805                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   9902 Aug 24 18:53 calibration_data_y_20230824_184820                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   9901 Aug 25 19:46 calibration_data_y_20230825_194149                                                                                                                                                   .csv
-rw-r--r--  1 biqu biqu   5939 Aug 24 18:06 resonances_x_20230824_180433.csv
-rw-r--r--  1 biqu biqu   5984 Aug 25 22:32 resonances_x_20230825_223026.csv
-rw-r--r--  1 biqu biqu   5984 Aug 25 22:36 resonances_x_20230825_223409.csv
-rw-r--r--  1 biqu biqu   5939 Aug 24 17:32 resonances_y_20230824_173032.csv
-rw-r--r--  1 biqu biqu 132553 Aug 25 22:37 shaper_calibrate_x.png
-rw-r--r--  1 biqu biqu 131426 Aug 25 00:28 shaper_calibrate_y.png
  • calibration_data_* comes from automatic calibration via SHAPER_CALIBRATE
  • resonances_* comes from the TEST_RESONANCES commands as detailed in the posts above
  • shaper_calibrate_*.png are your graph files from the ~/klipper/scripts/calibrate_shaper.py

Again, under the assumption that you use Ubuntu as your main work machine to access the CB1:

  • Open your favorite file browser, e.g. Nautilus, Nemo, Thunar, etc.
  • Enter sftp://biqu@YOUR-CB1-IP-ADDRESS in its address bar (if you enter “YOUR-CB1-IP-ADDRESS” literally, I will find and beat you :slight_smile: )
  • Navigate to /tmp and get your graph files
1 Like

well unbuntu is rather new for me but caught on with it quick…but as per your advice yes i agree it is right where it should be. i am starting to believe it is an issue that lies within the laptop i use for the printer work. i tried running the sftp prior to tonight and i get nothing, and this is why with your suggestions here I think it is conclusive…

  1. my laptp running ubuntu is on holidays?
  2. I got a second defective manta board/cb1, first one died after running one print.

so i guess i have to debate how i wanna move forward.

  • You can log on to your CB1 from your Laptop via SSH
  • The files and folder are where they should be and have the permissions as expected for a Linux system
  • Your printer runs and you are able to do the resonance measurements

→ Your CB1 is fine

  • Your Laptop allows you to access the CB1 via SSH

→ Your Laptop is probably not on holiday

Without any offense, my diagnosis would be that you are suffering from a heavy case of PEBCAK

Try:

  1. Open a Terminal window on your Laptop
  2. Enter the command:
    scp biqu@YOUR-CB1-IP-ADDRESS:/tmp/shaper_calibrate_x.png ~/Desktop
    
  3. Check your Desktop

EDIT:
Corrected a typo in the command