[
[include fluidd.cfg]
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
# This file contains pin mappings for the Creality Ender-5 Pro with "v4.2.7" board. To
# use this config, during "make menuconfig" select the STM32F103 with
# a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication.
# If you prefer a direct serial connection, in "make menuconfig"
# select "Enable extra low-level configuration options" and select
# serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
# cable used for the LCD module as follows:
# 3: Tx, 4: Rx, 9: GND, 10: VCC
# Flash this firmware by copying "out/klipper.bin" to a SD card and
# turning on the printer with the card inserted. The firmware
# filename must end in ".bin" and must not match the last filename
# that was flashed.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PB9
dir_pin: PC2
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA5
position_endstop: 220
position_max: 220
homing_speed: 50
[stepper_y]
step_pin: PB7
dir_pin: PB8
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA6
position_endstop: 220
position_max: 220
homing_speed: 50
[stepper_z]
step_pin: PB5
dir_pin: PB6
enable_pin: !PC3
microsteps: 16
rotation_distance: 4 # 4 for new leadscrew, 8 for old
#position_endstop: 0.0 # disable to use BLTouch
#endstop_pin: ^PA7 # disable to use BLTouch
endstop_pin: probe:z_virtual_endstop # enable to use BLTouch
position_min: -5 # enable to use BLTouch
position_max: 300
[safe_z_home] # enable for BLTouch
home_xy_position: 154, 126
speed: 100
z_hop: 10
z_hop_speed: 5
[bltouch] # enable for BLTouch
sensor_pin: ^PB1
control_pin: PB0
x_offset: -44
y_offset: -16
#z_offset: 3.35
speed: 3.0
[bed_mesh] # enable for BLTouch
speed: 100
mesh_min: 0, 0
mesh_max: 176, 204 # bed size - bltouch x_offset, y_offset
algorithm: bicubic
probe_count: 3,3
fade_start: 1
fade_end: 10
fade_target: 0
[gcode_macro M851]
gcode:
G28
probe_calibrate
[gcode_macro G32]
gcode:
G28
delta_calibrate
G1 X0 Y0 F4200
save_config
[gcode_macro G29]
gcode:
G28
bed_mesh_calibrate
G1 X0 Y0 Z15 F4200
save_config
[extruder]
max_extrude_only_distance: 500.0
step_pin: PB3
dir_pin: !PB4
enable_pin: !PC3
microsteps: 16
rotation_distance: 4.637
full_steps_per_rotation: 200
max_extrude_only_velocity: 60
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
control: pid
pid_Kp: 21.527
pid_Ki: 1.063
pid_Kd: 108.982
min_temp: 0
max_temp: 250
pressure_advance: 0.1
[heater_bed]
heater_pin: PA2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
control: pid
pid_Kp: 54.027
pid_Ki: 0.770
pid_Kd: 948.182
min_temp: 0
max_temp: 130
[fan]
pin: PA0
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
baud: 115200
restart_method: command
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 2500
max_z_velocity: 5
max_z_accel: 100
[display]
lcd_type: st7920
cs_pin: PB12
sclk_pin: PB13
sid_pin: PB15
encoder_pins: ^PB14, ^PB10
click_pin: ^!PB2
[gcode_macro START_PRINT]
gcode:
# Use absolute coordinates
G90
# Home the printer
G28
# Heat the bed and wait
M190 S70
# Set and wait for nozzle to reach temperature
M109 S230
# Reset extruder
G92 E0
BED_MESH_CALIBRATE PROFILE=mesh1 METHOD=automatic
BED_MESH_PROFILE LOAD=mesh1
# Move to wait position
G1 X0 Y0 Z20 F4000.0
# Move Z axis up
G1 Z2.0 F3000
# Move to start position
G1 X10.1 Y20 Z0.28 F5000.0
# Draw the first line
G1 X10.1 Y200.0 Z0.28 F1500.0 E15
# Move to the side
G1 X10.4 Y200.0 Z0.28 F5000.0
# Draw the second line
G1 X10.4 Y20 Z0.28 F1500.0 E30
# Reset extruder
G92 E0
[gcode_macro END_PRINT]
gcode:
M117 No tuliko huva?
# move z up
G91
G1 E-3 Z+10 F3000
# absolute xy
G90
G1 X10 Y220 F2000
#disable hotend and heated bed
M104 S0
M140 S0
# disable steppers
M84
BED_MESH_CLEAR
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.266250, 0.182500, 0.021250
#*# 0.132500, 0.050000, -0.086250
#*# 0.166250, 0.013750, -0.041250
#*# tension = 0.2
#*# min_x = 0.0
#*# algo = bicubic
#*# y_count = 3
#*# mesh_y_pps = 2
#*# min_y = 0.0
#*# x_count = 3
#*# max_y = 204.0
#*# mesh_x_pps = 2
#*# max_x = 176.0
#*#
#*# [bltouch]
#*# z_offset = 2.070
]