Wiring Diagram and Klipper Config examples for Input Shaper
Repository for multiple ADXL configurations for Klipper FW Input Shaper.
XIAO SAMD21
https://www.seeedstudio.com/Seeeduino-XIAO-Arduino-Microcontroller-SAMD21-Cortex-M0+-p-4426.html
https://www.adafruit.com/product/4600
XIAO RP2040
https://www.adafruit.com/product/4900
Raspberry Pi 3 - 4
https://www.raspberrypi.com/products/
Adafruit ADXL345
- Other vendors may sell in similar format.
https://www.adafruit.com/product/1231
Follow secondary mcu instructions:
https://www.klipper3d.org/Measuring_Resonances.html
https://www.klipper3d.org/RPi_microcontroller.html
Connections:
Klipper Config:
#Using RPI GPIO
[mcu rpi]
serial: /tmp/klipper_host_mcu
[adxl345]
cs_pin: rpi:None
[resonance_tester]
accel_chip: adxl345
probe_points:
100, 100, 20 # an example
Follow flashing instructions via: Credit to : EsserPrototyping
https://github.com/TehLonZ/Seeed-XIAO-with-ADXL345-for-Klipper
https://github.com/EsserPrototyping/Seeed-XIAO-with-ADXL345-for-Klipper
To assist in finding Dev path for device use before flashing use:
#!/bin/bash
for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
(
syspath="${sysdevpath%/dev}"
devname="$(udevadm info -q name -p $syspath)"
[[ "$devname" == "bus/"* ]] && exit
eval "$(udevadm info -q property --export -p $syspath)"
[[ -z "$ID_SERIAL" ]] && exit
echo "/dev/$devname - $ID_SERIAL"
)
done
Replace "dev/ttyACM1" below with path matching your device.
sudo /usr/local/bin/bossac -i -d -p /dev/ttyACM1 -e -w -v -R --offset=0x2000 out/klipper.bin
Connections:
Klipper Config:
#Using XIAO SAMD21/25
[mcu xiao]
serial: /dev/serial/by-id/usb-Klipper_samd21g18a_
[samd_sercom my_sercom]
sercom: sercom0
tx_pin: xiao:PA6
rx_pin: xiao:PA5
clk_pin: xiao:PA7
[adxl345]
cs_pin: xiao:PB9
[resonance_tester]
accel_chip: adxl345
probe_points:
55,55,20
#End ADXL Section.
Flashing Instructions: https://github.com/TehLonZ/Xiao_rp2040_ADXL_Klipper
Adafruit QT PY used for Fritzing modeling.
Connections:
Klipper Config:
#USING XIAO RP2040
[mcu pico]
serial: /dev/serial/by-id/usb-Klipper_rp2040_
[adxl345]
cs_pin: pico:gpio1
spi_bus: spi0a
axes_map: x,z,y
[resonance_tester]
accel_chip: adxl345
probe_points:
100,100,20