From f10ce8489e1d8cd816a7f4b5f490f7f42800faad Mon Sep 17 00:00:00 2001 From: Bassam Husain Date: Sat, 21 Jan 2023 07:34:12 -0500 Subject: [PATCH] Created adxl-rp2040.cfg. Cleanup in klipper*.cfg. --- adxl-rp2040.cfg | 15 +++++++++++++++ klipper-printer-sovol-sv06.cfg | 28 ++++++---------------------- 2 files changed, 21 insertions(+), 22 deletions(-) create mode 100644 adxl-rp2040.cfg diff --git a/adxl-rp2040.cfg b/adxl-rp2040.cfg new file mode 100644 index 0000000..1bbe1d1 --- /dev/null +++ b/adxl-rp2040.cfg @@ -0,0 +1,15 @@ +##################################################################### +# ADXL345 related Settings +# https://www.klipper3d.org/Measuring_Resonances.html#adxl345 +##################################################################### + +[mcu rpi] +serial: /dev/serial/by-id/usb-Klipper_rp2040_E66138935F154C28-if00 + +[adxl345] +cs_pin: rpi:None + +[resonance_tester] +accel_chip: adxl345 +probe_points: + 110, 110, 20 # an example \ No newline at end of file diff --git a/klipper-printer-sovol-sv06.cfg b/klipper-printer-sovol-sv06.cfg index 870a20b..da5e52b 100644 --- a/klipper-printer-sovol-sv06.cfg +++ b/klipper-printer-sovol-sv06.cfg @@ -14,11 +14,11 @@ [include ./macros/TEST_SPEED.cfg] [include ./macros/PARKING.cfg] [include ./macros/MECHANICAL_GANTRY_CALIBRATION.cfg] +# Uncomment the following line if you're using an adxl345, and have it setup +[include ./adxl-rp2040.cfg] [mcu] -##################################################################### # Obtain definition by "ls -l /dev/serial/by-id/" -##################################################################### serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 # restart_method: command # NOTE is this needed? @@ -136,21 +136,9 @@ sense_resistor: 0.150 uart_address: 3 ##################################################################### -# ADXL345 related Settings -# https://www.klipper3d.org/Measuring_Resonances.html#adxl345 +# Misc ##################################################################### -# Uncomment this section if you're using an adxl345 -# [mcu rpi] -# serial: /tmp/klipper_host_mcu - -# [adxl345] -# cs_pin: rpi:None - -# [resonance_tester] -# accel_chip: adxl345 -# probe_points: 110, 110, 20 - # [input_shaper] # shaper_freq_x: 46.948 # shaper_type_x: mzv @@ -158,12 +146,8 @@ uart_address: 3 # shaper_type_y: mzv # shaper_type: ei -##################################################################### -# Misc -##################################################################### - -# [virtual_sdcard] -# path: /home/pi/gcode_files/ +[virtual_sdcard] +path: /home/pi/printer_data/gcodes [temperature_sensor mcu_temp] sensor_type: temperature_mcu @@ -226,4 +210,4 @@ cs_pin: PB12 sclk_pin: PB13 sid_pin: PB15 encoder_pins: ^PB14, ^PB10 -click_pin: ^!PB2 +click_pin: ^!PB2 \ No newline at end of file