Klipper Config

Post Reply
Jhonno
HevORT Builder&Operator
Posts: 348
Joined: Wed Aug 12, 2020 3:01 pm
Location: UK
Has thanked: 16 times
Been thanked: 16 times

Klipper Config

Post by Jhonno »

Would it be worth sharing your printer.cfg files somewhere for people to reference?

Just going through the setup atm, and thinking how helpful it would be if we had this.. :lol:

@teeminus have you got a Klipper config file you can share with me? I know you are running TMC5161..

teeminus
HevORT Builder
Posts: 122
Joined: Wed Aug 26, 2020 10:49 am
Location: H, Germany
Has thanked: 3 times
Been thanked: 9 times

Re: Klipper Config

Post by teeminus »

I am using TMC5160 drivers :) Unfortunately, I am currently out of town with no access to the printer or it’s files. But I will post my config when I am back.

When I remember correctly, there should be a Klipper config from Oliver in the discord channel. But I don’t know how long those files are stored there...
🇩🇪

Jhonno
HevORT Builder&Operator
Posts: 348
Joined: Wed Aug 12, 2020 3:01 pm
Location: UK
Has thanked: 16 times
Been thanked: 16 times

Re: Klipper Config

Post by Jhonno »

teeminus wrote:
Sat Mar 27, 2021 4:19 pm
I am using TMC5160 drivers :) Unfortunately, I am currently out of town with no access to the printer or it’s files. But I will post my config when I am back.

When I remember correctly, there should be a Klipper config from Oliver in the discord channel. But I don’t know how long those files are stored there...
Gone anywhere nice?

I have had a brief look on Discord but struggling to navigate it currently.. Never really used it.

teeminus
HevORT Builder
Posts: 122
Joined: Wed Aug 26, 2020 10:49 am
Location: H, Germany
Has thanked: 3 times
Been thanked: 9 times

Re: Klipper Config

Post by teeminus »

Here is my klipper config file. Be careful with the TMC section, I had some troubles with random stepper driver shutdowns so I manually copied the marlin TMC settings to the klipper config file. I have not checked if I still need those changes after the rebuild...

Code: Select all

[include kiauh_macros.cfg]

[bltouch]
control_pin: PA1
sensor_pin: ^PA2
y_offset: -35
samples: 2
z_offset: 1

[safe_z_home]
home_xy_position: 100,100
z_hop: 10

[stepper_x]
step_pin: PE9
dir_pin: PF1
enable_pin: !PF2
microsteps: 16
rotation_distance: 20
endstop_pin: PB10
position_endstop: 0
position_max: 315
homing_speed: 50
homing_retract_dist: 10

[stepper_y]
step_pin: PE11
dir_pin: PE8
enable_pin: !PD7
microsteps: 16
rotation_distance: 20
endstop_pin: PE12
position_endstop: 0
position_max: 315
homing_speed: 50
homing_retract_dist: 10

[stepper_z]
step_pin: PE13
dir_pin: PC2
enable_pin: !PC0
microsteps: 16
rotation_distance: 2
endstop_pin: probe:z_virtual_endstop
#endstop_pin: PG8
position_min: -10
position_max: 200

[stepper_z1]
step_pin: PD15
dir_pin: PE7	
enable_pin: !PA3
microsteps: 16
rotation_distance: 2

[stepper_z2]
step_pin: PD13
dir_pin: PG9
enable_pin: !PF0
microsteps: 16
rotation_distance: 2

[extruder]
step_pin: PE14
dir_pin: PA0
enable_pin: !PC3
microsteps: 16
rotation_distance: 8
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PB1 # Heat0
sensor_pin:  PF4 # T1 Header
sensor_type: EPCOS 100K B57560G104F
control: pid
#pid_kp = 35.280
#pid_ki = 2.400
#pid_kd = 129.653
pid_Kp=33.763
pid_Ki=1.705
pid_Kd=167.128
min_temp: 0
max_temp: 260

[heater_bed]
heater_pin: PD12
sensor_pin: PF3 # T0
sensor_type: NTC 100K beta 3950
control: pid
pid_Kp=48.196
pid_Ki=1.700
pid_Kd=341.592
min_temp: 0
max_temp: 130

[fan]
pin: PC8

[heater_fan fan1]
pin: PE5

[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_31003A0015504E4855343620-if00

[printer]
kinematics: corexy
max_velocity: 500
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100

[board_pins]
aliases:
    # EXP1 header
    EXP1_1=PG4, EXP1_3=PD11, EXP1_5=PG2, EXP1_7=PG6, EXP1_9=<GND>,
    EXP1_2=PA8, EXP1_4=PD10, EXP1_6=PG3, EXP1_8=PG7, EXP1_10=<5V>,
    # EXP2 header
    EXP2_1=PB14, EXP2_3=PG10, EXP2_5=PF11, EXP2_7=PF12,  EXP2_9=<GND>,
    EXP2_2=PB13, EXP2_4=PB12, EXP2_6=PB15, EXP2_8=<RST>, EXP2_10=PF13
    # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi2"

[display]
lcd_type: st7920
cs_pin: EXP1_4
sclk_pin: EXP1_5
sid_pin: EXP1_3
encoder_pins: ^EXP2_5, ^EXP2_3
click_pin: ^!EXP1_2

[tmc5160 stepper_x]
cs_pin: PA15
sense_resistor: 0.075
interpolate: True
run_current: 1.1
hold_current: 0.4
spi_software_mosi_pin: PC12
spi_software_miso_pin: PC11
spi_software_sclk_pin: PC10
driver_IHOLDDELAY: 10
driver_TPOWERDOWN: 128
driver_TBL: 1
driver_TOFF: 3
driver_HEND: 2
driver_HSTRT: 4
driver_FD3: 0
driver_TPFD: 0
driver_CHM: 0
driver_VHIGHFS: 0
driver_VHIGHCHM: 0
driver_DISS2G: 0
driver_DISS2VS: 0
driver_PWM_AUTOSCALE: True
driver_PWM_AUTOGRAD: True
driver_PWM_FREQ: 1
driver_FREEWHEEL: 0
driver_PWM_GRAD: 14
driver_PWM_OFS: 36
driver_PWM_REG: 8
driver_PWM_LIM: 12
driver_SGT: 0
driver_SEMIN: 0
driver_SEUP: 0
driver_SEMAX: 0
driver_SEDN: 0
driver_SEIMIN: 0
driver_SFILT: 0

[tmc5160 stepper_y]
cs_pin: PB8
sense_resistor: 0.075
interpolate: True
run_current: 1.1
hold_current: 0.4
spi_software_mosi_pin: PC12
spi_software_miso_pin: PC11
spi_software_sclk_pin: PC10
driver_IHOLDDELAY: 10
driver_TPOWERDOWN: 128
driver_TBL: 1
driver_TOFF: 3
driver_HEND: 2
driver_HSTRT: 4
driver_FD3: 0
driver_TPFD: 0
driver_CHM: 0
driver_VHIGHFS: 0
driver_VHIGHCHM: 0
driver_DISS2G: 0
driver_DISS2VS: 0
driver_PWM_AUTOSCALE: True
driver_PWM_AUTOGRAD: True
driver_PWM_FREQ: 1
driver_FREEWHEEL: 0
driver_PWM_GRAD: 14
driver_PWM_OFS: 36
driver_PWM_REG: 8
driver_PWM_LIM: 12
driver_SGT: 0
driver_SEMIN: 0
driver_SEUP: 0
driver_SEMAX: 0
driver_SEDN: 0
driver_SEIMIN: 0
driver_SFILT: 0

[tmc5160 extruder]
cs_pin: PB3
sense_resistor: 0.075
interpolate: True
run_current: 1.3
spi_software_mosi_pin: PC12
spi_software_miso_pin: PC11
spi_software_sclk_pin: PC10
driver_IHOLDDELAY: 10
driver_TPOWERDOWN: 128
driver_TBL: 1
driver_TOFF: 3
driver_HEND: 2
driver_HSTRT: 4
driver_FD3: 0
driver_TPFD: 0
driver_CHM: 0
driver_VHIGHFS: 0
driver_VHIGHCHM: 0
driver_DISS2G: 0
driver_DISS2VS: 0
driver_PWM_AUTOSCALE: True
driver_PWM_AUTOGRAD: True
driver_PWM_FREQ: 1
driver_FREEWHEEL: 0
driver_PWM_GRAD: 14
driver_PWM_OFS: 36
driver_PWM_REG: 8
driver_PWM_LIM: 12
driver_SGT: 0
driver_SEMIN: 0
driver_SEUP: 0
driver_SEMAX: 0
driver_SEDN: 0
driver_SEIMIN: 0
driver_SFILT: 0

[tmc5160 stepper_z]
cs_pin: PB9
sense_resistor: 0.075
interpolate: True
run_current: 1
hold_current: 0.3
spi_software_mosi_pin: PC12
spi_software_miso_pin: PC11
spi_software_sclk_pin: PC10
driver_IHOLDDELAY: 10
driver_TPOWERDOWN: 128
driver_TBL: 1
driver_TOFF: 3
driver_HEND: 2
driver_HSTRT: 4
driver_FD3: 0
driver_TPFD: 0
driver_CHM: 0
driver_VHIGHFS: 0
driver_VHIGHCHM: 0
driver_DISS2G: 0
driver_DISS2VS: 0
driver_PWM_AUTOSCALE: True
driver_PWM_AUTOGRAD: True
driver_PWM_FREQ: 1
driver_FREEWHEEL: 0
driver_PWM_GRAD: 14
driver_PWM_OFS: 36
driver_PWM_REG: 8
driver_PWM_LIM: 12
driver_SGT: 0
driver_SEMIN: 0
driver_SEUP: 0
driver_SEMAX: 0
driver_SEDN: 0
driver_SEIMIN: 0
driver_SFILT: 0

[tmc5160 stepper_z1]
cs_pin: PG15
sense_resistor: 0.075
interpolate: True
run_current: 1
hold_current: 0.3
spi_software_mosi_pin: PC12
spi_software_miso_pin: PC11
spi_software_sclk_pin: PC10
driver_IHOLDDELAY: 10
driver_TPOWERDOWN: 128
driver_TBL: 1
driver_TOFF: 3
driver_HEND: 2
driver_HSTRT: 4
driver_FD3: 0
driver_TPFD: 0
driver_CHM: 0
driver_VHIGHFS: 0
driver_VHIGHCHM: 0
driver_DISS2G: 0
driver_DISS2VS: 0
driver_PWM_AUTOSCALE: True
driver_PWM_AUTOGRAD: True
driver_PWM_FREQ: 1
driver_FREEWHEEL: 0
driver_PWM_GRAD: 14
driver_PWM_OFS: 36
driver_PWM_REG: 8
driver_PWM_LIM: 12
driver_SGT: 0
driver_SEMIN: 0
driver_SEUP: 0
driver_SEMAX: 0
driver_SEDN: 0
driver_SEIMIN: 0
driver_SFILT: 0

[tmc5160 stepper_z2]
cs_pin: PG12
sense_resistor: 0.075
interpolate: True
run_current: 1
hold_current: 0.3
spi_software_mosi_pin: PC12
spi_software_miso_pin: PC11
spi_software_sclk_pin: PC10
driver_IHOLDDELAY: 10
driver_TPOWERDOWN: 128
driver_TBL: 1
driver_TOFF: 3
driver_HEND: 2
driver_HSTRT: 4
driver_FD3: 0
driver_TPFD: 0
driver_CHM: 0
driver_VHIGHFS: 0
driver_VHIGHCHM: 0
driver_DISS2G: 0
driver_DISS2VS: 0
driver_PWM_AUTOSCALE: True
driver_PWM_AUTOGRAD: True
driver_PWM_FREQ: 1
driver_FREEWHEEL: 0
driver_PWM_GRAD: 14
driver_PWM_OFS: 36
driver_PWM_REG: 8
driver_PWM_LIM: 12
driver_SGT: 0
driver_SEMIN: 0
driver_SEUP: 0
driver_SEMAX: 0
driver_SEDN: 0
driver_SEIMIN: 0
driver_SFILT: 0

[z_tilt]
z_positions:
	0,0
	315,0
	157.5,315
points:
	50,50
	265,50
	265,265
	50,265

[bed_mesh]
speed: 120
mesh_min: 30,0
mesh_max: 310,275

[gcode_macro G29]
gcode:
	BED_MESH_CALIBRATE

[virtual_sdcard]
path: ~/gcode_files

[mcu nano]
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
pin_map: arduino

[neopixel my_neopixel]
pin: nano: PC0
chain_count: 10

🇩🇪

Post Reply