Last active
April 10, 2024 12:59
-
-
Save cpjolicoeur/39d23450deff7b5fb0e1253fd3b62c0e to your computer and use it in GitHub Desktop.
Klipper printer.cfg for my Anycubic i3 Mega S printer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains pin mappings for the Anycubic i3 Mega with | |
# Ultrabase from 2017. (This config may work on an Anycubic i3 Mega v1 | |
# prior to the Ultrabase if you comment out the definition of the | |
# endstop_pin in the stepper_z1 section.) To use this config, the | |
# firmware should be compiled for the AVR atmega2560. | |
# See docs/Config_Reference.md for a description of parameters. | |
[stepper_x] | |
step_pin: PF0 | |
dir_pin: !PF1 | |
enable_pin: !PD7 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: ^!PE5 | |
position_min: -5 | |
position_endstop: -5 | |
position_max: 210 | |
homing_speed: 30.0 | |
[stepper_y] | |
step_pin: PF6 | |
dir_pin: PF7 | |
enable_pin: !PF2 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: ^!PL7 | |
position_endstop: 0 | |
position_max: 210 | |
homing_speed: 30.0 | |
[stepper_z] | |
step_pin: PL3 | |
dir_pin: PL1 | |
enable_pin: !PK0 | |
microsteps: 16 | |
rotation_distance: 8 | |
endstop_pin: ^!PD3 | |
position_endstop: 0.0 | |
position_max: 205 | |
homing_speed: 5.0 | |
[stepper_z1] | |
step_pin: PC1 | |
dir_pin: PC3 | |
enable_pin: !PC7 | |
microsteps: 16 | |
rotation_distance: 8 | |
endstop_pin: ^!PL6 | |
[extruder] | |
step_pin: PA4 | |
dir_pin: PA6 | |
enable_pin: !PA2 | |
microsteps: 16 | |
#rotation_distance: 34.557 | |
rotation_distance: 22.954 | |
gear_ratio: 3:1 | |
min_extrude_temp: 180 | |
nozzle_diameter: 0.400 | |
filament_diameter: 1.750 | |
heater_pin: PB4 | |
sensor_type: ATC Semitec 104GT-2 | |
sensor_pin: PK5 | |
#control: pid | |
#pid_Kp: 17.359 | |
#pid_Ki: 0.531 | |
#pid_Kd: 141.909 | |
min_temp: 0 | |
max_temp: 245 | |
[heater_fan extruder_fan] | |
pin: PL5 | |
[heater_bed] | |
heater_pin: PH5 | |
sensor_type: EPCOS 100K B57560G104F | |
sensor_pin: PK6 | |
control: pid | |
pid_Kp: 73.517 | |
pid_Ki: 2.356 | |
pid_Kd: 573.431 | |
min_temp: 0 | |
max_temp: 110 | |
[fan] | |
pin: PH6 | |
[mcu] | |
serial: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 | |
[printer] | |
kinematics: cartesian | |
max_velocity: 300 | |
max_accel: 3000 | |
max_z_velocity: 10 | |
max_z_accel: 60 | |
[heater_fan stepstick_fan] | |
pin: PH4 | |
[filament_switch_sensor my_sensor] | |
pause_on_runout: True | |
# When set to True, a PAUSE will execute immediately after a runout | |
# is detected. Note that if pause_on_runout is False and the | |
# runout_gcode is omitted then runout detection is disabled. Default | |
# is True. | |
runout_gcode: | |
M117 Unloading Filament... | |
G91 | |
G1 Z20 F2000 | |
G90 | |
G1 | |
M83 | |
G1 E10 F200 | |
G1 E-1.0 F1000 | |
G1 E1.5 F1000 | |
G1 E-1.5 F1000 | |
G1 E2.0 F1000 | |
G1 E-100 F3000 | |
G1 E-100 F3000 | |
G1 E-100 F3000 | |
G1 E-100 F3000 | |
G1 E-100 F3000 | |
G1 E-80 F3000 | |
M82 | |
M400 | |
M117 Remove Filament Now! | |
#insert_gcode: | |
# A list of G-Code commands to execute after a filament insert is | |
# detected. See docs/Command_Templates.md for G-Code format. The | |
# default is not to run any G-Code commands, which disables insert | |
# detection. | |
#event_delay: 3.0 | |
# The minimum amount of time in seconds to delay between events. | |
# Events triggered during this time period will be silently | |
# ignored. The default is 3 seconds. | |
#pause_delay: 0.5 | |
# The amount of time to delay, in seconds, between the pause command | |
# dispatch and execution of the runout_gcode. It may be useful to | |
# increase this delay if Octoprint exhibits strange pause behavior. | |
# Default is 0.5 seconds. | |
switch_pin: ^ar19 | |
# The pin on which the switch is connected. This parameter must be | |
# provided. | |
#*# <---------------------- SAVE_CONFIG ----------------------> | |
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | |
#*# | |
#*# [extruder] | |
#*# control = pid | |
#*# pid_kp = 17.359 | |
#*# pid_ki = 0.531 | |
#*# pid_kd = 141.909 | |
#*# | |
#*# [header_bed] | |
#*# control = pid | |
#*# pid_kp = 73.517 | |
#*# pid_ki = 2.356 | |
#*# pid_kd = 573.431 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment