Minor cleanup.

This commit is contained in:
Bassam Husain
2023-01-25 23:09:52 -05:00
parent 8bf7155f19
commit f27df35658
2 changed files with 226 additions and 228 deletions

View File

@@ -1,217 +1,224 @@
# This file contains pin mappings for the stock Sovol SV06 # This file contains pin mappings for the stock Sovol SV06
# To use this config, during "make menuconfig" select the # To use this config, during "make menuconfig" select the
# STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication. # STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication.
# Also, since it is using the GD32F103, please select Disable SWD at startup # Also, since it is using the GD32F103, please select Disable SWD at startup
# Flash this firmware by copying "out/klipper.bin" to a SD card and # Flash this firmware by copying "out/klipper.bin" to a SD card and
# turning on the printer with the card inserted. The firmware # turning on the printer with the card inserted. The firmware
# filename must end in ".bin" and must not match the last filename # filename must end in ".bin" and must not match the last filename
# that was flashed. # that was flashed.
# See docs/Config_Reference.md for a description of parameters. # See docs/Config_Reference.md for a description of parameters.
[include ./macros/macros.cfg] [include ./macros/macros.cfg]
[include ./macros/TEST_SPEED.cfg] [include ./macros/TEST_SPEED.cfg]
[include ./macros/PARKING.cfg] [include ./macros/PARKING.cfg]
[include ./macros/MECHANICAL_GANTRY_CALIBRATION.cfg] [include ./macros/MECHANICAL_GANTRY_CALIBRATION.cfg]
# Uncomment the following line if you're using an adxl345, and have it setup # Uncomment the following line if you're using an adxl345, and have it setup
# [include ./adxl-rp2040.cfg] # [include ./adxl-rp2040.cfg]
[mcu] [mcu]
# Obtain definition by "ls -l /dev/serial/by-id/" # Obtain definition by "ls -l /dev/serial/by-id/"
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
# restart_method: command # NOTE is this needed? restart_method: command
[printer] [printer]
kinematics: cartesian kinematics: cartesian
max_velocity: 300 max_velocity: 300
max_accel: 3000 max_accel: 3000
max_accel_to_decel: 1500 max_accel_to_decel: 1500
max_z_velocity: 5 max_z_velocity: 5
max_z_accel: 100 max_z_accel: 100
# square_corner_velocity: 6.0 # square_corner_velocity: 6.0
##################################################################### #####################################################################
# X/Y Stepper Settings # X/Y Stepper Settings
##################################################################### #####################################################################
[stepper_x] [stepper_x]
step_pin: PC2 step_pin: PC2
dir_pin: !PB9 dir_pin: !PB9
enable_pin: !PC3 enable_pin: !PC3
microsteps: 16 microsteps: 16
rotation_distance: 40 rotation_distance: 40
endstop_pin: tmc2209_stepper_x:virtual_endstop endstop_pin: tmc2209_stepper_x:virtual_endstop
position_endstop: 0 position_endstop: 0
position_max: 225 position_max: 225
homing_speed: 40 homing_speed: 40
homing_retract_dist: 0 homing_retract_dist: 0
[tmc2209 stepper_x] [tmc2209 stepper_x]
uart_pin: PC1 uart_pin: PC1
run_current: 0.860 run_current: 0.860
stealthchop_threshold: 0 stealthchop_threshold: 0
interpolate: False interpolate: False
sense_resistor: 0.150 sense_resistor: 0.150
uart_address: 3 uart_address: 3
driver_SGTHRS: 81 driver_SGTHRS: 81
diag_pin: PA5 diag_pin: PA5
[stepper_y] [stepper_y]
step_pin: PB8 step_pin: PB8
dir_pin: PB7 dir_pin: PB7
enable_pin: !PC3 enable_pin: !PC3
microsteps: 16 microsteps: 16
rotation_distance: 40 rotation_distance: 40
endstop_pin: tmc2209_stepper_y:virtual_endstop endstop_pin: tmc2209_stepper_y:virtual_endstop
position_endstop: 0 position_endstop: 0
position_max: 225 position_max: 225
homing_speed: 40 homing_speed: 40
homing_retract_dist: 0 homing_retract_dist: 0
[tmc2209 stepper_y] [tmc2209 stepper_y]
uart_pin: PC0 uart_pin: PC0
run_current: 0.900 run_current: 0.900
stealthchop_threshold: 0 stealthchop_threshold: 0
interpolate: False interpolate: False
sense_resistor: 0.150 sense_resistor: 0.150
uart_address: 3 uart_address: 3
driver_SGTHRS: 82 driver_SGTHRS: 82
diag_pin: PA6 diag_pin: PA6
##################################################################### #####################################################################
# Z Stepper Settings # Z Stepper Settings
##################################################################### #####################################################################
[stepper_z] [stepper_z]
step_pin: PB6 step_pin: PB6
dir_pin: !PB5 dir_pin: !PB5
enable_pin: !PC3 enable_pin: !PC3
microsteps: 16 microsteps: 16
rotation_distance: 4 rotation_distance: 4
endstop_pin: probe:z_virtual_endstop endstop_pin: probe:z_virtual_endstop
position_min: -4 position_min: -4
position_max: 261 position_max: 261
homing_speed: 4 homing_speed: 4
[tmc2209 stepper_z] [tmc2209 stepper_z]
uart_pin: PA15 uart_pin: PA15
run_current: 1.000 run_current: 1.000
stealthchop_threshold: 0 stealthchop_threshold: 0
interpolate: False interpolate: False
sense_resistor: 0.150 sense_resistor: 0.150
uart_address: 3 uart_address: 3
diag_pin: PA7 diag_pin: PA7
##################################################################### #####################################################################
# Extruder # Extruder
##################################################################### #####################################################################
[extruder] [extruder]
max_extrude_only_distance: 150.0 step_pin: PB4
step_pin: PB4 dir_pin: !PB3
dir_pin: !PB3 enable_pin: !PC3
enable_pin: !PC3 microsteps: 16
microsteps: 16 rotation_distance: 4.56
rotation_distance: 4.56 nozzle_diameter: 0.400
nozzle_diameter: 0.400 filament_diameter: 1.750
filament_diameter: 1.750 heater_pin: PA1
heater_pin: PA1 sensor_type: sovol_thermistor
sensor_type: sovol_thermistor sensor_pin: PC5
sensor_pin: PC5 min_temp: 0
control: pid max_temp: 270
pid_kd: 86.991 min_extrude_temp: 190
pid_kp: 21.479 max_extrude_only_distance: 150.0
pid_ki: 1.326
min_temp: 0 [tmc2209 extruder]
max_temp: 300 uart_pin: PC14
# min_extrude_temp: 190 # TODO enable after initial setup run_current: 0.550
stealthchop_threshold: 0
[tmc2209 extruder] interpolate: False
uart_pin: PC14 sense_resistor: 0.150
run_current: 0.550 uart_address: 3
stealthchop_threshold: 0
interpolate: False #####################################################################
sense_resistor: 0.150 # Probe Related
uart_address: 3 #####################################################################
##################################################################### [probe]
# Probe Related pin: PB1
##################################################################### x_offset: 27
y_offset: -20
[probe] z_offset: 0
pin: PB1 speed: 7
x_offset: 27 samples: 3
y_offset: -20 samples_tolerance: 0.01
z_offset: 0 samples_tolerance_retries: 10
speed: 7
samples: 3 [safe_z_home]
samples_tolerance: 0.01 home_xy_position: 83,90
samples_tolerance_retries: 10 speed: 60.0
z_hop: 10
[safe_z_home] z_hop_speed: 5
home_xy_position: 83,90
speed: 60.0 [bed_mesh]
z_hop: 10 speed: 120
z_hop_speed: 5 mesh_min: 30, 23
mesh_max: 214, 214
[bed_mesh] probe_count: 25
speed: 120 algorithm: bicubic
mesh_min: 30, 23 fade_start: 1
mesh_max: 214, 214 fade_end: 10
probe_count: 25 fade_target: 0
algorithm: bicubic
fade_start: 1 #####################################################################
fade_end: 10 # Misc
fade_target: 0 #####################################################################
##################################################################### # [input_shaper]
# Misc # shaper_freq_x: 46.948
##################################################################### # shaper_type_x: mzv
# shaper_freq_y: 52.493
# [input_shaper] # shaper_type_y: mzv
# shaper_freq_x: 46.948 # shaper_type: ei
# shaper_type_x: mzv
# shaper_freq_y: 52.493 [virtual_sdcard]
# shaper_type_y: mzv path: /home/pi/printer_data/gcodes
# shaper_type: ei
[temperature_sensor mcu_temp]
[virtual_sdcard] sensor_type: temperature_mcu
path: /home/pi/printer_data/gcodes min_temp: 25
max_temp: 80
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu [temperature_sensor raspberry_pi]
min_temp: 25 sensor_type: temperature_host
max_temp: 80 min_temp: 25
max_temp: 80
[temperature_sensor raspberry_pi]
sensor_type: temperature_host [thermistor sovol_thermistor]
min_temp: 25 temperature1: 25
max_temp: 80 resistance1: 94162
beta: 4160
[thermistor sovol_thermistor]
temperature1: 25 [heater_bed]
resistance1: 94162 heater_pin: PA2
beta: 4160 sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
[heater_bed] min_temp: 0
heater_pin: PA2 max_temp: 110
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4 [fan]
control: pid pin: PA0
pid_kp: 64.440
pid_ki: 0.773 [display]
pid_kd: 1343.571 lcd_type: st7920
min_temp: 0 cs_pin: PB12
max_temp: 130 sclk_pin: PB13
sid_pin: PB15
[fan] encoder_pins: ^PB14, ^PB10
pin: PA0 click_pin: ^!PB2
[display] #*# <---------------------- SAVE_CONFIG ---------------------->
lcd_type: st7920 #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
cs_pin: PB12 #*#
sclk_pin: PB13 #*# [extruder]
sid_pin: PB15 #*# control = pid
encoder_pins: ^PB14, ^PB10 #*# pid_kp = 21.047
click_pin: ^!PB2 #*# pid_ki = 1.477
#*# pid_kd = 74.981
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 71.224
#*# pid_ki = 1.341
#*# pid_kd = 945.503

View File

@@ -108,7 +108,6 @@ diag_pin: PA7
##################################################################### #####################################################################
[extruder] [extruder]
max_extrude_only_distance: 150.0
step_pin: PB4 step_pin: PB4
dir_pin: !PB3 dir_pin: !PB3
enable_pin: !PC3 enable_pin: !PC3
@@ -119,13 +118,10 @@ filament_diameter: 1.750
heater_pin: PA1 heater_pin: PA1
sensor_type: sovol_thermistor sensor_type: sovol_thermistor
sensor_pin: PC5 sensor_pin: PC5
#control: pid
#pid_kd: 86.991
#pid_kp: 21.479
#pid_ki: 1.326
min_temp: 0 min_temp: 0
max_temp: 270 max_temp: 270
# min_extrude_temp: 190 # TODO enable after initial setup min_extrude_temp: 190
max_extrude_only_distance: 150.0
[tmc2209 extruder] [tmc2209 extruder]
uart_pin: PC14 uart_pin: PC14
@@ -200,11 +196,6 @@ sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4 sensor_pin: PC4
min_temp: 0 min_temp: 0
max_temp: 110 max_temp: 110
#control: pid
#pid_kp: 64.440
#pid_ki: 0.773
#pid_kd: 1343.571
[fan] [fan]
pin: PA0 pin: PA0