Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains pin mappings for the stock 2020 Creality Ender 3
- # Pro with the 32-bit Creality 4.2.2 board. To use this config, during
- # "make menuconfig" select the STM32F103 with a "28KiB bootloader" and
- # serial (on USART1 PA10/PA9) communication.
- # It should be noted that newer variations of this printer shipping in
- # 2022 may have GD32F103 chips installed and not STM32F103. You may
- # have to inspect the mainboard to ascertain which one you have. If it
- # is the GD32F103 then please select Disable SWD at startup in the
- # "make menuconfig" along with the same settings for STM32F103.
- # 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.
- [include mainsail.cfg]
- [include menu.cfg] # custom lcd display menu
- [include macros.cfg]
- [include timelapse.cfg]
- [filament_switch_sensor Filament_runout_sensor]
- pause_on_runout: True
- runout_gcode:
- G91
- G1 Z20 F900 # Raise Z away from print
- G90
- G1 X245 Y218.5 F5000 # Move to purge area
- G91
- G1 E-450 F600 # Retract 450mm of filament
- G90
- insert_gcode:
- G4 P10000 # Pause for 10 seconds
- G1 E150 F400 # Prime the nozzle
- switch_pin: PA4 # Pin that the sensor is connected to
- [bltouch]
- sensor_pin: ^PB1
- control_pin: PB0
- x_offset: -46 # Enter your own value here
- y_offset: -2 # Enter your own value here
- [safe_z_home]
- home_xy_position: 117.5,117.5 # Change coordinates to the center of your print bed
- z_hop: 10 # Move up 10mm
- z_hop_speed: 5
- [bed_mesh]
- speed: 120
- horizontal_move_z: 5
- mesh_min: 20,20
- mesh_max: 200, 200
- probe_count: 6, 6
- mesh_pps: 3, 3
- algorithm: bicubic
- bicubic_tension: 0.
- fade_start: 1
- fade_end: 10
- fade_target: 0
- [stepper_x]
- step_pin: PC2
- dir_pin: PB9
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PA5
- position_endstop: 0
- position_max: 245
- homing_speed: 50
- [stepper_y]
- step_pin: PB8
- dir_pin: PB7
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PA6
- position_endstop: 0
- position_max: 230
- homing_speed: 50
- [stepper_z]
- step_pin: PB6
- dir_pin: !PB5
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 8
- endstop_pin: probe:z_virtual_endstop # Comment out if not using BL/CR-Touch
- #endstop_pin: ^PA7 # Uncomment if not using BL/CR-Touch
- #position_endstop: 0.0 # Uncomment if not using BL/CR-Touch
- position_max: 240
- position_min: -2
- [extruder]
- max_extrude_only_distance: 100.0
- step_pin: PB4
- dir_pin: PB3
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 22.546 # Change value to 34.406 if not using Micro Swiss Dual Gear Extruder
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PA1
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC5
- control: pid
- # tuned for stock hardware with 230 degree Celsius target
- pid_Kp: 22.605
- pid_Ki: 1.215
- pid_Kd: 105.112
- min_temp: 0
- max_temp: 300
- pressure_advance = 1.0
- [heater_bed]
- heater_pin: PA2
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC4
- control: pid
- # tuned for stock hardware with 80 degree Celsius target
- pid_Kp: 74.533
- pid_Ki: 1.854
- pid_Kd: 749.059
- min_temp: 0
- max_temp: 130
- [fan]
- pin: PA0
- [mcu]
- serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
- restart_method: command
- [printer]
- kinematics: cartesian
- max_velocity: 300
- max_accel: 3000
- 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
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bltouch]
- #*# z_offset = 0.150
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# 0.170000, 0.050000, -0.022500, -0.042500, -0.095000, -0.672500
- #*# 0.125000, 0.067500, 0.025000, 0.000000, -0.095000, -0.575000
- #*# 0.105000, 0.020000, -0.012500, 0.005000, -0.057500, -0.597500
- #*# 0.042500, 0.030000, 0.022500, 0.055000, -0.037500, -0.480000
- #*# 0.032500, -0.040000, -0.062500, -0.007500, -0.050000, -0.587500
- #*# 0.092500, 0.052500, 0.017500, 0.027500, -0.057500, -0.517500
- #*# x_count = 6
- #*# y_count = 6
- #*# mesh_x_pps = 4
- #*# mesh_y_pps = 4
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 20.0
- #*# max_x = 200.0
- #*# min_y = 20.0
- #*# max_y = 200.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement