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
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
Enter in SSH :
make clean
make
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
While holding "B" Button , connect XIAO to USB to PC that has "klipper.uf2" file. More info: https://wiki.seeedstudio.com/XIAO-RP2040/
After XIAO is available on PC.
Copy "klipper.uf2" to XIAO.
Once complete, disconnect from PC.
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.
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
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.
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:
Use
MEASURE_AXES_NOISE
to measure noise of ADXL.