RP2040 adxl345 working. Input shaper values adjusted.

This commit is contained in:
Bassam Husain
2023-02-16 18:55:08 -05:00
parent 9ed8bf2ced
commit 2b33f079b3
2 changed files with 16 additions and 13 deletions

View File

@@ -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
probe_points: 111.5, 111.5, 20
[gcode_macro ADX]
gcode:
ACCELEROMETER_QUERY # check ADXL345

View File

@@ -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