Skip to content

Instantly share code, notes, and snippets.

@nickknissen
Created January 7, 2020 14:01
Show Gist options
  • Save nickknissen/86f4aef51d2d8c15b8499320de1e63d3 to your computer and use it in GitHub Desktop.
Save nickknissen/86f4aef51d2d8c15b8499320de1e63d3 to your computer and use it in GitHub Desktop.
Klipper ender 5
# This file serves as default menu structure.
# See the "example-menu.cfg" file for description of common config parameters.
### DEFAULT MENU ###
### menu main ###
[menu __main]
type: list
name: Main Menu
items:
__tune
__octoprint
__sdcard
__control
__temp
__filament
__prepare
__test
### menu tune ###
[menu __tune]
type: list
enable: toolhead.is_printing
name: Tune
items:
.__speed
.__flow
.__offsetz
[menu __tune __speed]
type: input
name: "Speed: {1:3d}%"
parameter: gcode.speed_factor
transform:
map(0,2,0,200)
input_min: 0
input_max: 2
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.005
realtime: true
gcode: SET_GCODE_OFFSET Z={0:.3f} MOVE=1
### menu octoprint ###
[menu __octoprint]
type: list
name: OctoPrint
items:
.__pause
.__resume
.__abort
[menu __octoprint __pause]
type: command
enable: toolhead.is_printing
name: Pause printing
action: respond action:pause
gcode:
[menu __octoprint __resume]
type: command
enable: !toolhead.is_printing
name: Resume printing
action: respond action:resume
gcode:
[menu __octoprint __abort]
type: command
enable: toolhead.is_printing
name: Abort printing
action: respond action:cancel
gcode:
### menu virtual sdcard ###
[menu __sdcard]
type: vsdcard
name: SD Card
items:
.__start
.__resume
.__pause
[menu __sdcard __start]
type: command
enable: !toolhead.is_printing
name: Start printing
gcode: M24
[menu __sdcard __resume]
type: command
enable: toolhead.is_printing
name: Resume printing
gcode: M24
[menu __sdcard __pause]
type: command
enable: toolhead.is_printing
name: Pause printing
gcode: M25
### menu control ###
[menu __control]
type: list
name: Control
items:
.__home
.__homez
.__homexy
.__move_10mm
.__move_1mm
.__move_01mm
.__disable
.__fanonoff
.__fanspeed
.__caselightonoff
.__caselightpwm
[menu __control __home]
type: command
name: Home All
gcode: G28
enable: !toolhead.is_printing
[menu __control __homez]
type: command
enable: !toolhead.is_printing
name: Home Z
gcode: G28 Z
[menu __control __homexy]
type: command
enable: !toolhead.is_printing
name: Home X/Y
gcode: G28 X Y
[menu __control __disable]
type: command
name: Disable steppers
gcode:
M84
M18
[menu __control __fanonoff]
type: input
enable: fan.is_enabled
name: Fan {1:3s}
parameter: fan.speed
transform:
choose('OFF','ON')
choose(0,255)
input_min: 0
input_max: 1
input_step: 1
gcode: M106 S{2:d}
[menu __control __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 __caselightonoff]
type: input
enable: output_pin.caselight.is_enabled
name: Case light: {1:3s}
parameter: output_pin.caselight.value
transform:
choose('OFF','ON')
choose(0,1)
input_min: 0
input_max: 1
input_step: 1
gcode: SET_PIN PIN=caselight VALUE={2}
[menu __control __caselightpwm]
type: input
enable: output_pin.caselight.is_enabled
name: Case light: {0:4.0%}
parameter: output_pin.caselight.value
input_min: 0.0
input_max: 1.0
input_step: 0.01
gcode: SET_PIN PIN=caselight VALUE={0:.2f}
### menu move 10mm ###
[menu __control __move_10mm]
type: list
enable: !toolhead.is_printing
name: Move 10mm
items:
.__axis_z
.__axis_x, .__axis_y
.__axis_e
[menu __control __move_10mm __axis_x]
type: input
name: "X:{0:05.1f} "
parameter: gcode.move_xpos
input_min: 0
input_max: 200.0
input_step: 10.0
gcode:
G90
G1 X{0:.1f}
[menu __control __move_10mm __axis_y]
type: input
name: "Y:{0:05.1f} "
parameter: gcode.move_ypos
input_min: 0
input_max: 200.0
input_step: 10.0
gcode:
G90
G1 Y{0:.1f}
[menu __control __move_10mm __axis_z]
type: input
enable: !toolhead.is_printing
name: "Move Z:{0:05.1f}"
parameter: gcode.move_zpos
input_min: 0
input_max: 200.0
input_step: 10.0
gcode:
G90
G1 Z{0:.1f}
[menu __control __move_10mm __axis_e]
type: input
enable: !toolhead.is_printing
name: "Move E:{0:+06.1f}"
parameter: 0
input_min: -50.0
input_max: 50.0
input_step: 10.0
gcode:
M83
G1 E{0:.1f} F240
### menu move 1mm ###
[menu __control __move_1mm]
type: list
enable: !toolhead.is_printing
name: Move 1mm
items:
.__axis_z
.__axis_x, .__axis_y
.__axis_e
[menu __control __move_1mm __axis_x]
type: input
name: "X:{0:05.1f} "
parameter: gcode.move_xpos
input_min: 0
input_max: 200.0
input_step: 1.0
gcode:
G90
G1 X{0:.1f}
[menu __control __move_1mm __axis_y]
type: input
name: "Y:{0:05.1f} "
parameter: gcode.move_ypos
input_min: 0
input_max: 200.0
input_step: 1.0
gcode:
G90
G1 Y{0:.1f}
[menu __control __move_1mm __axis_z]
type: input
enable: !toolhead.is_printing
name: "Move Z:{0:05.1f}"
parameter: gcode.move_zpos
input_min: 0
input_max: 200.0
input_step: 1.0
gcode:
G90
G1 Z{0:.1f}
[menu __control __move_1mm __axis_e]
type: input
enable: !toolhead.is_printing
name: "Move E:{0:+06.1f}"
parameter: 0
input_min: -50.0
input_max: 50.0
input_step: 1.0
gcode:
M83
G1 E{0:.1f} F240
### menu move 0.1mm ###
[menu __control __move_01mm]
type: list
enable: !toolhead.is_printing
name: Move 0.1mm
items:
.__axis_z
.__axis_x, .__axis_y
.__axis_e
[menu __control __move_01mm __axis_x]
type: input
name: "X:{0:05.1f} "
parameter: gcode.move_xpos
input_min: 0
input_max: 200.0
input_step: 0.1
gcode:
G90
G1 X{0:.1f}
[menu __control __move_01mm __axis_y]
type: input
name: "Y:{0:05.1f} "
parameter: gcode.move_ypos
input_min: 0
input_max: 200.0
input_step: 0.1
gcode:
G90
G1 Y{0:.1f}
[menu __control __move_01mm __axis_z]
type: input
enable: !toolhead.is_printing
name: "Move Z:{0:05.1f}"
parameter: gcode.move_zpos
input_min: 0
input_max: 200.0
input_step: 0.1
gcode:
G90
G1 Z{0:.1f}
[menu __control __move_01mm __axis_e]
type: input
enable: !toolhead.is_printing
name: "Move E:{0:+06.1f}"
parameter: 0
input_min: -50.0
input_max: 50.0
input_step: 0.1
gcode:
M83
G1 E{0:.1f} F240
### menu temperature ###
[menu __temp]
type: list
name: Temperature
items:
.__hotend0_current, .__hotend0_target
.__hotend1_current, .__hotend1_target
.__hotbed_current, .__hotbed_target
.__preheat_pla
.__preheat_petg
.__cooldown
[menu __temp __hotend0_current]
type: item
enable: extruder.is_enabled
name: "Ex0:{0:4.0f} T"
parameter: extruder.temperature
[menu __temp __hotend0_target]
type: input
enable: extruder.is_enabled
name: "{0:4.0f}"
parameter: extruder.target
input_min: 0
input_max: 250
input_step: 1
input_step2: 10
gcode: M104 T0 S{0:.0f}
[menu __temp __hotend1_current]
type: item
enable: extruder1.is_enabled
name: "Ex1:{0:4.0f} T"
parameter: extruder1.temperature
[menu __temp __hotend1_target]
type: input
enable: extruder1.is_enabled
name: "{0:4.0f}"
parameter: extruder1.target
input_min: 0
input_max: 250
input_step: 1
input_step2: 10
gcode: M104 T1 S{0:.0f}
[menu __temp __hotbed_current]
type: item
enable: heater_bed.is_enabled
name: "Bed:{0:4.0f} T"
parameter: heater_bed.temperature
[menu __temp __hotbed_target]
type: input
enable: heater_bed.is_enabled
name: "{0:4.0f}"
parameter: heater_bed.target
input_min: 0
input_max: 130
input_step: 1
input_step2: 10
gcode: M140 S{0:.0f}
[menu __temp __preheat_pla]
type: list
name: Preheat PLA
items:
.__all
.__hotend
.__hotbed
[menu __temp __preheat_pla __all]
type: command
enable: extruder.is_enabled,heater_bed.is_enabled
name: Preheat all
gcode:
M140 S60
M104 S210
[menu __temp __preheat_pla __hotend]
type: command
enable: extruder.is_enabled
name: Preheat hotend
gcode: M104 S210
[menu __temp __preheat_pla __hotbed]
type: command
enable: heater_bed.is_enabled
name: Preheat hotbed
gcode: M140 S60
[menu __temp __preheat_petg]
type: list
name: Preheat PETG
items:
.__all
.__hotend
.__hotbed
[menu __temp __preheat_petg __all]
type: command
enable: extruder.is_enabled,heater_bed.is_enabled
name: Preheat all
gcode:
M140 S70
M104 S240
[menu __temp __preheat_petg __hotend]
type: command
enable: extruder.is_enabled
name: Preheat hotend
gcode: M104 S240
[menu __temp __preheat_petg __hotbed]
type: command
enable: heater_bed.is_enabled
name: Preheat hotbed
gcode: M140 S70
[menu __temp __cooldown]
type: list
name: Cooldown
items:
.__all
.__hotend
.__hotbed
[menu __temp __cooldown __all]
type: command
enable: extruder.is_enabled,heater_bed.is_enabled
name: Cooldown all
gcode:
M104 S0
M140 S0
[menu __temp __cooldown __hotend]
type: command
enable: extruder.is_enabled
name: Cooldown hotend
gcode: M104 S0
[menu __temp __cooldown __hotbed]
type: command
enable: heater_bed.is_enabled
name: Cooldown hotbed
gcode: M140 S0
### menu filament ###
[menu __filament]
type: list
name: Filament
items:
__temp __hotend0_current, __temp __hotend0_target
.__unload
.__load
.__feed
[menu __filament __load]
type: command
name: Load Filament
gcode:
G90
G92 E0
G1 E100 F1000
G92 E0
G1 E25 F300
G92 E0
G1 E25 F100
G92 E0
[menu __filament __unload]
type: command
name: Unload Filament
gcode:
G90
G92 E0
G1 E10 F100
G92 E0
G1 E-150 F2000
G92 E0
[menu __filament __feed]
type: input
name: Feed: {0:.1f}
parameter: 0
input_step: 0.5
gcode:
M83
G1 E{0:.1f} F100
### menu prepare ###
[menu __prepare]
type: list
enable: !toolhead.is_printing
name: Prepare
items:
.__delta_calib
.__bedprobe
.__hotend_pid_tuning
.__hotbed_pid_tuning
.__host_restart
.__firmware_restart
[menu __prepare __host_restart]
type: command
enable: !toolhead.is_printing
name: Restart host
gcode: RESTART
[menu __prepare __firmware_restart]
type: command
enable: !toolhead.is_printing
name: Restart FW
gcode: FIRMWARE_RESTART
[menu __prepare __bedprobe]
type: command
enable: !toolhead.is_printing
name: Bed probe
gcode: PROBE
[menu __prepare __hotend_pid_tuning]
type: command
enable: !toolhead.is_printing, extruder.is_enabled
name: Tune Hotend PID
gcode: PID_CALIBRATE HEATER=extruder TARGET=240 WRITE_FILE=1
[menu __prepare __hotbed_pid_tuning]
type: command
enable: !toolhead.is_printing, heater_bed.is_enabled
name: Tune Hotbed PID
gcode: PID_CALIBRATE HEATER=heater_bed TARGET=70 WRITE_FILE=1
### test menu ###
[menu __test]
type: list
name: Test menu
items:
.__scroll
.__dump
[menu __test __scroll]
type: item
name: This is very long item name
width: 18
scroll: true
[menu __test __dump]
type: command
name: Dump parameters
gcode: MENU DO=dump
### info screens ###
[menu __screen1604_static]
type: deck
name: Deck (static)
longpress_menu: __main
items: __card1604_static
[menu __screen1604_input]
type: deck
name: Deck (input)
longpress_menu: __main
items: __card1604_input
[menu __screen_test]
type: deck
name: Deck (test)
longpress_menu: __main
items: __card1, __card2, __card3
### deck cards ###
### special characters for hd44780
# \x00 - thermometer
# \x01 - heater_bed
# \x02 - speed_factor
# \x03 - clock
# \x04 - degrees
# \x05 - usb
# \x06 - sdcard
# \x07 - fan
# \x7e - right arrow
[menu __card1604_static]
type: card
name: Card 16x04
content:
"E{0:3s}/{1:3s} {2}"
"B{3:3s}/{4:3s} fr{5}"
"fn{6} {7}"
"[{8}] {9}"
items:
__card_hotend0_current
__card_hotend0_target
__card_zpos
__card_hotbed_current
__card_hotbed_target
__card_frpeed
__card_fnspeed
5,__card_prt_time_2, __card_usb_progress_2, __card_sdcard_progress_2
__card_msg_slim, __card_xpos|__card_ypos
__card_status_slim
[menu __card1604_input]
type: card
name: Card 16x04
content:
"E{0:3s}/{1:3s} {2}"
"B{3:3s}/{4:3s} fr{5}"
"fn{6} {7}"
"[{8}] {9}"
items:
__card_hotend0_current
__card_hotend0_target_in
__card_zpos
__card_hotbed_current
__card_hotbed_target_in
__card_frpeed_in
__card_fnspeed
5,__card_prt_time_2, __card_usb_progress_2, __card_sdcard_progress_2
__card_msg, __card_xpos|__card_ypos
__card_status_slim
[menu __card1]
type: card
name: Card 1
content:
"E0:{0:3s}/{1:3s} B:{4:3s}/{5:3s}"
"E1:{2:3s}/{3:3s} {6}"
"Fr{7}Fn{8} {9}"
"{10}"
items:
__card_hotend0_current
__card_hotend0_target
__card_hotend1_current
__card_hotend1_target
__card_hotbed_current
__card_hotbed_target
__card_zpos
__card_frpeed_in
__card_fnspeed_in
5,__card_prt_time, __card_usb_progress, __card_sdcard_progress
__card_msg
[menu __card2]
type: card
name: Card 2
content:
"E:{0:3s}/{1:3s} B:{2:3s}/{3:3s}"
"{4}{5}{6}"
"Fr{7} {8} T{9}"
"{10}"
items:
__card_hotend0_current
__card_hotend0_target
__card_hotbed_current
__card_hotbed_target
__card_xpos
__card_ypos
__card_zpos
__card_frpeed_in
__card_usb_progress_2, __card_sdcard_progress_2
__card_prt_time_2
__card_msg
[menu __card3]
type: card
name: Card 3
content:
"Example card :)"
"Try this menu."
"({0})"
items:
__test
### card items ###
[menu __card_hotend0_current]
type: item
enable: extruder.is_enabled
name: "{1:3.0f}"
parameter: extruder.temperature
transform: abs()
[menu __card_hotend0_target]
type: item
enable: extruder.is_enabled
name: "{1:3.0f}"
parameter: extruder.target
transform: abs()
[menu __card_hotend0_target_in]
type: input
enable: extruder.is_enabled
name: "{1:3.0f}"
parameter: extruder.target
transform: abs()
input_min: 0
input_max: 250
input_step: 1
gcode: M104 T0 S{0:.0f}
[menu __card_hotend1_current]
type: item
enable: extruder1.is_enabled
name: "{1:3.0f}"
parameter: extruder1.temperature
transform: abs()
[menu __card_hotend1_target]
type: item
enable: extruder1.is_enabled
name: "{1:3.0f}"
parameter: extruder1.target
transform: abs()
[menu __card_hotend1_target_in]
type: input
enable: extruder1.is_enabled
name: "{1:3.0f}"
parameter: extruder1.target
transform: abs()
input_min: 0
input_max: 250
input_step: 1
gcode: M104 T1 S{0:.0f}
[menu __card_hotbed_current]
type: item
enable: heater_bed.is_enabled
name: "{1:3.0f}"
parameter: heater_bed.temperature
transform: abs()
[menu __card_hotbed_target]
type: item
enable: heater_bed.is_enabled
name: "{1:3.0f}"
parameter: heater_bed.target
transform: abs()
[menu __card_hotbed_target_in]
type: input
enable: heater_bed.is_enabled
name: "{1:3.0f}"
parameter: heater_bed.target
transform: abs()
input_min: 0
input_max: 250
input_step: 1
gcode: M140 S{0:.0f}
[menu __card_zpos]
type: item
name: "Z{0:06.2f}"
parameter: toolhead.zpos
[menu __card_xpos]
type: item
name: "X{0:05.1f}{2}"
parameter: toolhead.xpos
[menu __card_ypos]
type: item
name: "Y{0:05.1f}{2}"
parameter: toolhead.ypos
[menu __card_epos]
type: item
name: "E{0:05.1f}{2}"
parameter: toolhead.epos, menu.is20xx
transform:
1.choose('',' ')
[menu __card_frpeed]
type: item
name: "{0:4.0%}"
parameter: gcode.speed_factor
[menu __card_fnspeed]
type: item
name: "{0:4.0%}"
parameter: fan.speed
[menu __card_frpeed_in]
type: input
name: "{0:4.0%}"
parameter: gcode.speed_factor
transform:
map(0,1,0,255)
input_min: 0
input_max: 1
input_step: 0.01
gcode: M220 S{1:d}
[menu __card_fnspeed_in]
type: input
enable: fan.is_enabled
name: "{0:4.0%}"
parameter: fan.speed
transform:
map(0,1,0,255)
input_min: 0
input_max: 1
input_step: 0.01
gcode: M106 S{1:d}
[menu __card_prt_time]
type: item
name: "\x03{1:02d}:{2:02d}"
transform:
minutes()
seconds()
parameter: toolhead.printing_time
[menu __card_prt_time_2]
type: item
name: "T{1:02d}:{2:02d}"
transform:
minutes()
seconds()
parameter: toolhead.printing_time
[menu __card_usb_progress]
type: item
enable: !virtual_sdcard.progress, display.progress
name: "\x05{0:3.0f}%"
parameter: display.progress
[menu __card_sdcard_progress]
type: item
enable: virtual_sdcard.is_enabled, virtual_sdcard.progress
name: "\x06{0:3.0f}%"
parameter: virtual_sdcard.progress
[menu __card_usb_progress_2]
type: item
#enable: !virtual_sdcard.progress,display.progress
name: "pr{0:3.0f}%"
parameter: display.progress
[menu __card_sdcard_progress_2]
type: item
enable: virtual_sdcard.is_enabled, virtual_sdcard.progress
name: "pr{0:3.0f}%"
parameter: virtual_sdcard.progress
[menu __card_msg]
enable: display.message
type: item
scroll: true
width: 20
name: "{0}"
parameter: display.message
[menu __card_msg_slim]
enable: display.message
type: item
scroll: true
width: 12
name: "{0}"
parameter: display.message
[menu __card_status]
type: item
name: "{0}"
width: 5
parameter: toolhead.status
[menu __card_status_slim]
type: item
name: "{0}"
width: 1
parameter: toolhead.status
#### custom Ender 5 build
##
## - SKR V1.3 board
## - stock steppers on XY
## - 0.9 steppers on Z
## - TMC2208 drivers in UART mode
## - WhamBam Bed
## - BLTouch V3
## - Ender5 stock display
## - E3D V6 Clone
## - BMG Clone w/pancake stepper
##
## To convert Marlin eSteps just divide by 1.
## example: extruder 415 steps/mm. 1/415 = 0.0024096386 mm's/step
##
########################################
########################################
# TMC2208 configuration
########################################
[tmc2208 stepper_x]
uart_pin: P1.17
microsteps: 16
run_current: 0.720
hold_current: 0.520
stealthchop_threshold: 250
[tmc2208 stepper_y]
uart_pin: P1.15
microsteps: 16
run_current: 0.720
hold_current: 0.520
stealthchop_threshold: 250
[tmc2208 stepper_z]
uart_pin: P1.10
microsteps: 16
run_current: 0.800
hold_current: 0.520
stealthchop_threshold: 3
[tmc2208 stepper_z1]
uart_pin: P1.1
microsteps: 16
run_current: 0.800
hold_current: 0.520
stealthchop_threshold: 3
[tmc2208 extruder]
uart_pin: P1.8
microsteps: 16
run_current: 0.721
hold_current: 0.520
stealthchop_threshold: 0
########################################
# Stepper configuration
########################################
[stepper_x]
step_pin: P2.2
dir_pin: !P2.6
enable_pin: !P2.1
step_distance: .0125
endstop_pin: P1.28 # P1.28 for X-max
position_endstop: 220
position_max: 220
homing_speed: 100
homing_positive_dir: True
[stepper_y]
step_pin: P0.19
dir_pin: !P0.20
enable_pin: !P2.8
step_distance: .0125
endstop_pin: P1.26 # P1.26 for Y-max
position_endstop: 220
position_max: 220
homing_speed: 100
homing_positive_dir: True
[stepper_z]
step_pin: P0.22
dir_pin: P2.11
enable_pin: !P0.21
step_distance: 0.0003125
endstop_pin: probe:z_virtual_endstop
position_max: 300
position_min: -10
homing_speed: 75
[stepper_z1]
step_pin: P0.1
dir_pin: P0.0
enable_pin: !P0.10
step_distance: 0.0003125
[extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
step_distance: 0.0024096386
nozzle_diameter: 0.400
filament_diameter: 1.750
pressure_advance: 0.145
heater_pin: P2.7
sensor_type: ATC Semitec 104GT-2
sensor_pin: P0.24
#control: pid
#pid_Kp: 23.65
#pid_Ki: 2.13
#pid_Kd: 65.51
min_temp: 0
max_temp: 300
max_extrude_only_distance: 150
max_extrude_cross_section: 8.0
min_extrude_temp: 180
########################################
# Hot End/Bed
########################################
[heater_bed]
heater_pin: P2.5
sensor_type: NTC 100K beta 3950
sensor_pin: P0.23
#control: pid
#pid_Kp: 34.84
#pid_Ki: 6.32
#pid_Kd: 128.10
min_temp: 0
max_temp: 130
# Hot end fan and control box fan off of buck converter. Turn on when temp hits 50c
[heater_fan hotend_fan]
pin: P2.4
heater: extruder
heater_temp: 50.0
fan_speed: 1.0
# This is the part cooling fan that plugs right in to the fan output marked 'FAN'
[fan]
pin: P2.3
########################################
# MCU configuration
########################################
[mcu]
serial: /dev/serial/by-id/usb-Klipper_lpc1768_17100107C5901EAF95A9AB5AC62000F5-if00
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 10
max_z_accel: 100
[virtual_sdcard]
path: /home/pi/sdcard
[web_dwc2]
## optional - defaulting to Klipper
printer_name: Ender5
# optional - defaulting to 0.0.0.0
listen_adress: 0.0.0.0
# needed - use above 1024 as nonroot
listen_port: 4750
# optional defaulting to dwc2/web. Its a folder relative to your virtual sdcard.
web_path: dwc2/web
###############################################
## Probing/Mesh
###############################################
[bltouch]
sensor_pin: P1.25 # Pull-up (^ symbol) needed in open drain mode
control_pin: P2.0
pin_move_time: 0.7 # set high to reduce pin up bug
pin_up_reports_not_triggered: True
pin_up_touch_mode_reports_triggered: True
x_offset: -40
y_offset: -2
#z_offset: 0
speed: 20
samples: 1
sample_retract_dist: 5
[safe_z_home]
home_xy_position: 150,122
# A X,Y coordinate (e.g. 100,100) where the Z homing should be
# performed. This parameter must be provided.
speed: 200
z_hop: 10.0
z_hop_speed: 20
move_to_previous: False
# This adds a bed mesh calibrate GCode
[bed_mesh]
speed: 200
horizontal_move_z: 5
min_point: 45,40
max_point: 220,205
probe_count: 3,3
algorithm: lagrange
[filament_switch_sensor filament_runout]
pause_on_runout: True
switch_pin: P1.29
[pause_resume]
recover_velocity: 50
# This adds the 'respond' G-Code that you can use to send commands back to OctoPrint
[respond]
default_type: echo
[force_move]
enable_force_move: True
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
# EXP2 header
EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
[display]
lcd_type: st7920
cs_pin: EXP1_7
sclk_pin: EXP1_6
sid_pin: EXP1_8
encoder_pins: ^EXP1_5, ^EXP1_3
click_pin: ^!EXP1_2
menu_timeout: 90
########################################
# MENU Modifications
########################################
[include ./my_menu.cfg]
######################################################################
# Beeper
######################################################################
# M300 : Play tone. Beeper support, as commonly found on usual LCD
# displays (i.e. RepRapDiscount 2004 Smart Controller, RepRapDiscount
# 12864 Full Graphic). This defines a custom I/O pin and a custom
# GCODE macro. Usage:
# M300 [P<ms>] [S<Hz>]
# P is the tone duration, S the tone frequency.
# The frequency won't be pitch perfect.
[output_pin BEEPER_pin]
pin: EXP1_1
# Beeper pin. This parameter must be provided.
# ar37 is the default RAMPS/MKS pin.
pwm: True
# A piezo beeper needs a PWM signal, a DC buzzer doesn't.
value: 0
# Silent at power on, set to 1 if active low.
shutdown_value: 0
# Disable at emergency shutdown (no PWM would be available anyway).
cycle_time: 0.001
# PWM frequency : 0.001 = 1ms will give a base tone of 1kHz
scale: 1000
# PWM parameter will be in the range of (0-1000 Hz).
# Although not pitch perfect.
######################################################################
# G-Code macros and events
######################################################################
[gcode_macro G29]
gcode:
G28
BED_MESH_CALIBRATE
[gcode_macro M300]
default_parameter_S: 1000
# Use a default 1kHz tone if S is omitted.
default_parameter_P: 100
# Use a 10ms duration is P is omitted.
gcode:
SET_PIN PIN=BEEPER_pin VALUE={S}
G4 P{P}
SET_PIN PIN=BEEPER_pin VALUE=0
# M600: Filament Change. This macro will pause the printer, move the
# tool to the change position, and retract the filament 50mm. Adjust
# the retraction settings for your own extruder. After filament has
# been changed, the print can be resumed from its previous position
# with the "RESUME" gcode.
[pause_resume]
[gcode_macro M600]
default_parameter_X: 50
default_parameter_Y: 210
default_parameter_Z: 10
gcode:
SAVE_GCODE_STATE NAME=M600_state
PAUSE
G91
G1 E-.8 F2700
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000
G91
G1 E-50 F1000
RESTORE_GCODE_STATE NAME=M600_state
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 1.825
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 30.929
#*# pid_ki = 1.778
#*# pid_kd = 134.541
#*#
#*# [bed_mesh default]
#*# points =
#*# 0.021250, 0.065625, 0.033125
#*# -0.076875, 0.003750, -0.011250
#*# -0.041875, 0.016250, -0.039063
#*# x_count = 3
#*# y_count = 3
#*# min_x = 45.0
#*# max_x = 220.0
#*# min_y = 40.0
#*# max_y = 205.0
#*# x_offset = -40.0
#*# y_offset = -2.0
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 49.124
#*# pid_ki = 2.426
#*# pid_kd = 248.691
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment