Advertisement
rootiest

printer.cfg

Apr 13th, 2023
1,227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.68 KB | None | 0 0
  1.  
  2. # This file contains pin mappings for the stock 2020 Creality Ender 3
  3. # V2. To use this config, during "make menuconfig" select the
  4. # STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9)
  5. # communication.
  6.  
  7. # If you prefer a direct serial connection, in "make menuconfig"
  8. # select "Enable extra low-level configuration options" and select
  9. # serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
  10. # cable used for the LCD module as follows:
  11. # 3: Tx, 4: Rx, 9: GND, 10: VCC
  12.  
  13. # Flash this firmware by copying "out/klipper.bin" to a SD card and
  14. # turning on the printer with the card inserted. The firmware
  15. # filename must end in ".bin" and must not match the last filename
  16. # that was flashed.
  17.  
  18. # See docs/Config_Reference.md for a description of parameters.
  19.  
  20. [include mainsail.cfg]
  21.  
  22.  
  23. [stepper_x]
  24. step_pin: PC2
  25. dir_pin: PB9
  26. enable_pin: !PC3
  27. microsteps: 16
  28. rotation_distance: 40
  29. endstop_pin: ^PA5
  30. position_endstop: 0
  31. position_max: 248
  32. homing_speed: 50
  33.  
  34. [stepper_y]
  35. step_pin: PB8
  36. dir_pin: PB7
  37. enable_pin: !PC3
  38. microsteps: 16
  39. rotation_distance: 40
  40. endstop_pin: ^PA6
  41. position_endstop: 0
  42. position_max: 235
  43. homing_speed: 50
  44.  
  45. [stepper_z]
  46. step_pin: PB6
  47. dir_pin: !PB5
  48. enable_pin: !PC3
  49. microsteps: 16
  50. rotation_distance: 8
  51. endstop_pin: probe:z_virtual_endstop
  52. #position_endstop: 0.0
  53. position_max: 250
  54. position_min: -6.0
  55.  
  56. [extruder]
  57. max_extrude_only_distance: 100.0
  58. step_pin: PB4
  59. dir_pin: PB3
  60. enable_pin: !PC3
  61. microsteps: 16
  62. rotation_distance: 34.406
  63. nozzle_diameter: 0.400
  64. filament_diameter: 1.750
  65. heater_pin: PA1
  66. sensor_type: EPCOS 100K B57560G104F
  67. sensor_pin: PC5
  68. control: pid
  69. # tuned for stock hardware with 200 degree Celsius target
  70. pid_Kp: 21.527
  71. pid_Ki: 1.063
  72. pid_Kd: 108.982
  73. min_temp: 0
  74. max_temp: 250
  75.  
  76. [heater_bed]
  77. heater_pin: PA2
  78. sensor_type: EPCOS 100K B57560G104F
  79. sensor_pin: PC4
  80. control: pid
  81. # tuned for stock hardware with 50 degree Celsius target
  82. pid_Kp: 54.027
  83. pid_Ki: 0.770
  84. pid_Kd: 948.182
  85. min_temp: 0
  86. max_temp: 130
  87.  
  88. [fan]
  89. pin: PA0
  90.  
  91. [mcu]
  92. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  93.  
  94. restart_method: command
  95.  
  96. [printer]
  97. kinematics: cartesian
  98. max_velocity: 300
  99. max_accel: 3000
  100. max_z_velocity: 5
  101. max_z_accel: 100
  102.  
  103. ######################################################################
  104. # 128x64 Full Graphic Creality CR10 / ENDER 3 stockdisplay
  105. ######################################################################
  106.  
  107. # This section is used for a Creality "12864" display with a single
  108. # ribbon cable between the display's EXP3 plug and the
  109. # micro-controller board's EXP1 connector.
  110.  
  111. [display]
  112. lcd_type: st7920
  113. cs_pin: EXP1_7
  114. sclk_pin: EXP1_6
  115. sid_pin: EXP1_8
  116. encoder_pins: ^EXP1_5, ^EXP1_3
  117. click_pin: ^!EXP1_2
  118.  
  119. [output_pin beeper]
  120. pin: EXP1_1
  121.  
  122. [board_pins]
  123. aliases:
  124.  EXP1_1=PC6,EXP1_3=PB10,EXP1_5=PB14,EXP1_7=PB12,EXP1_9=<GND>,
  125.   EXP1_2=PB2,EXP1_4=PB11,EXP1_6=PB13,EXP1_8=PB15,EXP1_10=<5V>,
  126.   PROBE_IN=PB0,PROBE_OUT=PB1,FIL_RUNOUT=PC6
  127.  
  128. [display_status]
  129.  
  130. [BLtouch]
  131. sensor_pin: ^PB1
  132. control_pin: PB0
  133. x_offset: -51
  134. y_offset: -14
  135. samples: 2
  136. speed: 2
  137. #z_offset: 0.0
  138.  
  139. [bed_mesh]
  140. speed: 80
  141. horizontal_move_z: 5
  142. mesh_min: 10, 10  
  143. mesh_max: 100, 100
  144. probe_count: 5,5
  145. mesh_pps: 2,2
  146. fade_start: 1
  147. fade_end: 10
  148. fade_target: 0
  149.  
  150. [safe_z_home]
  151. home_xy_position:110,110
  152. speed: 75
  153. z_hop: 10
  154. z_hop_speed:5
  155.  
  156. # Ender 3 Custom Start G-code
  157. [gcode_macro START_PRINT]
  158. gcode:
  159.    #{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
  160.     #{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(205)|float %}
  161.     # Start bed heating
  162.     #M140 S{BED_TEMP}
  163.     #M109 S{EXTRUDER_TEMP}
  164.     G92 E0 # Reset Extruder
  165.     G28 # Home all axes
  166.     BED_MESH_PROFILE LOAD=default
  167.     G1 Z2.0 F3000 # Move Z Axis up little to prevent scratching of Heat Bed
  168.     G1 X0.1 Y20 Z0.3 F5000.0 # Move to start position
  169.     G1 X0.1 Y200.0 Z0.3 F1500.0 E15 # Draw the first line
  170.     G1 X0.4 Y200.0 Z0.3 F5000.0 # Move to side a little
  171.     G1 X0.4 Y20 Z0.3 F1500.0 E30 # Draw the second line
  172.     G92 E0 # Reset Extruder
  173.     G1 Z2.0 F3000 # Move Z Axis up little to prevent scratching of Heat Bed
  174.     G1 X5 Y20 Z0.3 F5000.0 # Move over to prevent blob squish
  175.  
  176. [gcode_macro END_PRINT]
  177. gcode:
  178.    G91 ;Relative positioning
  179.     G1 E-2 F2700 ;Retract a bit
  180.     G1 E-2 Z0.2 F2400 ;Retract and raise Z
  181.     G1 X5 Y5 F3000 ;Wipe out
  182.     G1 Z10 ;Raise Z more
  183.     G90 ;Absolute positioning
  184.  
  185.     G1 X0 Y230 ;Present print
  186.     M106 S0 ;Turn-off fan
  187.     M104 S0 ;Turn-off hotend
  188.     M140 S0 ;Turn-off bed
  189.  
  190.     M84 X Y E ;Disable all steppers but Z
  191.  
  192. #*# <---------------------- SAVE_CONFIG ---------------------->
  193. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  194. #*#
  195. #*# [bltouch]
  196. #*# z_offset = -0.400
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement