Advertisement
rootiest

TheUnrealCanadian-printer.cfg

Jul 20th, 2022
918
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 6.29 KB | None | 0 0
  1. Printer.cfg
  2.  
  3. --
  4. # This file contains common pin mappings for the 2020 Creality CR-10
  5. # V3. The mainboard is a Creality 3D v2.5.2 (8-bit mainboard with
  6. # ATMega2560). To use this config, the firmware should be compiled for
  7. # the AVR atmega2560.
  8.  
  9. # See docs/Config_Reference.md for a description of parameters.
  10.  
  11. # Start print macro:
  12. [gcode_macro START_PRINT]
  13. gcode:
  14.    {% set BED_TEMP = params.BED_TEMP|default(60)|float %}
  15.     {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
  16.     # Start bed heating (but don't wait for it)
  17.     M140 S{BED_TEMP}
  18.     # Use absolute coordinates
  19.     G90
  20.     # Home the printer
  21.     G28
  22.     # Move the nozzle near the bed
  23.     G1 Z5 F3000
  24.     # Move the nozzle very close to the bed
  25.     G1 Z0.15 F300
  26.     # Wait for bed to reach temperature
  27.     M190 S{BED_TEMP}
  28.     # Set and wait for nozzle to reach temperature
  29.     M109 S{EXTRUDER_TEMP}
  30.  
  31. # End print macro:
  32. [gcode_macro END_PRINT]
  33. gcode:
  34.    # Turn off bed, extruder, and fan
  35.     M140 S0
  36.     M104 S0
  37.     M106 S0
  38.     # Move nozzle away from print while retracting
  39.     G91
  40.     G1 X-2 Y-2 E-3 F300
  41.     # Raise nozzle by 10mm
  42.     G1 Z10 F3000
  43.     G90
  44.     # Disable steppers
  45.     M84
  46.  
  47. # For better compatibility with GCodes generated for Marlin, you
  48. # may wish to add the following section, if you have BLTouch:
  49.  
  50. [gcode_macro G29]
  51. gcode:
  52.  {% set t = params.T|default(0)|float %}
  53.  
  54.   {% if printer.idle_timeout.state == "Printing" %}
  55.     {action_respond_info("This command cannot be used while printing")}
  56.   {% elif printer.toolhead.homed_axes != "xyz" %}
  57.     {action_respond_info("Please home XYZ first")}
  58.   {% else %}
  59.     SAVE_GCODE_STATE NAME=G29_state
  60.     G90
  61.     G1 Z10 F240
  62.     {% if t > 30.0 %}
  63.       M190 S{t}
  64.     {% endif %}
  65.     BED_MESH_CALIBRATE
  66.     {% if 'S' in params %}
  67.       M140 S{params.S}
  68.     {% endif %}
  69.     G90
  70.     G1 Z10 F240
  71.     G1 X150 Y155 F6000
  72.     RESTORE_GCODE_STATE NAME=G29_state MOVE=0
  73.   {% endif %}
  74.  
  75.  
  76. [stepper_x]
  77. step_pin: PF0 #ar54
  78. dir_pin: PF1 #ar55
  79. enable_pin: !PD7 #!ar38
  80. microsteps: 16
  81. rotation_distance: 40
  82. endstop_pin: ^PE5 #^ar3
  83. position_endstop: 0
  84. position_max: 310
  85. homing_speed: 50
  86.  
  87. [stepper_y]
  88. step_pin: PF6 #ar60
  89. dir_pin: PF7 #ar61
  90. enable_pin: !PF2 #!ar56
  91. microsteps: 16
  92. rotation_distance: 40
  93. endstop_pin: ^PJ1 #^ar14
  94. position_endstop: 0
  95. position_max: 320
  96. homing_speed: 50
  97.  
  98. [stepper_z]
  99. step_pin: PL3 #ar46
  100. dir_pin: !PL1 #!ar48
  101. enable_pin: !PK0 #!ar62
  102. microsteps: 16
  103. rotation_distance: 8
  104. position_max: 400
  105. #Uncomment if you have a BL-Touch:
  106. position_min: -15
  107. endstop_pin: probe:z_virtual_endstop
  108. #and comment the follwing lines:
  109. #position_endstop: 0.0
  110. #endstop_pin: ^PD3 #ar18
  111.  
  112. [safe_z_home]
  113. home_xy_position: 104.25,147.6
  114. speed: 80
  115. z_hop: 10
  116. z_hop_speed: 10
  117.  
  118. [extruder]
  119. step_pin: PA4 # ar26
  120. dir_pin: !PA6 # !ar28
  121. enable_pin: !PA2 # !ar24
  122. microsteps: 16
  123. rotation_distance: 7.7201944 # 16 microsteps * 200 steps/rotation / steps/mm
  124. #Correction formula is new_rotation_distance = old_rotation_distance * mmsExtracted / 100.0
  125. nozzle_diameter: 0.400
  126. filament_diameter: 1.750
  127. heater_pin: PB4 #ar10
  128. sensor_type: EPCOS 100K B57560G104F
  129. sensor_pin: PK5 #analog13
  130. #control: pid
  131. #pid_kp: 22.107
  132. #pid_ki: 1.170
  133. #pid_kd: 104.458
  134. min_temp: 0
  135. max_temp: 255
  136. pressure_advance = 0.14
  137.  
  138. [heater_bed]
  139. heater_pin: PH5 #ar8
  140. sensor_type: ATC Semitec 104GT-2
  141. sensor_pin: PK6 #analog14
  142. control: pid
  143. #Stock PID configuration taken from Marlin
  144. pid_Kp: 201.86
  145. pid_Ki: 10.67
  146. pid_Kd: 954.96
  147. min_temp: 0
  148. max_temp: 130
  149.  
  150. [fan]
  151. pin: PH6 #ar9
  152.  
  153. [mcu]
  154. serial: /dev/ttyUSB0
  155.  
  156. [printer]
  157. kinematics: cartesian
  158. max_velocity: 300
  159. max_accel: 3000
  160. max_accel_to_decel: 3000
  161. max_z_velocity: 5
  162. max_z_accel: 100
  163.  
  164. [display]
  165. lcd_type: st7920
  166. cs_pin: PH1 #ar16
  167. sclk_pin: PA1 #ar23
  168. sid_pin: PH0 #ar17
  169. encoder_pins: ^PC4, ^PC6 #^ar33, ^ar31
  170. click_pin: ^!PC2 #^!ar35
  171.  
  172. [mcu rpi]
  173. serial: /tmp/klipper_host_mcu
  174.  
  175. [adxl345]
  176. cs_pin: rpi:None
  177.  
  178. [resonance_tester]
  179. accel_chip: adxl345
  180. probe_points:
  181.    100, 100, 20  # an example
  182.  
  183. #Uncomment the following lines if you have a BL-Touch
  184. [bltouch]
  185. sensor_pin: ^PD2 #^ar19
  186. control_pin: PB5 #ar11
  187. set_output_mode: 5V
  188. pin_move_time: 0.4
  189. stow_on_each_sample: False
  190. probe_with_touch_mode: False
  191. x_offset: 45.75
  192. y_offset: -3.40
  193. z_offset: 4.495 #<------- NEW PROBE OFFSET. ALWAYS ENTER AS A POSITIVE (EVEN IF DISPLAY SHOWS NEGATIVE)
  194. samples: 2
  195. sample_retract_dist: 8
  196. samples_result: average
  197.  
  198. #Uncomment the following lines if you have a BL-Touch
  199. [bed_mesh]
  200. speed: 50
  201. horizontal_move_z: 10
  202. mesh_min: 46.50,0.75
  203. mesh_max: 253.5,295.85
  204. probe_count: 7,7
  205. move_check_distance: 5
  206. split_delta_z: .025
  207. algorithm: bicubic
  208.  
  209. [pause_resume]
  210. recover_velocity: 50
  211.  
  212. [filament_switch_sensor fil_runout_sensor]
  213. pause_on_runout: True
  214. switch_pin: PE4 #ar2
  215.  
  216. [bed_screws]
  217. screw1: 33,29
  218. screw1_name: front left screw
  219. screw2: 273,29
  220. screw2_name: front right screw
  221. screw3: 273,269
  222. screw3_name: rear right screw
  223. screw4: 33,269
  224. screw4_name: rear right screw
  225.  
  226. #Uncomment the following lines if you have a BL-Touch
  227. #[screws_tilt_adjust]
  228. #screw1: 0,29
  229. #screw1_name: front left screw
  230. #screw2: 228,29
  231. #screw2_name: front right screw
  232. #screw3: 228,269
  233. #screw3_name: rear right screw
  234. #screw4: 0,269
  235. #screw4_name: rear right screw
  236. #speed: 50
  237. #horizontal_move_z: 10
  238. #screw_thread: CW-M3
  239.  
  240. #*# <---------------------- SAVE_CONFIG ---------------------->
  241. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  242. #*#
  243. #*# [extruder]
  244. #*# control = pid
  245. #*# pid_kp = 22.168
  246. #*# pid_ki = 1.033
  247. #*# pid_kd = 118.876
  248. #*#
  249. #*# [bed_mesh default]
  250. #*# version = 1
  251. #*# points =
  252. #*#       0.382500, 0.246250, 0.110000, 0.028750, -0.085000, -0.133750, -0.226250
  253. #*#       0.305000, 0.183750, 0.062500, -0.028750, -0.117500, -0.142500, -0.235000
  254. #*#       0.237500, 0.128750, 0.025000, 0.001250, -0.106250, -0.130000, -0.167500
  255. #*#       0.213750, 0.107500, 0.047500, -0.021250, -0.067500, -0.075000, -0.083750
  256. #*#       0.238750, 0.165000, 0.076250, 0.055000, 0.003750, 0.038750, 0.000000
  257. #*#       0.213750, 0.168750, 0.092500, 0.101250, 0.095000, 0.148750, 0.161250
  258. #*#       0.308750, 0.260000, 0.206250, 0.202500, 0.188750, 0.251250, 0.337500
  259. #*# tension = 0.2
  260. #*# min_x = 46.5
  261. #*# algo = bicubic
  262. #*# y_count = 7
  263. #*# mesh_y_pps = 2
  264. #*# min_y = 0.75
  265. #*# x_count = 7
  266. #*# max_y = 295.83
  267. #*# mesh_x_pps = 2
  268. #*# max_x = 253.5
  269.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement