Skip to end of metadata
Go to start of metadata

Configuration for Klipper firmware (10-11-2018)

This is example configuration which is working on Geeetech GT2560 motherboard (it was used in my old Prusa Printer - now moved to Hypercube Evo type printer - 3D-eVo - which is Core XY type.

It is using BL Touch or 3D Touch sensor for bed levelling. Including as well scripts for Tool change.

Code (printer.cfg)

printer.cfg
# This file contains common pin mappings for Geeetech GT2560 boards.

# See the example.cfg file for a description of available parameters.


[servo bltouch]
pin: ar32
maximum_servo_angle: 180
minimum_pulse_width: 0.0006
maximum_pulse_width: 0.0024

[probe]
pin: ar30
z_offset: 2.6
x_offset: 23
y_offset: 10

activate_gcode:
    SET_SERVO SERVO=bltouch ANGLE=10
    SET_SERVO SERVO=bltouch ANGLE=60
    G4 P200
deactivate_gcode:
    SET_SERVO SERVO=bltouch ANGLE=90
    G4 P100

#[bed_tilt]
#samples: 2
#sample_retract_dist: 5
#points:
#    150,150
#    20,20
#    20,150
#    20,280
#    150,10
#    150,280
#    280,20
#    280,150
#   280,280

[bed_mesh]
speed: 50
horizontal_move_z: 7
samples: 2
sample_retract_dist: 5.0
min_point: 25,25
max_point: 275,275
probe_count: 5,5
fade_start: 1.0
fade_end: 10.0
split_delta_z: .025
move_check_distance: 5.0
mesh_pps: 2,2
algorithm: bicubic
bicubic_tension: .2

[homing_override]
set_position_z: 0
axes: z
gcode:
    G90  
    G1 Z7 F600
    G28 X0 Y0
    G1 X160 Y160 F3600
    G28 Z0

[stepper_x]
step_pin: ar25
dir_pin: !ar23
enable_pin: !ar27
step_distance: .0125
endstop_pin: ar22
#endstop_pin: ar24
position_endstop: 0
position_max: 300
homing_speed: 50

[stepper_y]
step_pin: ar31
dir_pin: ar33
enable_pin: !ar29
step_distance: .0125
endstop_pin: ar26
#endstop_pin: ar28
position_endstop: 0
position_max: 330
homing_speed: 50

[stepper_z]
step_pin: ar37
dir_pin: !ar39
enable_pin: !ar35
step_distance: .00124
endstop_pin: probe:z_virtual_endstop
#endstop_pin: ar30
#endstop_pin: ar32
#position_endstop: 2.6
position_max: 350
position_min: -8

[extruder]
step_pin: ar43
dir_pin: !ar45
enable_pin: !ar41
step_distance: .00982
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: ar2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog8
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
max_extrude_only_distance: 1250  #increased to allow tool change
min_temp: 0
max_temp: 275
min_extrude_temp: 10

#[extruder1]
#step_pin:           analog10
#dir_pin:            analog9
#enable_pin:         analog11

#[extruder2]
#step_pin:           ar51
#dir_pin:            ar53
#enable_pin:         ar49

[heater_bed]
heater_pin: ar4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog10
#control: watermark
min_temp: 0
max_temp: 130

[fan]
pin: ar7

#[heater_fan nozzle_cooling_fan]
#pin: ar7

[mcu]
serial: /dev/ttyUSB0
pin_map: arduino

[printer]
kinematics: corexy
max_velocity: 300
max_accel: 3000
max_z_velocity: 25
max_z_accel: 30
#motor_off_time: 600
#junction_deviation: 0.3

#Gcode to unload the tool
[gcode_macro UNLOADTOOL]
gcode:
 M109 S215 T0
 G0 E-1100 F4500
 M104 S0
 G1

#Gcode to load the tool. 
[gcode_macro LOADTOOL]
gcode:
 M109 S225 T0
 G0 E0 F4500
 M109 S225 T0
 G0 E+100
 M109 S225 T0
 M104 S0
 G1

# "RepRapDiscount 2004 Smart Controller" type displays
[display]
lcd_type: hd44780
rs_pin: ar20
e_pin: ar17
d4_pin: ar16
d5_pin: ar21
d6_pin: ar5
d7_pin: ar6


#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 27.454
#*# pid_ki = 1.397
#*# pid_kd = 134.870
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 66.151
#*# pid_ki = 1.218
#*# pid_kd = 898.005