Advertisement
kasakuri

Untitled

Dec 9th, 2023
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. # This file contains pin mappings for the stock 2020 Creality Ender 3
  2. # Pro with the 32-bit Creality 4.2.2 board. To use this config, during
  3. # "make menuconfig" select the STM32F103 with a "28KiB bootloader" and
  4. # serial (on USART1 PA10/PA9) communication.
  5.  
  6. # It should be noted that newer variations of this printer shipping in
  7. # 2022 may have GD32F103 chips installed and not STM32F103. You may
  8. # have to inspect the mainboard to ascertain which one you have. If it
  9. # is the GD32F103 then please select Disable SWD at startup in the
  10. # "make menuconfig" along with the same settings for STM32F103.
  11.  
  12. # If you prefer a direct serial connection, in "make menuconfig"
  13. # select "Enable extra low-level configuration options" and select
  14. # serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
  15. # cable used for the LCD module as follows:
  16. # 3: Tx, 4: Rx, 9: GND, 10: VCC
  17.  
  18. # Flash this firmware by copying "out/klipper.bin" to a SD card and
  19. # turning on the printer with the card inserted. The firmware
  20. # filename must end in ".bin" and must not match the last filename
  21. # that was flashed.
  22.  
  23. # See docs/Config_Reference.md for a description of parameters.
  24.  
  25. [include mainsail.cfg]
  26. [include menu.cfg] # custom lcd display menu
  27. [include macros.cfg]
  28. [include timelapse.cfg]
  29.  
  30. [filament_switch_sensor Filament_runout_sensor]
  31. pause_on_runout: True
  32. runout_gcode:
  33. G91
  34. G1 Z20 F900 # Raise Z away from print
  35. G90
  36. G1 X245 Y218.5 F5000 # Move to purge area
  37. G91
  38. G1 E-450 F600 # Retract 450mm of filament
  39. G90
  40. insert_gcode:
  41. G4 P10000 # Pause for 10 seconds
  42. G1 E150 F400 # Prime the nozzle
  43. switch_pin: PA4 # Pin that the sensor is connected to
  44.  
  45. [bltouch]
  46. sensor_pin: ^PB1
  47. control_pin: PB0
  48. x_offset: -46 # Enter your own value here
  49. y_offset: -2 # Enter your own value here
  50.  
  51. [safe_z_home]
  52. home_xy_position: 117.5,117.5 # Change coordinates to the center of your print bed
  53. z_hop: 10 # Move up 10mm
  54. z_hop_speed: 5
  55.  
  56. [bed_mesh]
  57. speed: 120
  58. horizontal_move_z: 5
  59. mesh_min: 20,20
  60. mesh_max: 200, 200
  61. probe_count: 6, 6
  62. mesh_pps: 3, 3
  63. algorithm: bicubic
  64. bicubic_tension: 0.
  65. fade_start: 1
  66. fade_end: 10
  67. fade_target: 0
  68.  
  69. [stepper_x]
  70. step_pin: PC2
  71. dir_pin: PB9
  72. enable_pin: !PC3
  73. microsteps: 16
  74. rotation_distance: 40
  75. endstop_pin: ^PA5
  76. position_endstop: 0
  77. position_max: 245
  78. homing_speed: 50
  79.  
  80. [stepper_y]
  81. step_pin: PB8
  82. dir_pin: PB7
  83. enable_pin: !PC3
  84. microsteps: 16
  85. rotation_distance: 40
  86. endstop_pin: ^PA6
  87. position_endstop: 0
  88. position_max: 230
  89. homing_speed: 50
  90.  
  91. [stepper_z]
  92. step_pin: PB6
  93. dir_pin: !PB5
  94. enable_pin: !PC3
  95. microsteps: 16
  96. rotation_distance: 8
  97. endstop_pin: probe:z_virtual_endstop # Comment out if not using BL/CR-Touch
  98. #endstop_pin: ^PA7 # Uncomment if not using BL/CR-Touch
  99. #position_endstop: 0.0 # Uncomment if not using BL/CR-Touch
  100. position_max: 240
  101. position_min: -2
  102.  
  103. [extruder]
  104. max_extrude_only_distance: 100.0
  105. step_pin: PB4
  106. dir_pin: PB3
  107. enable_pin: !PC3
  108. microsteps: 16
  109. rotation_distance: 22.546 # Change value to 34.406 if not using Micro Swiss Dual Gear Extruder
  110. nozzle_diameter: 0.400
  111. filament_diameter: 1.750
  112. heater_pin: PA1
  113. sensor_type: EPCOS 100K B57560G104F
  114. sensor_pin: PC5
  115. control: pid
  116. # tuned for stock hardware with 230 degree Celsius target
  117. pid_Kp: 22.605
  118. pid_Ki: 1.215
  119. pid_Kd: 105.112
  120. min_temp: 0
  121. max_temp: 300
  122. pressure_advance = 1.0
  123.  
  124. [heater_bed]
  125. heater_pin: PA2
  126. sensor_type: EPCOS 100K B57560G104F
  127. sensor_pin: PC4
  128. control: pid
  129. # tuned for stock hardware with 80 degree Celsius target
  130. pid_Kp: 74.533
  131. pid_Ki: 1.854
  132. pid_Kd: 749.059
  133. min_temp: 0
  134. max_temp: 130
  135.  
  136. [fan]
  137. pin: PA0
  138.  
  139. [mcu]
  140. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  141. restart_method: command
  142.  
  143. [printer]
  144. kinematics: cartesian
  145. max_velocity: 300
  146. max_accel: 3000
  147. max_z_velocity: 5
  148. max_z_accel: 100
  149.  
  150. [display]
  151. lcd_type: st7920
  152. cs_pin: PB12
  153. sclk_pin: PB13
  154. sid_pin: PB15
  155. encoder_pins: ^PB14, ^PB10
  156. click_pin: ^!PB2
  157.  
  158. #*# <---------------------- SAVE_CONFIG ---------------------->
  159. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  160. #*#
  161. #*# [bltouch]
  162. #*# z_offset = 0.150
  163. #*#
  164. #*# [bed_mesh default]
  165. #*# version = 1
  166. #*# points =
  167. #*# 0.170000, 0.050000, -0.022500, -0.042500, -0.095000, -0.672500
  168. #*# 0.125000, 0.067500, 0.025000, 0.000000, -0.095000, -0.575000
  169. #*# 0.105000, 0.020000, -0.012500, 0.005000, -0.057500, -0.597500
  170. #*# 0.042500, 0.030000, 0.022500, 0.055000, -0.037500, -0.480000
  171. #*# 0.032500, -0.040000, -0.062500, -0.007500, -0.050000, -0.587500
  172. #*# 0.092500, 0.052500, 0.017500, 0.027500, -0.057500, -0.517500
  173. #*# x_count = 6
  174. #*# y_count = 6
  175. #*# mesh_x_pps = 4
  176. #*# mesh_y_pps = 4
  177. #*# algo = bicubic
  178. #*# tension = 0.2
  179. #*# min_x = 20.0
  180. #*# max_x = 200.0
  181. #*# min_y = 20.0
  182. #*# max_y = 200.0
  183.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement