Skip to content

Configuration for XIAO RP2040 for Input Shaper/ADXL usage on Klipper

License

Notifications You must be signed in to change notification settings

TehLonZ/Xiao_rp2040_ADXL_Klipper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Xiao_rp2040_ADXL_Klipper

Configuration for XIAO RP2040 for Input Shaper/ADXL usage on Klipper

Usage of XIAO RP2040 Mcu : https://wiki.seeedstudio.com/XIAO-RP2040/

for Input shaper acclerometer for Klipper firmware of 3d printers. For use with ADXL345 pcbs. https://www.klipper3d.org/Measuring_Resonances.html

Firmware:

SSH from Klipper directory on PI.

cd ~/klipper

Use command : make menuconfig Setup with below settings. Press Q to save.


  • uncheck extra low-level options
  • Architecture: Raspberry Pi RP2040
  • Communication Interface: USB

image


Enter in SSH :

make clean
make

image


WINSCP

https://winscp.net/eng/index.php

Using WINSCP connect to PI via local IP. Navigate to /klipper/out folder Download klipper.uf2 to known directory on PC image


XIAO RP2040.

While holding "B" Button , connect XIAO to USB to PC that has "klipper.uf2" file. More info: https://wiki.seeedstudio.com/XIAO-RP2040/

image

After XIAO is available on PC.

Copy "klipper.uf2" to XIAO.

Once complete, disconnect from PC.


VERIFYING FLASH:

Connect XIAO to Raspberry Pi. From SSH , use command :


ls /dev/serial/by-id/*

3d printer MCU and XIAO as Klipper should display. XIAO is now flash with klipper FM.


WIRING ADXL :

image

Images are of ADXL wired for VCC , NOT 3v3. Wire accordingly.

Use this resource if unsure:

https://klipper.discourse.group/t/raspberry-pi-pico-adxl345-portable-resonance-measurement/1757

image image image image

KLIPPER CONFIG:

Find Xiao serial by using :

ls /dev/serial/by-id/*

Enter this address in the "mcu" section below within your printer config.

Save and restart after editing printer.cfg file.

image


Testing:

Instructions with more detail are found at: https://www.klipper3d.org/Measuring_Resonances.html

ACCELEROMETER_QUERY will fail on first attempt. This is normal.

Use

ACCELEROMETER_QUERY 

in console to verify communication to ADXL : Klipper should report: image

Use

MEASURE_AXES_NOISE

to measure noise of ADXL.

image

image

About

Configuration for XIAO RP2040 for Input Shaper/ADXL usage on Klipper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published