Skip to content

Instantly share code, notes, and snippets.

@jalexandre0
Last active April 15, 2023 13:44
Show Gist options
  • Save jalexandre0/196e2073ca279c8c0dc2aa913fa9b9bc to your computer and use it in GitHub Desktop.
Save jalexandre0/196e2073ca279c8c0dc2aa913fa9b9bc to your computer and use it in GitHub Desktop.
Klipper config for Ender 3 + CR Touch + Dual Gear Extruder
[include mainsail.cfg]
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_19001B000550415339373620-if00
restart_method: command
#[mcu zboard]
#serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_56FF69067189545028462567-if00
#restart_method: command
#[manual_stepper test_stepper]
#step_pin: zboard:PB6
#dir_pin: zboard:PB7
#enable_pin: !zboard:PB5
#microsteps: 16
#rotation_distance: 8
[exclude_object]
[neopixel led]
pin: PA8
chain_count: 15
initial_RED: 1.0
initial_GREEN: 1.0
initial_BLUE: 1.0
#[led_effect panel_idle]
#autostart: true
#frame_rate: 24
#leds:
# neopixel:led
#layers:
# breathing .5 0 screen (0,.1,1), (0,1,.5), (0, 1,1), (0,.1,.5)
[output_pin ps_on]
pin: PC13
pwm: False
value: 1
shutdown_value: 0
# Sprite Pro
#[extruder]
#max_extrude_only_distance: 100.0
#step_pin: PB4
#dir_pin: PB3
#enable_pin: !PC3
#microsteps: 16
#rotation_distance: 7.6190
#nozzle_diameter: 0.400
#filament_diameter: 1.750
#heater_pin: PA1
#sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PC5
#control: pid
#pid_Kp: 21.761
#pid_Ki: 1.261
#pid_Kd: 93.844
#min_temp: 0
#max_temp: 300
#pressure_advance = 0.07
#[bltouch]
#sensor_pin: ^PC14
#control_pin: PC13
#x_offset: -32
#y_offset: -41
#z_offset: 2.900
#speed:10
#samples:1
#samples_result:average
#probe_with_touch_mode: true
#stow_on_each_sample: false
[extruder]
step_pin: PB3
dir_pin: !PB4
enable_pin: !PD1
microsteps: 16
rotation_distance: 22.704 ; PERFECT!
nozzle_diameter: 0.600
filament_diameter: 1.750
heater_pin: PC8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
min_temp: 0
max_temp: 300
max_extrude_only_distance: 1000
#pid_Kp: 21.415
#pid_Ki: 0.945
#pid_Kd: 121.264
#control: pid
[bltouch]
sensor_pin: ^PC14
control_pin: PA1
x_offset: -44
y_offset: -9
speed: 15
samples_result: average
probe_with_touch_mode: True
stow_on_each_sample: False # Keep the probe extended between points
samples: 1 # Probe each point at least twice
[safe_z_home]
home_xy_position: 117.5,117.5 # Change coordinates to the center of your print bed
speed: 200
z_hop: 10 # Move up 10mm
z_hop_speed: 50
[stepper_x]
; 93 steps per mm in default marlin config
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
microsteps: 16
rotation_distance: 40
full_steps_per_rotation: 200
endstop_pin: ^PC0
position_endstop: 0
position_max: 250
position_min: -2
homing_speed: 200
position_min: -10
[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
run_current: 0.650
stealthchop_threshold: 999999
[stepper_y]
step_pin: PB10
dir_pin: !PB2
enable_pin: !PB11
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC1
position_endstop: -22
position_max: 235
position_min: -22
homing_speed: 100
[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
run_current: 0.650
stealthchop_threshold: 999999
[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_max: 257
position_min: -10
[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
run_current: 0.600
uart_address: 1
stealthchop_threshold: 999999
[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
run_current: 0.650
stealthchop_threshold: 999999
[heater_bed]
heater_pin: PC9
sensor_type: ATC Semitec 104GT-2
sensor_pin: PC4
min_temp: 0
max_temp: 130
#control: pid
#pid_Kp:73.618
#pid_Ki:1.664
#pid_Kd:814.401
[heater_fan nozzle_cooling_fan]
pin: PC7
[heater_fan controller_fan]
pin: PB15
[heater_fan extruder_partfan]
pin: PC6
[printer]
kinematics: cartesian
max_velocity: 500
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
[board_pins]
aliases:
# EXP1 header
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PD6, EXP1_10=<5V>
[display]
lcd_type: emulated_st7920
spi_software_miso_pin: PD8 # status led, Virtual MISO
spi_software_mosi_pin: PD6
spi_software_sclk_pin: PB9
en_pin: PB8
encoder_pins: ^PA10, ^PA9
click_pin: ^!PA15
[bed_mesh]
speed: 250
horizontal_move_z: 5
mesh_min: 10, 45
mesh_max: 200, 200
probe_count: 7, 7
algorithm: bicubic
[gcode_macro G29]
gcode:
BED_MESH_CALIBRATE
[gcode_macro G10]
gcode:
G1 E -2
[screws_tilt_adjust]
screw1_name: rear left screw
screw1: 76.5, 211
screw2_name: rear right screw
screw2: 245.5,211
screw3_name: front right screw
screw3: 245.5, 43
screw4_name: front left screw
screw4: 76.5, 43
screw_thread: CW-M4
horizontal_move_z: 10
speed: 200
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 21.123
#*# pid_ki = 1.100
#*# pid_kd = 101.392
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 70.084
#*# pid_ki = 1.750
#*# pid_kd = 701.713
#*#
#*# [bltouch]
#*# z_offset = 1.735
@jalexandre0
Copy link
Author

WIP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment