- Designed and open-sourced by XBST_ the Klipper USB Accelerometer v2.3 is a solution that fits all printers because it’s a PCB designed to make Klipper’s input shaping much easier by simplifying the wiring and config for measuring resonances. You just need this PCB and a USB C cable that we also provide. Just Plug and Play!
Included:
- KUSBA v2.3 already pre-flashed with klipper
- 1,5 meters long USB-C cable rated upto 5Amp (if you select that option)
Author and credits: https://github.com/xbst/KUSBA
How to Configure Klipper
cd ~
- Download the adxlmcu.cfg file from this repo using:
sudo wget https://raw.githubusercontent.com/xbst/KUSBA/main/Firmware/v2/adxlmcu.cfg
- Find your MCU address.
ls /dev/serial/by-id/*
- Edit the adxlmcu.cfg file. Change the MCU serial address and the probe points.
sudo nano adxlmcu.cfg
- Add the following to your printer.cfg:
[include adxlmcu.cfg]
- Do your testing. When done comment the include line to disable the KUSBA. (If you don’t do this and unplug the KUSBA, Klipper won’t work.)
# [include adxlmcu.cfg]
How to auto tune the input shaper?
First, don’t forget to tune pressure advance and all the other parameters. Inpute shaper should be the very last fine tunning proccess.
install the necessary dependencies via ssh:
~/klippy-env/bin/pip install -v numpy sudo apt update sudo apt install python3-numpy python3-matplotlib
back to the mainsail, edit printer.cfg and make sure you included adxlmcu.cfg
test the connection between adxl345 and rapsberry. in mainsail terminal run/send this code:
ACCELEROMETER_QUERY
you should receive something similar to this format:
Recv: // adxl345 values (x, y, z): 470.719200, 941.438400, 9728.196800
if not. please re-check your wiring. something is wrong.
edit once again printer.cfg but now, this time, edit the printer section
[printer] kinematics: corexy max_accel: 10000 square_corner_velocity: 5.0
now…. let’s run the auto tune.
in mainsail terminal run this code:
SET_VELOCITY_LIMIT ACCEL_TO_DECEL=10000 SET_PRESSURE_ADVANCE ADVANCE=0 SET_INPUT_SHAPER SHAPER_FREQ_X=0 SHAPER_FREQ_Y=0 SHAPER_CALIBRATE
when it’s done run this code
SAVE_CONFIG
revert max accel and decel to 4000.
restart and it should be it 🙂