Skip to content

Instantly share code, notes, and snippets.

@danielfmo
Last active August 28, 2019 05:58
Show Gist options
  • Select an option

  • Save danielfmo/eb22af253d0c7e7a7351fd17d66f09c2 to your computer and use it in GitHub Desktop.

Select an option

Save danielfmo/eb22af253d0c7e7a7351fd17d66f09c2 to your computer and use it in GitHub Desktop.
Ender 3
# Custom Ender 3 Pro configuration
# with BIQU SKR v1.1
########################################
########## STEPPERS ##########
########################################
[stepper_x]
step_pin: P0.4
dir_pin: P0.5
enable_pin: !P4.28
step_distance: 0.003125
# steps 80 with 1/16 -> 0.0125
# steps 80 with 1/32 -> 0.00625
# steps 80 with 1/64 -> 0.003125
endstop_pin: ^P1.29
position_endstop: 0
position_max: 235
position_min: 0
homing_speed: 30
[stepper_y]
step_pin: P2.1
dir_pin: P2.2
enable_pin: !P2.0
step_distance: 0.003125
# steps 80 with 1/16 -> 0.0125
# steps 80 with 1/32 -> 0.00625
# steps 80 with 1/64 -> 0.003125
endstop_pin: ^P1.27
position_endstop: -5
position_min: -5
position_max: 230
homing_speed: 30
[stepper_z]
step_pin: P0.20
dir_pin: !P0.21
enable_pin: !P0.19
step_distance: 0.000625
# z-steps 400 with 1/4 -> 0.01
# z-steps 400 with 1/16 -> 0.0025
# z-steps 400 with 1/64 -> 0.000625
endstop_pin: probe:z_virtual_endstop
position_max: 220
position_min: -2
[extruder]
step_pin: P0.11
dir_pin: P2.13
enable_pin: !P2.12
step_distance: 0.000602
# esteps 95 with 1/16 -> 0.010526
# esteps 95 with 1/64 -> 0.0026315
# esteps 415 -> 0.0006024096
heater_pin: P2.7
sensor_pin: P0.24
sensor_type: EPCOS 100K B57560G104F
#smooth_time: 1.0
nozzle_diameter: 0.400
filament_diameter: 1.750
min_temp: 0
max_temp: 250
pressure_advance: 0.0
pressure_advance_lookahead_time: 0.010
max_extrude_only_distance: 800.0
max_extrude_cross_section: 1000
#max_extrude_only_accel: 2000
#control: pid
#pid_Kp: 21.32
#pid_Ki: 1.54
#pid_Kd: 73.82
########################################
########## TMC2208 ##########
########################################
[tmc2208 stepper_x]
uart_pin: P1.31
microsteps: 64
run_current: 0.7
hold_current: 0.5
stealthchop_threshold: 0
[tmc2208 stepper_y]
uart_pin: P3.26
microsteps: 64
run_current: 0.7
hold_current: 0.5
stealthchop_threshold: 0
[tmc2208 stepper_z]
uart_pin: P2.11
microsteps: 64
interpolate: false
run_current: 0.8
hold_current: 0.5
stealthchop_threshold: 0
[tmc2208 extruder]
uart_pin: P3.25
microsteps: 64
interpolate: false
run_current: 0.8
#hold_current: 0.5
stealthchop_threshold: 0
########################################
########## PERIPHERALS ##########
########################################
[heater_bed]
heater_pin: P2.5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.23
min_temp: 0
max_temp: 90
#control: pid
#pid_Kp: 54.027
#pid_Ki: 0.770
#pid_Kd: 948.182
[fan]
pin: P2.3
max_power: 1.0
[heater_fan nozzle_fan]
pin: P1.26
max_power: 1.0
heater: extruder
heater_temp: 50.0
fan_speed: 1.0
# "SET_PIN PIN=led VALUE=1" type extended g-code commands.
[output_pin led]
pin: P1.28
pwm: False
[mcu]
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
[printer]
kinematics: cartesian
max_velocity: 200
max_accel: 1200
max_z_velocity: 15
max_z_accel: 100
#square_corner_velocity: 4.0
[display]
lcd_type: st7920
cs_pin: P0.16
sclk_pin: P0.15
sid_pin: P1.23
encoder_pins: ^P0.18, ^P2.6
click_pin: ^!P0.17
[virtual_sdcard]
# path: ~/.octoprint/uploads/
path: /home/pi/sdcard
[web_dwc2]
printer_name: Ender3
listen_adress: 0.0.0.0
listen_port: 4750
# Its a folder relative to your virtual sdcard.
web_path: dwc2/web
# Enable the "M118" and "RESPOND" extended commands.
# Used for shutdown from LCD
[respond]
default_type: command
########################################
########## ABL ##########
########################################
[bltouch]
sensor_pin: ^P1.25
control_pin: P1.24
pin_move_time: 0.300
pin_up_reports_not_triggered: True
pin_up_touch_mode_reports_triggered: True
speed: 2.0
z_offset: 0.68
x_offset: 48.0
y_offset: -2.0
[bed_mesh]
speed: 120
horizontal_move_z: 5
min_point: 0,35
max_point: 160,210
probe_count: 7,7
fade_start: 1.0
fade_end: 10.0
mesh_pps: 2,2
algorithm: lagrange
samples: 2
sample_retract_dist: 5.0
########################################
########## MACROS ##########
########################################
[homing_override]
set_position_z: 0.0
axes: z
gcode:
G90
G1 Z5 F300
G28 X0 Y0
G1 X70 Y110 F6000
G28 Z0
G1 Z2 F300
[gcode_macro G29]
gcode:
BED_MESH_CLEAR
G28
BED_MESH_CALIBRATE
[gcode_macro M42]
default_parameter_S=1
default_parameter_P=led
gcode: SET_PIN PIN={P} VALUE={S}
[pause_resume]
recover_velocity: 50
[gcode_macro FILAMENT_UNLOAD]
gcode:
M117 UNLOADING...
G91
G1 E20 F300
G1 E-460 F3000
G90
[gcode_macro FILAMENT_LOAD]
gcode:
M117 LOADING...
G91
G1 E380 F3000
G1 E50 F300
G1 E30 F150
G90
[gcode_macro FILAMENT_PURGE]
gcode:
M117 PURGING..
G91
G1 E20 F300
G90
[gcode_macro PARK_MACRO]
default_parameter_X: 0
default_parameter_Y: 0
default_parameter_Z: 30
gcode:
M117 PARKING...
G91
G1 E-5 F1500
G1 Z{Z}
G90
G1 X{X} Y{Y} F3600
[gcode_macro M600]
gcode:
PAUSE_PRINT
UNLOAD_FILAMENT
[gcode_macro PAUSE_PRINT]
gcode:
PAUSE
PARK_MACRO
[gcode_macro RESUME_PRINT]
gcode:
M117 RESUMING...
RESUME
[gcode_macro CANCEL_PRINT]
gcode:
G91
G92 E0
G1 F300 E-3
G1 F3000 Z10
G90
G1 X0 Y210 F3000
M106 S0
M104 S0
M140 S0
M84
########################################
########## MENU ##########
########################################
### menu main ###
[menu __main]
type: list
name: Main Menu
items:
__tune
__control
__temp
__filament
__sdcard
__octoprint
### menu tune ###
[menu __tune]
type: list
name: Tune
items:
.__speed
.__flow
.__offsetz
.__fanspeed
[menu __tune __speed]
type: input
name: "Speed: {1:3d}%"
parameter: gcode.speed_factor
transform:
map(0,4,0,400)
input_min: 0
input_max: 4
input_step: 0.01
realtime: true
gcode: M220 S{1:d}
[menu __tune __flow]
type: input
name: "Flow: {1:3d}%"
parameter: gcode.extrude_factor
transform:
map(0,2,0,200)
input_min: 0
input_max: 2
input_step: 0.01
realtime: true
gcode: M221 S{1:d}
[menu __tune __offsetz]
type: input
name: "Offset Z:{0:05.3f} "
parameter: gcode.homing_zpos
input_min: -5
input_max: 5
input_step: 0.04
realtime: true
gcode: SET_GCODE_OFFSET Z={0:.3f}
[menu __tune __fanspeed]
type: input
enable: fan.is_enabled
name: Fan speed: {1:3d}%
parameter: fan.speed
transform:
map(0,1,0,100)
map(0,1,0,255)
input_min: 0
input_max: 1
input_step: 0.01
gcode: M106 S{2:d}
### menu control ###
[menu __control]
type: list
name: Control
items:
.__caselightonoff
.__nozzlefan
.__fanspeed
.__disable
.__home
.__move_10mm
.__move_1mm
.__move_01mm
[menu __control __nozzlefan]
type: item
enable: heater_fan.nozzle_fan.is_enabled
name: NozFan: {1:3s}
parameter: heater_fan.nozzle_fan..speed
transform:
choose('OFF','ON')
choose(0,1)
[menu __control __caselightonoff]
type: input
enable: output_pin.led.is_enabled
name: LEDs: {1:3s}
parameter: output_pin.led.value
transform:
choose('OFF','ON')
choose(0,1)
input_min: 0
input_max: 1
input_step: 1
gcode: SET_PIN PIN=led VALUE={2}
[menu __control __bedcalibrate]
type: command
enable: !toolhead.is_printing
name: Bed Calibrate
gcode: G29
### menu octoprint ###
[menu __octoprint]
type: list
name: OctoPrint
items:
.__pause
.__resume
.__abort
.__shutdown
[menu __octoprint __shutdown]
type: command
enable: !toolhead.is_printing
name: Power OFF
action: respond action:poweroff
gcode:
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 69.259
#*# pid_ki = 0.795
#*# pid_kd = 1508.987
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 24.229
#*# pid_ki = 1.272
#*# pid_kd = 115.391
#*#
#*# [bed_mesh default]
#*# points =
#*# 0.126250, 0.047812, 0.035312, 0.028437, 0.019375, -0.002500, -0.019063
#*# 0.228125, 0.154688, 0.134063, 0.082187, 0.054687, 0.052187, 0.017500
#*# 0.218750, 0.135313, 0.085313, 0.070937, 0.083750, 0.074062, 0.045000
#*# 0.206875, 0.154688, 0.136250, 0.121875, 0.118437, 0.091250, 0.051562
#*# 0.175937, 0.133437, 0.090625, 0.065000, 0.065313, 0.068437, 0.008125
#*# 0.190625, 0.125312, 0.092500, 0.079688, 0.107500, 0.088125, 0.020000
#*# 0.191250, 0.131250, 0.118750, 0.120312, 0.106250, 0.117500, 0.074062
#*# x_count = 7
#*# y_count = 7
#*# min_x = 0.0
#*# max_x = 159.96
#*# min_y = 35.0
#*# max_y = 209.96
#*# x_offset = 48.0
#*# y_offset = -2.0
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment