Advertisement
Guest User

printer.cfg

a guest
Jun 5th, 2023
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. # This file contains pin mappings for the Creality "v4.2.7" board. To
  2. # use this config, during "make menuconfig" select the STM32F103 with
  3. # a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication.
  4.  
  5. # If you prefer a direct serial connection, in "make menuconfig"
  6. # select "Enable extra low-level configuration options" and select
  7. # serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
  8. # cable used for the LCD module as follows:
  9. # 3: Tx, 4: Rx, 9: GND, 10: VCC
  10.  
  11. # Flash this firmware by copying "out/klipper.bin" to a SD card and
  12. # turning on the printer with the card inserted. The firmware
  13. # filename must end in ".bin" and must not match the last filename
  14. # that was flashed.
  15.  
  16. # See docs/Config_Reference.md for a description of parameters.
  17.  
  18. [include mainsail.cfg]
  19. [include adxl.cfg]
  20.  
  21. [mcu rpi]
  22. serial: /tmp/klipper_host_mcu
  23.  
  24. [adxl345]
  25. : rpi:None
  26.  
  27. [resonance_tester]
  28. accel_chip: adxl345
  29. probe_points:
  30. 100,100,20 # an example
  31.  
  32. [input_shaper]
  33. shaper_freq_x: 36.8
  34. shaper_type_x: mzv
  35. shaper_freq_y: 44.0
  36. shaper_type_y: mzv
  37.  
  38. [bltouch] # Comment out if not using a BL/CR-Touch
  39. sensor_pin: ^PB1 # Comment out if not using a BL/CR-Touch
  40. control_pin: PB0 # Comment out if not using a BL/CR-Touch
  41. x_offset: -46 # Enter your own value here, Comment out if not using a BL/CR-Touch
  42. y_offset: -2 # Enter your own value here, Comment out if not using a BL/CR-Touch
  43.  
  44. #[filament_switch_sensor Filament_runout_sensor]
  45. #pause_on_runout: True
  46. #runout_gcode:
  47. # G91
  48. # G1 Z20 F900 # Raise Z away from print
  49. # G90
  50. # G1 X245 Y218.5 F5000 # Move to purge area
  51. # G91
  52. # G1 E-450 F600 # Retract 450mm of filament
  53. # G90
  54. #insert_gcode:
  55. # G4 P10000 # Pause for 10 seconds
  56. # G1 E150 F400 # Prime the nozzle
  57. #switch_pin: PC6 # Pin that the sensor is connected to
  58.  
  59. [safe_z_home]
  60. home_xy_position: 117.5,117.5 # Change coordinates to the center of your print bed
  61. z_hop: 10 # Move up 10mm
  62. z_hop_speed: 5
  63.  
  64. [bed_mesh]
  65. speed: 120
  66. horizontal_move_z: 5
  67. mesh_min: 32, 10
  68. mesh_max: 199, 220
  69. probe_count: 6, 6
  70. mesh_pps: 2, 3
  71. algorithm: bicubic
  72. bicubic_tension: 0.
  73. fade_start: 1
  74. fade_end: 10
  75. fade_target: 0
  76.  
  77. [stepper_x]
  78. step_pin: PB9
  79. dir_pin: PC2
  80. enable_pin: !PC3
  81. microsteps: 16
  82. rotation_distance: 40
  83. endstop_pin: ^PA5
  84. position_endstop: 0
  85. position_max: 245
  86. homing_speed: 50
  87.  
  88. [stepper_y]
  89. step_pin: PB7
  90. dir_pin: PB8
  91. enable_pin: !PC3
  92. microsteps: 16
  93. rotation_distance: 40
  94. endstop_pin: ^PA6
  95. position_endstop: 0
  96. position_max: 230
  97. homing_speed: 50
  98.  
  99. [stepper_z]
  100. step_pin: PB5
  101. dir_pin: !PB6
  102. enable_pin: !PC3
  103. microsteps: 16
  104. rotation_distance: 8
  105. endstop_pin: probe:z_virtual_endstop # Comment out if not using BL/CR-Touch
  106. #endstop_pin: ^PA7 # Uncomment if using the z-endstop
  107. #position_endstop: 0.0 # Uncomment if using the z-endstop
  108. position_max: 240
  109. position_min: -4
  110.  
  111. [extruder]
  112. max_extrude_only_distance: 100.0
  113. step_pin: PB3
  114. dir_pin: PB4
  115. enable_pin: !PC3
  116. microsteps: 16
  117. rotation_distance: 31.755 # profile default 33.500
  118. nozzle_diameter: 0.400
  119. filament_diameter: 1.750
  120. heater_pin: PA1
  121. sensor_type: EPCOS 100K B57560G104F
  122. sensor_pin: PC5
  123. #control: pid
  124. #pid_kp: 24.545
  125. #pid_ki: 1.136
  126. #pid_kd: 132.544
  127. min_temp: 0
  128. max_temp: 300
  129.  
  130. [heater_bed]
  131. heater_pin: PA2
  132. sensor_type: EPCOS 100K B57560G104F
  133. sensor_pin: PC4
  134. control: pid
  135. pid_kp: 73.035
  136. pid_ki: 1.902
  137. pid_kd: 701.138
  138. min_temp: 0
  139. max_temp: 130
  140.  
  141. [fan]
  142. pin: PA0
  143.  
  144. [mcu]
  145. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  146. restart_method: command
  147.  
  148. [printer]
  149. kinematics: cartesian
  150. max_velocity: 300
  151. max_accel: 3000
  152. max_z_velocity: 5
  153. max_z_accel: 100
  154.  
  155. [board_pins]
  156. aliases:
  157. EXP1_1=PC6,EXP1_3=PB10,EXP1_5=PB14,EXP1_7=PB12,EXP1_9=<GND>,
  158. EXP1_2=PB2,EXP1_4=PB11,EXP1_6=PB13,EXP1_8=PB15,EXP1_10=<5V>,
  159. PROBE_IN=PB0,PROBE_OUT=PB1,FIL_RUNOUT=PC6
  160.  
  161. #*# <---------------------- SAVE_CONFIG ---------------------->
  162. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  163. #*#
  164. #*# [bltouch]
  165. #*# z_offset = 3.045
  166. #*#
  167. #*# [extruder]
  168. #*# control = pid
  169. #*# pid_kp = 25.154
  170. #*# pid_ki = 1.310
  171. #*# pid_kd = 120.740
  172. #*#
  173. #*# [bed_mesh default]
  174. #*# version = 1
  175. #*# points =
  176. #*# 0.307500, 0.230000, 0.180000, 0.135000, -0.060000, 0.395000
  177. #*# 0.227500, 0.192500, -0.012500, 0.040000, 0.020000, -0.025000
  178. #*# 0.152500, 0.057500, -0.262500, -0.062500, -0.095000, -0.097500
  179. #*# 0.095000, 0.010000, -0.062500, -0.097500, -0.140000, -0.165000
  180. #*# 0.027500, -0.062500, -0.130000, -0.147500, -0.185000, -0.190000
  181. #*# 0.020000, -0.057500, -0.137500, -0.180000, -0.225000, -0.267500
  182. #*# x_count = 6
  183. #*# y_count = 6
  184. #*# mesh_x_pps = 2
  185. #*# mesh_y_pps = 3
  186. #*# algo = bicubic
  187. #*# tension = 0.0
  188. #*# min_x = 32.0
  189. #*# max_x = 199.0
  190. #*# min_y = 10.0
  191. #*# max_y = 220.0
  192.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement