oldlunchlady69

printer.cfg

Jan 21st, 2022 (edited)
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.82 KB | None | 0 0
  1. # This file contains common pin mappings for the BigTreeTech OctoPus V1.
  2. # To use this config, the firmware should be compiled for the STM32F446 with a "32KiB bootloader"
  3. # Enable "extra low-level configuration options" and select the "12MHz crystal" as clock reference
  4.  
  5. # after running "make", copy the generated "klipper/out/klipper.bin" file to a
  6. # file named "firmware.bin" on an SD card and then restart the OctoPus with that SD card.
  7.  
  8. # See docs/Config_Reference.md for a description of parameters.
  9.  
  10. # ENDER 6
  11.  
  12. [stepper_x]
  13. # MOTOR0
  14. step_pin: PF13
  15. dir_pin: PF12
  16. enable_pin: !PF14
  17. microsteps: 256
  18. rotation_distance: 40
  19. endstop_pin: ^PG6  # DIAG0
  20. position_endstop: 260
  21. position_max: 260
  22. homing_speed: 50
  23. homing_retract_dist: 0
  24.  
  25. [stepper_y]
  26. # MOTOR1
  27. step_pin: PG0
  28. dir_pin: PG1
  29. enable_pin: !PF15
  30. microsteps: 256
  31. rotation_distance: 40
  32. endstop_pin: ^PG9  # DIAG1
  33. position_endstop: 260
  34. position_max: 260
  35. homing_speed: 50
  36. homing_retract_dist: 0
  37.  
  38. [stepper_z]
  39. # MOTOR2
  40. step_pin: PF11
  41. dir_pin: !PG3
  42. enable_pin: !PG5
  43. microsteps: 16
  44. rotation_distance: 8
  45. homing_positive_dir: false
  46. #endstop_pin: ^PG10  # DIAG2           # disable to use BLTouch
  47. # position_endstop: 0.0               # disable to use BLTouch
  48. endstop_pin: probe:z_virtual_endstop  # enable to use BLTouch
  49. position_min: -5                      # enable to use BLTouch
  50. position_max: 350
  51. homing_retract_dist: 0
  52.  
  53. #[stepper_z2]
  54. # MOTOR3
  55. #step_pin: PG4
  56. #dir_pin: PC1
  57. #enable_pin: !PA0
  58. #...
  59.  
  60. [safe_z_home]                         # enable for BLTouch
  61. home_xy_position: 150.7, 137
  62. speed: 100
  63. z_hop: 10
  64. z_hop_speed: 5
  65.  
  66. [bltouch]                             # enable for BLTouch
  67. sensor_pin: ^PB7
  68. control_pin: PB6
  69. x_offset: -20.7
  70. y_offset: -7
  71. #z_offset: 1.786
  72. speed: 3.0
  73.  
  74. [bed_mesh]                            # enable for BLTouch
  75. speed: 100
  76. mesh_min: 10, 10
  77. mesh_max: 239, 239
  78. algorithm: bicubic
  79. probe_count: 5, 5
  80.  
  81. [extruder]
  82. # MOTOR4
  83. step_pin: PF9
  84. dir_pin: !PF10
  85. enable_pin: !PG2
  86. microsteps: 16
  87. full_steps_per_rotation:200
  88. gear_ratio: 50:17
  89. rotation_distance: 20.730             # changed for 454 mm/s
  90. nozzle_diameter: 0.400
  91. filament_diameter: 1.750
  92. max_extrude_only_distance: 1000.0
  93. heater_pin: PA2  #HE0
  94. sensor_type: EPCOS 100K B57560G104F
  95. sensor_pin: PF4  # T0
  96. #control: pid
  97. #pid_Kp: 16.396                        # changed for Dragonfly
  98. #pid_Ki: 0.729
  99. #pid_Kd: 92.228
  100. min_temp: 0
  101. max_temp: 350
  102.  
  103. #[extruder1]
  104. # MOTOR5
  105. #step_pin: PC13
  106. #dir_pin: PF0
  107. #enable_pin: !PF1
  108. #heater_pin: PA3  # HE1
  109. #sensor_pin: PF5
  110. #...
  111.  
  112. #[extruder2]
  113. # MOTOR6
  114. #step_pin: PE2
  115. #dir_pin: PE3
  116. #enable_pin: !PD4
  117. #heater_pin: PB10  # HE2
  118. #sensor_pin: PF6
  119. #...
  120.  
  121. [heater_generic heater_chamber]
  122. gcode_id: C
  123. heater_pin: PB10  #HE2
  124. max_power: 1
  125. sensor_type: EPCOS 100K B57560G104F
  126. sensor_pin: PF6
  127. #smooth_time:
  128. control: pid
  129. pid_Kp: 54.027
  130. pid_Ki: 0.770
  131. pid_Kd: 948.182
  132. pwm_cycle_time: 0.3
  133. min_temp: 0
  134. max_temp: 60
  135.  
  136. [verify_heater heater_chamber]
  137. max_error: 120
  138. check_gain_time: 120
  139. hysteresis: 5
  140. heating_gain: 0.1
  141.  
  142. #[extruder3]
  143. # MOTOR7
  144. #step_pin: PE6
  145. #dir_pin: PA14
  146. #enable_pin: !PE0
  147. #heater_pin: PB11  # HE3
  148. #sensor_pin: PF7
  149. #...
  150.  
  151. [heater_bed]
  152. heater_pin: PA1
  153. sensor_type: EPCOS 100K B57560G104F
  154. sensor_pin: PF3
  155. #control: pid
  156. #pid_Kp: 69.794
  157. #pid_Ki: 0.965
  158. #pid_Kd: 1261.522
  159. min_temp: 0
  160. max_temp: 110
  161.  
  162. [temperature_sensor mcu_sensor]
  163. sensor_type: temperature_mcu
  164. sensor_mcu: mcu
  165.  
  166. [temperature_sensor ambient]
  167. sensor_type: EPCOS 100K B57560G104F
  168. sensor_pin: PF7
  169.  
  170. [fan]
  171. pin: PA8  # FAN0
  172.  
  173. [heater_fan extruder_fan]
  174. pin: PE5  # FAN1
  175. heater: extruder
  176. heater_temp: 50.0
  177. fan_speed: 1.0
  178.  
  179. #[heater_fan fan2]
  180. #pin: PD12  # FAN2
  181.  
  182. [controller_fan motherboard_fan]
  183. pin: PD13 # FAN3
  184. stepper: stepper_x, stepper_y, stepper_z, extruder
  185. fan_speed: 1.0
  186. idle_timeout: 60
  187.  
  188. [heater_fan chamber_fan]
  189. pin: PD14  # FAN4
  190. max_power: 0.5
  191. shutdown_speed: 0.0
  192. heater: heater_chamber
  193. heater_temp: 35
  194. fan_speed: 0.0
  195.  
  196. #[heater_fan fan5]
  197. #pin: PD15 # FAN5
  198.  
  199. [temperature_fan raspberry_pi]
  200. sensor_type: temperature_host
  201. pin: PD15
  202. max_power: 0.3
  203. shutdown_speed: 0.0
  204. target_temp: 40
  205. control: watermark
  206. min_temp: 0
  207. max_temp: 70
  208.  
  209. [filament_switch_sensor e0_sensor]
  210. switch_pin: PG12
  211.  
  212. [mcu]
  213. serial: /dev/ttyAMA0
  214. baud: 250000
  215. restart_method: command
  216. #serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_2B003A000647393438343535-if00
  217. #canbus_uuid: 45e6cc46be68
  218.  
  219. [printer]
  220. kinematics: corexy
  221. max_velocity: 500
  222. max_accel: 2000
  223. max_z_velocity: 10
  224. max_z_accel: 100
  225.  
  226. [board_pins]
  227. aliases:
  228.     # EXP1 header
  229.     EXP1_1=PE8, EXP1_2=PE7,
  230.     EXP1_3=PE9, EXP1_4=PE10,
  231.     EXP1_5=PE12, EXP1_6=PE13,    # Slot in the socket on this side
  232.     EXP1_7=PE14, EXP1_8=PE15,
  233.     EXP1_9=<GND>, EXP1_10=<5V>,
  234.  
  235.     # EXP2 header
  236.     EXP2_1=PA6, EXP2_2=PA5,
  237.     EXP2_3=PB1, EXP2_4=PA4,
  238.     EXP2_5=PB2, EXP2_6=PA7,      # Slot in the socket on this side
  239.     EXP2_7=PC15, EXP2_8=<RST>,
  240.     EXP2_9=<GND>, EXP2_10=<5V>
  241.  
  242. #[display]
  243. #lcd_type: st7920
  244. #cs_pin: EXP1_4
  245. #sclk_pin: EXP1_5
  246. #sid_pin: EXP1_3
  247. #encoder_pins: ^EXP2_5, ^EXP2_3
  248. #click_pin: ^!EXP1_2
  249.  
  250. [tmc2209 stepper_x]
  251. uart_pin: PC4
  252. run_current: 0.800
  253. #stealthchop_threshold: 999999
  254.  
  255. [tmc2209 stepper_y]
  256. uart_pin: PD11
  257. run_current: 0.800
  258. #stealthchop_threshold: 999999
  259.  
  260. [tmc2209 stepper_z]
  261. uart_pin: PC6
  262. run_current: 0.800
  263. #stealthchop_threshold: 999999
  264.  
  265. #[tmc2209 stepper_z2]
  266. #uart_pin: PC7
  267. #run_current: 0.600
  268. #stealthchop_threshold: 999999
  269.  
  270. [tmc2209 extruder]
  271. uart_pin: PF2
  272. run_current: 0.700
  273. #stealthchop_threshold: 999999
  274.  
  275. #[tmc2209 extruder1]
  276. #uart_pin: PE4
  277. #run_current: 0.600
  278. #stealthchop_threshold: 999999
  279.  
  280. #[tmc2209 extruder2]
  281. #uart_pin: PE1
  282. #run_current: 0.600
  283. #stealthchop_threshold: 999999
  284.  
  285. #[tmc2209 extruder3]
  286. #uart_pin: PD3
  287. #run_current: 0.600
  288. #stealthchop_threshold: 999999
  289.  
  290. [neopixel LED_pin]
  291. pin: PB0
  292. chain_count: 40
  293. color_order: GRB
  294. initial_RED: 0
  295. initial_GREEN: 0.5
  296. initial_BLUE: 0.5
  297. #initial_WHITE: 1.0
  298.  
  299. [include mainsail.cfg]
  300.  
  301. #*# <---------------------- SAVE_CONFIG ---------------------->
  302. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  303. #*#
  304. #*# [bltouch]
  305. #*# z_offset = 2.300
  306. #*#
  307. #*# [heater_bed]
  308. #*# control = pid
  309. #*# pid_kp = 69.278
  310. #*# pid_ki = 0.950
  311. #*# pid_kd = 1262.583
  312. #*#
  313. #*# [extruder]
  314. #*# control = pid
  315. #*# pid_kp = 16.800
  316. #*# pid_ki = 0.767
  317. #*# pid_kd = 91.980
  318. #*#
  319. #*# [bed_mesh default]
  320. #*# version = 1
  321. #*# points =
  322. #*#       0.227500, 0.355000, 0.387500, 0.145000, -0.207500
  323. #*#       0.192500, 0.227500, 0.270000, 0.135000, -0.040000
  324. #*#       0.065000, 0.055000, 0.095000, 0.052500, 0.035000
  325. #*#       -0.085000, -0.122500, -0.092500, -0.082500, 0.020000
  326. #*#       -0.270000, -0.335000, -0.272500, -0.182500, 0.017500
  327. #*# tension = 0.2
  328. #*# min_x = 10.0
  329. #*# algo = bicubic
  330. #*# y_count = 5
  331. #*# mesh_y_pps = 2
  332. #*# min_y = 10.0
  333. #*# x_count = 5
  334. #*# max_y = 239.0
  335. #*# mesh_x_pps = 2
  336. #*# max_x = 239.0
  337.  
Add Comment
Please, Sign In to add comment