Note: Make sure to use an up-to-date version of Klipper with LIS2DW accelerometer support.
Klipper Prep. (enabling resonance testing)
- Run the following commands in order. This will take some time. (Based on the official Klipper docs)
~/klippy-env/bin/pip install -v numpy
sudo apt update
sudo apt install python3-numpy python3-matplotlib libatlas-base-dev
- Connect your KUSBA PRO via a USB cable to your Raspberry Pi while holding down the button. The LED on the PCB will turn on.
- SSH into your Raspberry Pi.
- Go to the Klipper directory:
cd ~/klipper
- Clean remaining files from previous build:
make clean
- Choose the options for the build:
make menuconfig
- Use these settings:
[*] Enable extra low-level configuration options
Micro-controller Architecture (STMicroelectronics STM32) --->
Processor model (STM32F042) --->
Bootloader offset (No bootloader) --->
Clock Reference (8 MHz crystal) --->
Communication interface (USB (on PA9/PA10)) --->
USB ids --->
Optional features (to reduce code size) --->
() GPIO pins to set at micro-controller startup (NEW)
- Enter the
Optional features (to reduce code size)
menu. Disable these options:
[ ] Support GPIO "bit-banging" devices
[ ] Support LCD devices
[*] Support external sensor devices
[*] Support lis2dw 3-axis accelerometer
[ ] Support software based I2C "bit-banging"
[ ] Support software based SPI "bit-banging"
- Exit by typing
Q
, save by pressingY
. - Build the firmware:
make
- Find the ID of your KUSBA PRO in DFU mode using
lsusb
. It should be the device appearing asSTM Device in DFU mode
. - Flash the firmware:
make flash FLASH_DEVICE=1234:5678
. Replace1234:5678
with the ID you found in the above step. - Use
ls /dev/serial/by-id/*
to find the serial address of your KUSBA PRO. It'll start with:usb-Klipper_stm32f042
- Download the
adxlmcu.cfg
file from this repository. - Upload the
adxlmcu.cfg
file to your config directory. You can do this on Mainsail/Fluidd etc. - Edit the
adxlmcu.cfg
file (in Mainsail/Fluidd). Change the MCU serial address (step 12) and the probe points. - Save and close.
- If your KUSBA PRO isn't assembled follow the assembly doc first.
- Edit your
printer.cfg
file. Add:
[include adxlmcu.cfg]
- Do your input shaper testing. When done comment the include line to disable the KUSBA PRO. (If you don't do this and unplug the KUSBA PRO, Klipper won't work.)
# [include adxlmcu.cfg]