diff --git a/cfgs/adxl-rp2040.cfg b/cfgs/adxl-rp2040.cfg index bf02a8e..a97f16b 100644 --- a/cfgs/adxl-rp2040.cfg +++ b/cfgs/adxl-rp2040.cfg @@ -3,20 +3,23 @@ # https://www.klipper3d.org/Measuring_Resonances.html#adxl345 ##################################################################### -[mcu rp2040] +[mcu RP2040] baud: 115200 # 250000 restart_method: command # Obtain definition by "ls -l /dev/serial/by-id/" serial: /dev/serial/by-id/usb-Klipper_rp2040_E66138935F154C28-if00 [adxl345] -spi_software_miso_pin: rp2040:gpio8 -cs_pin: rp2040:gpio9 -# spi_bus: spi0b -spi_software_sclk_pin: rp2040:gpio10 -spi_software_mosi_pin: rp2040:gpio11 -axes_map: x,y,z +axes_map: x,z,y # Installed with vertical ADXL # For Diamond in X, y, z + + # RP2040 +cs_pin: RP2040:gpio1 #RP2040:gpio1 +spi_bus: spi0a # spi0a [resonance_tester] accel_chip: adxl345 -probe_points: 111.5, 111.5, 20 \ No newline at end of file +probe_points: 111.5, 111.5, 20 + +[gcode_macro ADX] +gcode: + ACCELEROMETER_QUERY # check ADXL345 diff --git a/printer.cfg b/printer.cfg index d863592..2905860 100644 --- a/printer.cfg +++ b/printer.cfg @@ -14,7 +14,7 @@ [include ./cfgs/beeper.cfg] # NOTE Uncomment the ONE of the following lines if you're using an adxl345 -# [include ./cfgs/adxl-rp2040.cfg] +[include ./cfgs/adxl-rp2040.cfg] # [include ./cfgs/adxl-direct.cfg] [mcu] @@ -168,10 +168,10 @@ encoder_pins: ^PB14, ^PB10 click_pin: ^!PB2 [input_shaper] -shaper_freq_x = 56.0 -shaper_type_x: mzv -shaper_freq_y = 59.0 -shaper_type_y: 3hump_ei +shaper_freq_x = 102.2 +shaper_type_x: 3hump_ei # mzv +shaper_freq_y = 41.8 # 59.0 +shaper_type_y: mzv # 3hump_ei [bed_screws] screw1: 26.5, 31