Mellow-3D / USB-Accelerometer

3 stars 0 forks source link

Added instructions in english #1

Open Bomberski opened 1 year ago

Bomberski commented 1 year ago

Something like this? (SSH) cd ~/klipper/ make menuconfig Use raspberry pi rp2040 And bootloader? (Worked for mine) make clean make ############# (Hold button when pluging in Accelerometer)

  1. SSH into pi and run lsusb to get your Accelerometers address "ID 2e8a:0003 Raspberry Pi RP2 Boot"

  2. Run

cd ~/klipper/ make flash FLASH_DEVICE=2e8a:0003 flash

  1. Create a file named (adxl.cfg), in the same folder as config.cfg. (be sure to add [include adxl.cfg] in printer.cfg)

Then add this text in your adxl.cfg

(Replace xxxxxxxxx with what you get from ls dev/serial/by-id/*)

############################### [mcu adxl] serial: /dev/serial/by-id/usb-Klipper_rp2040_XXXXXXXXXXXXXXXXXXXXX

ADXL345

[adxl345] cs_pin: adxl:gpio9 spi_software_sclk_pin: adxl:gpio10 spi_software_mosi_pin: adxl:gpio11 spi_software_miso_pin: adxl:gpio12

[resonance_tester] accel_chip: adxl345 probe_points: 100, 100, 20 ################################

If your not leaving this on permanently (normally you dont), please do this when finished #[include adxl.cfg] in your printer.cfg file

Hope this helps someone.

Ghostlyb commented 10 months ago

Thank you mate :)