Skip to content

Instantly share code, notes, and snippets.

@Biacco42
Created January 30, 2021 12:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Biacco42/9679d9b1014a22ad650f87e29f8b7874 to your computer and use it in GitHub Desktop.
Save Biacco42/9679d9b1014a22ad650f87e29f8b7874 to your computer and use it in GitHub Desktop.
Klipper printer.cfg file for Anycubic i3 Mega w/ BLTouch bed mesh leveling, input shaper (resonance compensation), pressure advance and skew correction.
# 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 the example.cfg file for a description of available parameters.
[stepper_x]
step_pin: ar54
dir_pin: ar55
enable_pin: !ar38
microsteps: 16
rotation_distance: 40
endstop_pin: ^!ar3
position_min: -0.5
position_endstop: 0.0
position_max: 190.0
homing_speed: 30.0
[stepper_y]
step_pin: ar60
dir_pin: !ar61
enable_pin: !ar56
microsteps: 16
rotation_distance: 40
endstop_pin: ^!ar42
position_min: -17.5
position_endstop: -17
position_max: 200.0
homing_speed: 30.0
[stepper_z]
step_pin: ar46
dir_pin: !ar48
enable_pin: !ar62
microsteps: 16
rotation_distance: 8
endstop_pin: ^!ar18
position_endstop: 0.0
position_min: -0.2
position_max: 140.0
homing_speed: 5.0
[stepper_z1]
step_pin: ar36
dir_pin: !ar34
enable_pin: !ar30
microsteps: 16
rotation_distance: 8
endstop_pin: ^!ar43
# Moter rotation is flipped
[extruder]
step_pin: ar26
dir_pin: ar28
enable_pin: !ar24
microsteps: 16
rotation_distance: 7.2704
nozzle_diameter: 0.400
filament_diameter: 1.750
max_extrude_only_distance: 100.0
#pressure_advance: 0.015
pressure_advance: 0.02
heater_pin: ar10
sensor_type: ATC Semitec 104GT-2
sensor_pin: analog13
#control: pid
#pid_Kp: 15.717
#pid_Ki: 0.569
#pid_Kd: 108.451
min_temp: 0
max_temp: 290
[heater_fan extruder_fan]
pin: ar44
[heater_bed]
heater_pin: ar8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog14
#control: pid
#pid_Kp: 74.883
#pid_Ki: 1.809
#pid_Kd: 775.038
min_temp: 0
max_temp: 110
[fan]
pin: ar9
[mcu]
serial: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
pin_map: arduino
[printer]
kinematics: cartesian
max_velocity: 200
max_accel: 1500
max_accel_to_decel: 1500
max_z_velocity: 10
max_z_accel: 60
[heater_fan stepstick_fan]
pin: ar7
[bltouch]
sensor_pin: ^ar2
control_pin: ar5
x_offset: 28
y_offset: -28
#z_offset: 1.227
#z_offset: 1.175
#z_offset: 1.15
[bed_mesh]
speed: 120
horizontal_move_z: 5
mesh_min: 30,10
mesh_max: 190,170
probe_count: 6,6
fade_start: 1.0
fade_end: 10.0
[input_shaper]
shaper_freq_x: 47.6190
shaper_freq_y: 47.2973
shaper_type: ei
[skew_correction]
[gcode_macro START_PRINT]
gcode:
G28
# SET_SKEW XY=141.4,140.3,99.6 XZ=140.7,141.5,99.6 YZ=140.9,141.2,99.6
BED_MESH_CALIBRATE
[gcode_macro END_PRINT]
gcode:
SET_SKEW CLEAR=1
BED_MESH_CLEAR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment