Last active
May 24, 2025 18:34
-
-
Save davidsaccavino/9a54aab13cf8bb4fce2c155f7e43f097 to your computer and use it in GitHub Desktop.
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
# Paste here and save your klipper configuration | |
# This file contains common pin mappings for the 2018 Creality | |
# Ender 3. To use this config, the firmware should be compiled for the | |
# AVR atmega1284p. | |
# Note, a number of Melzi boards are shipped with a bootloader that | |
# requires the following command to flash the board: | |
# avrdude -p atmega1284p -c arduino -b 57600 -P /dev/ttyUSB0 -U out/klipper.elf.hex | |
# If the above command does not work and "make flash" does not work | |
# then one may need to flash a bootloader to the board - see the | |
# Klipper docs/Bootloaders.md file for more information. | |
# See docs/Config_Reference.md for a description of parameters. | |
[stepper_x] | |
step_pin: PD7 | |
dir_pin: !PC5 | |
enable_pin: !PD6 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: ^PC2 | |
position_endstop: 0 | |
position_max: 235 | |
homing_speed: 50 | |
[stepper_y] | |
step_pin: PC6 | |
dir_pin: !PC7 | |
enable_pin: !PD6 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: ^PC3 | |
position_endstop: 0 | |
position_max: 235 | |
homing_speed: 50 | |
[stepper_z] | |
step_pin: PB3 | |
dir_pin: PB2 | |
enable_pin: !PA5 | |
microsteps: 16 | |
rotation_distance: 8 | |
endstop_pin: probe:z_virtual_endstop | |
position_min: -4 | |
position_max: 250 | |
[extruder] | |
max_extrude_only_distance: 100.0 | |
step_pin: PB1 | |
dir_pin: !PB0 | |
enable_pin: !PD6 | |
microsteps: 16 | |
rotation_distance: 21.991 | |
nozzle_diameter: 0.400 | |
filament_diameter: 1.750 | |
heater_pin: PD5 | |
sensor_type: EPCOS 100K B57560G104F | |
sensor_pin: PA7 | |
control: pid | |
# tuned for stock hardware with 200 degree Celsius target | |
pid_Kp: 21.527 | |
pid_Ki: 1.063 | |
pid_Kd: 108.982 | |
min_temp: 0 | |
max_temp: 250 | |
pressure_advance: 0.266 | |
[heater_bed] | |
heater_pin: PD4 | |
sensor_type: EPCOS 100K B57560G104F | |
sensor_pin: PA6 | |
control: pid | |
# tuned for stock hardware with 50 degree Celsius target | |
pid_Kp: 54.027 | |
pid_Ki: 0.770 | |
pid_Kd: 948.182 | |
min_temp: 0 | |
max_temp: 130 | |
[fan] | |
pin: PB4 | |
[mcu] | |
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 | |
[printer] | |
kinematics: cartesian | |
max_velocity: 300 | |
max_accel: 3000 | |
max_accel_to_decel: 3000 | |
max_z_velocity: 5 | |
max_z_accel: 100 | |
[bed_screws] | |
screw1: 30.5, 37 | |
screw2: 30.5, 207 | |
screw3: 204.5, 207 | |
screw4: 204.5, 37 | |
[display] | |
lcd_type: st7920 | |
cs_pin: PA3 | |
sclk_pin: PA1 | |
sid_pin: PC1 | |
encoder_pins: ^PD2, ^PD3 | |
click_pin: ^!PC0 | |
[bltouch] | |
sensor_pin: ^PC4 | |
control_pin: PA4 | |
x_offset: -45 | |
y_offset: -6 | |
z_offset: 2.882 | |
pin_move_time: 0.4 | |
[bed_mesh] | |
speed: 120 | |
horizontal_move_z: 5 | |
mesh_min: 45, 25 | |
mesh_max: 190, 210 | |
probe_count: 5, 5 | |
fade_start: 1.0 | |
mesh_pps: 2, 2 | |
[safe_z_home] | |
home_xy_position: 155, 120 # Change coordinates to the center of your print bed | |
speed: 120 | |
z_hop: 10 # Move up 10mm | |
z_hop_speed: 10 | |
[gcode_macro G29] | |
gcode: | |
G28 | |
BED_MESH_CALIBRATE | |
[mcu rpi] | |
serial: /tmp/klipper_host_mcu | |
[adxl345] | |
cs_pin: rpi:None | |
[resonance_tester] | |
accel_chip: adxl345 | |
probe_points: | |
100, 100, 20 # an example | |
[input_shaper] | |
shaper_type_x = mzv | |
shaper_freq_x = 69.8 | |
shaper_type_y = mzv | |
shaper_freq_y = 33.0 | |
#*# <---------------------- SAVE_CONFIG ----------------------> | |
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | |
#*# | |
#*# [bed_mesh default] | |
#*# version = 1 | |
#*# points = | |
#*# 0.012500, -0.087500, -0.077500, -0.112500, -0.080000 | |
#*# -0.067500, -0.075000, -0.145000, -0.132500, -0.155000 | |
#*# -0.065000, -0.127500, -0.125000, -0.167500, -0.170000 | |
#*# -0.037500, -0.075000, -0.120000, -0.105000, -0.097500 | |
#*# 0.035000, -0.042500, -0.047500, -0.027500, -0.037500 | |
#*# tension = 0.2 | |
#*# min_x = 45.0 | |
#*# algo = lagrange | |
#*# y_count = 5 | |
#*# mesh_y_pps = 2 | |
#*# min_y = 20.0 | |
#*# x_count = 5 | |
#*# max_y = 215.0 | |
#*# mesh_x_pps = 2 | |
#*# max_x = 190.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Blue - Solid Blue - SDA - MOSI
Yellow - Striped Blue - SCL - SCLK
White - Striped Orange - GND
Orange - Solid Orange - 3v3
Brown - Solid Brown - CS - CE0_N
Purple - Striped Brown - SDO - MISO