Advertisement
UnaClocker

printer.cfg

Aug 4th, 2022
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.80 KB | None | 0 0
  1. # Mainsail settings
  2. [include mainsail.cfg]
  3.  
  4. # Other settings..
  5. # This file contains common pin mappings for the BigTreeTech OctoPus V1.
  6. # To use this config, the firmware should be compiled for the STM32F446 with a "32KiB bootloader"
  7. # Enable "extra low-level configuration options" and select the "12MHz crystal" as clock reference
  8.  
  9. # after running "make", copy the generated "klipper/out/klipper.bin" file to a
  10. # file named "firmware.bin" on an SD card and then restart the OctoPus with that SD card.
  11.  
  12. # See docs/Config_Reference.md for a description of parameters.
  13.  
  14. [stepper_x]
  15. step_pin: PF13
  16. dir_pin: !PF12
  17. enable_pin: !PF14
  18. microsteps: 16
  19. rotation_distance: 40
  20. endstop_pin: ^PG6
  21. position_endstop: 0
  22. position_max: 420
  23. homing_speed: 50
  24.  
  25. [stepper_y]
  26. step_pin: PG0
  27. dir_pin: !PG1
  28. enable_pin: !PF15
  29. microsteps: 16
  30. rotation_distance: 40
  31. endstop_pin: PG9
  32. position_endstop: -1.5
  33. position_min: -1.5
  34. position_max: 420
  35. homing_speed: 50
  36.  
  37. [stepper_z]
  38. step_pin: PG4 #PF11
  39. dir_pin: PC1 #PG3
  40. enable_pin: !PA0 #!PG5
  41. microsteps: 16
  42. rotation_distance: 8
  43. endstop_pin: probe:z_virtual_endstop
  44. #position_endstop: 0
  45. position_min: -1.5
  46. position_max: 450
  47. homing_speed: 10
  48. second_homing_speed: 1
  49.  
  50. [stepper_z1]
  51. step_pin: PF11 #PG4
  52. dir_pin: PG3 #PC1
  53. enable_pin: !PG5 #!PA0
  54. microsteps: 16
  55. rotation_distance: 8
  56. #endstop_pin: probe:z_virtual_endstop
  57. #position_endstop: 0
  58. #position_max: 220
  59. #homing_speed: 10
  60. #second_homing_speed: 1
  61.  
  62. [extruder]
  63. step_pin: PF9
  64. dir_pin: !PF10
  65. enable_pin: !PG2
  66. heater_pin: PA2 # HE0
  67. sensor_pin: PF4
  68. microsteps: 16
  69. rotation_distance: 3.5028
  70. pressure_advance = .055
  71. # Measure 120mm, then extrude 100mm
  72. # G1 E100 F100
  73. # rotation_distance = old_rotation * ((120 - distance_to_mark) / 100)
  74. nozzle_diameter: 0.400
  75. filament_diameter: 1.750
  76. max_extrude_only_distance: 110
  77. sensor_type: EPCOS 100K B57560G104F
  78. #control: pid
  79. #pid_Kp: 22.2
  80. #pid_Ki: 1.08
  81. #pid_Kd: 144.00
  82. min_temp: 0
  83. max_temp: 290
  84.  
  85. [tmc2209 extruder]
  86. uart_pin: PF2
  87. run_current: 0.800
  88. hold_current: 0.500
  89. stealthchop_threshold: 999999
  90.  
  91.  
  92. [heater_bed]
  93. heater_pin: PA1
  94. sensor_pin: PF5
  95. sensor_type: EPCOS 100K B57560G104F
  96. #control: pid
  97. #pid_Kp: 109.81
  98. #pid_Ki: 18.80
  99. #pid_Kd: 427.51
  100. min_temp: 0
  101. max_temp: 130
  102.  
  103. [fan]
  104. pin: PA8 # FAN0 PE5
  105.  
  106. [heater_fan fan1]
  107. pin: PE5 # FAN1 PA8
  108.  
  109. [controller_fan fan2]
  110. pin: PD12 # FAN2 PD12
  111.  
  112. #[heater_fan fan3]
  113. #pin: PD13 # FAN3
  114.  
  115. #[heater_fan fan4]
  116. #pin: PD14 # FAN4
  117.  
  118. #[heater_fan fan5]
  119. #pin: PD15 # FAN5
  120.  
  121. [temperature_sensor mcu_temp]
  122. sensor_type: temperature_mcu
  123.  
  124. [mcu]
  125. serial: /dev/ttyAMA0
  126. restart_method: command
  127. # setup for PA9, PA10 USART1_tx / rx directly connected to the RPI GPIO TX / RX pins
  128. # These are the pins the OctoPus uses for its built in RPI 40 pin connector
  129. # only connect GND, TX, RX - supply 5v power to the RPI separately
  130. # do not cross over TX/RX - it is done internally on the OctoPus PCB.
  131. # Use "sudo raspi-config" to disable the serial terminal - but enable the serial port.
  132. # When running "make menuconfig" you must un-select the USB Serial check box
  133.  
  134. [printer]
  135. kinematics: cartesian
  136. max_velocity: 500
  137. max_accel: 3500
  138. max_z_velocity: 12
  139. max_z_accel: 5
  140.  
  141. [bltouch]
  142. sensor_pin: ^PB7
  143. control_pin: PB6
  144. x_offset: -40
  145. z_offset: 1.35
  146.  
  147. #[input_shaper]
  148. # Not ready yet. Need the ADXL sensor.
  149. #shaper_freq_x: 104.2
  150. #shaper_freq_y: 64.12
  151.  
  152.  
  153. [safe_z_home]
  154. home_xy_position: 250, 200 # Change coordinates to the center of your print bed
  155. speed: 50
  156. z_hop: 10 # Move up 10mm
  157. z_hop_speed: 5
  158.  
  159. [bed_mesh]
  160. speed: 50
  161. # The speed (in mm/s) of non-probing moves during the calibration.
  162. # The default is 50.
  163. horizontal_move_z: 8
  164. # The height (in mm) that the head should be commanded to move to
  165. # just prior to starting a probe operation. The default is 5.
  166. #mesh_radius:
  167. # Defines the radius of the mesh to probe for round beds. Note that
  168. # the radius is relative to the coordinate specified by the
  169. # mesh_origin option. This parameter must be provided for round beds
  170. # and omitted for rectangular beds.
  171. #mesh_origin:
  172. # Defines the center X, Y coordinate of the mesh for round beds. This
  173. # coordinate is relative to the probe's location. It may be useful
  174. # to adjust the mesh_origin in an effort to maximize the size of the
  175. # mesh radius. Default is 0, 0. This parameter must be omitted for
  176. # rectangular beds.
  177. mesh_min: 15,20
  178. # Defines the minimum X, Y coordinate of the mesh for rectangular
  179. # beds. This coordinate is relative to the probe's location. This
  180. # will be the first point probed, nearest to the origin. This
  181. # parameter must be provided for rectangular beds.
  182. mesh_max: 360,380
  183. # Defines the maximum X, Y coordinate of the mesh for rectangular
  184. # beds. Adheres to the same principle as mesh_min, however this will
  185. # be the furthest point probed from the bed's origin. This parameter
  186. # must be provided for rectangular beds.
  187. probe_count: 6
  188. # For rectangular beds, this is a comma separate pair of integer
  189. # values X, Y defining the number of points to probe along each
  190. # axis. A single value is also valid, in which case that value will
  191. # be applied to both axes. Default is 3, 3.
  192. #round_probe_count: 5
  193. # For round beds, this integer value defines the maximum number of
  194. # points to probe along each axis. This value must be an odd number.
  195. # Default is 5.
  196. fade_start: 1.0
  197. # The gcode z position in which to start phasing out z-adjustment
  198. # when fade is enabled. Default is 1.0.
  199. fade_end: 0
  200. # The gcode z position in which phasing out completes. When set to a
  201. # value below fade_start, fade is disabled. It should be noted that
  202. # fade may add unwanted scaling along the z-axis of a print. If a
  203. # user wishes to enable fade, a value of 10.0 is recommended.
  204. # Default is 0.0, which disables fade.
  205. #fade_target:
  206. # The z position in which fade should converge. When this value is
  207. # set to a non-zero value it must be within the range of z-values in
  208. # the mesh. Users that wish to converge to the z homing position
  209. # should set this to 0. Default is the average z value of the mesh.
  210. #split_delta_z: .025
  211. # The amount of Z difference (in mm) along a move that will trigger
  212. # a split. Default is .025.
  213. #move_check_distance: 5.0
  214. # The distance (in mm) along a move to check for split_delta_z.
  215. # This is also the minimum length that a move can be split. Default
  216. # is 5.0.
  217. #mesh_pps: 2, 2
  218. # A comma separated pair of integers X, Y defining the number of
  219. # points per segment to interpolate in the mesh along each axis. A
  220. # "segment" can be defined as the space between each probed point.
  221. # The user may enter a single value which will be applied to both
  222. # axes. Default is 2, 2.
  223. algorithm: lagrange
  224. # The interpolation algorithm to use. May be either "lagrange" or
  225. # "bicubic". This option will not affect 3x3 grids, which are forced
  226. # to use lagrange sampling. Default is lagrange.
  227. #bicubic_tension: .2
  228. # When using the bicubic algorithm the tension parameter above may
  229. # be applied to change the amount of slope interpolated. Larger
  230. # numbers will increase the amount of slope, which results in more
  231. # curvature in the mesh. Default is .2.
  232. #relative_reference_index:
  233. # A point index in the mesh to reference all z values to. Enabling
  234. # this parameter produces a mesh relative to the probed z position
  235. # at the provided index.
  236. #faulty_region_1_min:
  237. #faulty_region_1_max:
  238. # Optional points that define a faulty region. See docs/Bed_Mesh.md
  239. # for details on faulty regions. Up to 99 faulty regions may be added.
  240. # By default no faulty regions are set.
  241.  
  242. [z_tilt]
  243. z_positions: 60,200
  244. 400,200
  245. # A list of X, Y coordinates (one per line; subsequent lines
  246. # indented) describing the location of each bed "pivot point". The
  247. # "pivot point" is the point where the bed attaches to the given Z
  248. # stepper. It is described using nozzle coordinates (the X, Y position
  249. # of the nozzle if it could move directly above the point). The
  250. # first entry corresponds to stepper_z, the second to stepper_z1,
  251. # the third to stepper_z2, etc. This parameter must be provided.
  252. points: 60,200
  253. 400,200
  254. # A list of X, Y coordinates (one per line; subsequent lines
  255. # indented) that should be probed during a Z_TILT_ADJUST command.
  256. # Specify coordinates of the nozzle and be sure the probe is above
  257. # the bed at the given nozzle coordinates. This parameter must be
  258. # provided.
  259. speed: 100
  260. # The speed (in mm/s) of non-probing moves during the calibration.
  261. # The default is 50.
  262. horizontal_move_z: 5
  263. # The height (in mm) that the head should be commanded to move to
  264. # just prior to starting a probe operation. The default is 5.
  265. retries: 10
  266. # Number of times to retry if the probed points aren't within
  267. # tolerance.
  268. retry_tolerance: 0.01
  269. # If retries are enabled then retry if largest and smallest probed
  270. # points differ more than retry_tolerance. Note the smallest unit of
  271. # change here would be a single step. However if you are probing
  272. # more points than steppers then you will likely have a fixed
  273. # minimum value for the range of probed points which you can learn
  274. # by observing command output.
  275.  
  276. [idle_timeout]
  277. #gcode:
  278. # A list of G-Code commands to execute on an idle timeout. See
  279. # docs/Command_Templates.md for G-Code format. The default is to run
  280. # "TURN_OFF_HEATERS" and "M84".
  281. timeout: 600
  282. # Idle time (in seconds) to wait before running the above G-Code
  283. # commands. The default is 600 seconds.
  284.  
  285. [gcode_arcs]
  286. #resolution: 1.0
  287. # An arc will be split into segments. Each segment's length will
  288. # equal the resolution in mm set above. Lower values will produce a
  289. # finer arc, but also more work for your machine. Arcs smaller than
  290. # the configured value will become straight lines. The default is
  291. # 1mm.
  292.  
  293.  
  294. ########################################
  295. # TMC2208 configuration
  296. ########################################
  297.  
  298. [tmc2209 stepper_x]
  299. uart_pin: PC4
  300. run_current: 0.800
  301. hold_current: 0.500
  302. stealthchop_threshold: 999999
  303.  
  304. [tmc2209 stepper_y]
  305. uart_pin: PD11
  306. run_current: 0.800
  307. hold_current: 0.500
  308. stealthchop_threshold: 999999
  309.  
  310. [tmc2209 stepper_z]
  311. uart_pin: PC6
  312. run_current: 0.650
  313. hold_current: 0.450
  314. stealthchop_threshold: 999999
  315.  
  316. [tmc2209 stepper_z1]
  317. uart_pin: PC7
  318. run_current: 0.650
  319. hold_current: 0.450
  320. stealthchop_threshold: 999999
  321.  
  322.  
  323. #[tmc2208 extruder3]
  324. #uart_pin: PE1
  325. #run_current: 0.8
  326. #hold_current: 0.5
  327. #stealthchop_threshold: 999999
  328.  
  329. #[tmc2208 extruder4]
  330. #uart_pin: PD3
  331. #run_current: 0.8
  332. #hold_current: 0.5
  333. #stealthchop_threshold: 999999
  334.  
  335.  
  336. ########################################
  337. # TMC2130 configuration
  338. ########################################
  339.  
  340. #[tmc2130 stepper_x]
  341. #cs_pin: PC4
  342. #run_current: 0.800
  343. #hold_current: 0.500
  344. #stealthchop_threshold: 0
  345. #spi_software_mosi_pin: PA7
  346. #spi_software_miso_pin: PA6
  347. #spi_software_sclk_pin: PA5
  348.  
  349. #[tmc2130 stepper_y]
  350. #cs_pin: PD11
  351. #run_current: 0.800
  352. #hold_current: 0.500
  353. #stealthchop_threshold: 0
  354. #spi_software_mosi_pin: PA7
  355. #spi_software_miso_pin: PA6
  356. #spi_software_sclk_pin: PA5
  357.  
  358. #[tmc2130 stepper_z]
  359. #cs_pin: PC6
  360. #run_current: 0.800
  361. #hold_current: 0.500
  362. #stealthchop_threshold: 0
  363. #spi_software_mosi_pin: PA7
  364. #spi_software_miso_pin: PA6
  365. #spi_software_sclk_pin: PA5
  366.  
  367. #[tmc2130 extruder]
  368. #cs_pin: PC7
  369. #run_current: 0.800
  370. #hold_current: 0.500
  371. #stealthchop_threshold: 0
  372. #spi_software_mosi_pin: PA7
  373. #spi_software_miso_pin: PA6
  374. #spi_software_sclk_pin: PA5
  375.  
  376. #[tmc2130 extruder1]
  377. #cs_pin: PF2
  378. #run_current: 0.800
  379. #hold_current: 0.500
  380. #stealthchop_threshold: 0
  381. #spi_software_mosi_pin: PA7
  382. #spi_software_miso_pin: PA6
  383. #spi_software_sclk_pin: PA5
  384.  
  385. #[tmc2130 extruder2]
  386. #cs_pin: PE4
  387. #run_current: 0.800
  388. #hold_current: 0.500
  389. #stealthchop_threshold: 0
  390. #spi_software_mosi_pin: PA7
  391. #spi_software_miso_pin: PA6
  392. #spi_software_sclk_pin: PA5
  393.  
  394. #[tmc2130 extruder3]
  395. #cs_pin: PE1
  396. #run_current: 0.800
  397. #hold_current: 0.500
  398. #stealthchop_threshold: 0
  399. #spi_software_mosi_pin: PA7
  400. #spi_software_miso_pin: PA6
  401. #spi_software_sclk_pin: PA5
  402.  
  403.  
  404. #[tmc2130 extruder4]
  405. #cs_pin: PD3
  406. #run_current: 0.800
  407. #hold_current: 0.500
  408. #stealthchop_threshold: 0
  409. #spi_software_mosi_pin: PA7
  410. #spi_software_miso_pin: PA6
  411. #spi_software_sclk_pin: PA5
  412.  
  413. ########################################
  414. # EXP1 / EXP2 (display) pins
  415. ########################################
  416.  
  417. [board_pins]
  418. aliases:
  419. # EXP1 header
  420. EXP1_1=PE8, EXP1_2=PE7,
  421. EXP1_3=PE9, EXP1_4=PE10,
  422. EXP1_5=PE12, EXP1_6=PE13, # Slot in the socket on this side
  423. EXP1_7=PE14, EXP1_8=PE15,
  424. EXP1_9=<GND>, EXP1_10=<5V>,
  425.  
  426. # EXP2 header
  427. EXP2_1=PA6, EXP2_2=PA5,
  428. EXP2_3=PB1, EXP2_4=PA4,
  429. EXP2_5=PB2, EXP2_6=PA7, # Slot in the socket on this side
  430. EXP2_7=PC15, EXP2_8=<RST>,
  431. EXP2_9=<GND>, EXP2_10=<5V>
  432.  
  433. # See the sample-lcd.cfg file for definitions of common LCD displays.
  434.  
  435. ######################################################################
  436. # "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
  437. ######################################################################
  438.  
  439. [display]
  440. lcd_type: st7920
  441. cs_pin: EXP1_7
  442. sclk_pin: EXP1_6
  443. sid_pin: EXP1_8
  444. encoder_pins: ^EXP1_5, ^EXP1_3
  445. click_pin: ^!EXP1_2
  446.  
  447. [output_pin beeper]
  448. pin: EXP1_1
  449.  
  450.  
  451. ######################################################################
  452. # "RepRapDiscount 2004 Smart Controller" type displays
  453. ######################################################################
  454.  
  455. #[display]
  456. #lcd_type: hd44780
  457. #rs_pin: EXP1_4
  458. #e_pin: EXP1_3
  459. #d4_pin: EXP1_5
  460. #d5_pin: EXP1_6
  461. #d6_pin: EXP1_7
  462. #d7_pin: EXP1_8
  463. #encoder_pins: ^EXP2_3, ^EXP2_5
  464. #click_pin: ^!EXP1_2
  465. #kill_pin: ^!EXP2_8
  466.  
  467. #[output_pin beeper]
  468. #pin: EXP1_1
  469.  
  470. ######################################################################
  471. # Mini 12864Panel (with neopixel backlight leds)
  472. ######################################################################
  473.  
  474. #[display]
  475. #lcd_type: uc1701
  476. #cs_pin: EXP1_3
  477. #a0_pin: EXP1_4
  478. #rst_pin: EXP1_5
  479. #encoder_pins: ^EXP2_5, ^EXP2_3
  480. #click_pin: ^!EXP1_2
  481. ## Some micro-controller boards may require an spi bus to be specified:
  482. #spi_bus: spi
  483. ## Alternatively, some micro-controller boards may work with software spi:
  484. #contrast: 63
  485. #spi_software_mosi_pin: PA7
  486. #spi_software_miso_pin: PA6
  487. #spi_software_sclk_pin: PA5
  488.  
  489. #[output_pin beeper]
  490. #pin: EXP1_1
  491.  
  492. #[neopixel btt_mini12864]
  493. #pin: EXP1_6
  494. #chain_count: 3
  495. #color_order: RGB
  496. #initial_RED: 0.4
  497. #initial_GREEN: 0.4
  498. #initial_BLUE: 0.4
  499.  
  500. ######################################################################
  501. # BigTreeTtech TFT TouchSCreen emulated 12864 mode
  502. ######################################################################
  503.  
  504. #[display]
  505. #lcd_type: emulated_st7920
  506. #spi_software_miso_pin: PA6
  507. #spi_software_mosi_pin: EXP1_3
  508. #spi_software_sclk_pin: EXP1_5
  509. #en_pin: EXP1_4
  510. #encoder_pins: ^EXP2_5, ^EXP2_3
  511. #click_pin: ^!EXP1_2
  512.  
  513. #[output_pin beeper]
  514. #pin: EXP1_1
  515.  
  516. #*# <---------------------- SAVE_CONFIG ---------------------->
  517. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  518. #*#
  519. #*# [extruder]
  520. #*# control = pid
  521. #*# pid_kp = 20.975
  522. #*# pid_ki = 0.926
  523. #*# pid_kd = 118.770
  524. #*#
  525. #*# [heater_bed]
  526. #*# control = pid
  527. #*# pid_kp = 41.863
  528. #*# pid_ki = 0.422
  529. #*# pid_kd = 1039.243
  530. #*#
  531. #*# [bltouch]
  532. #*#
  533. #*# [bed_mesh default]
  534. #*# version = 1
  535. #*# points =
  536. #*# 0.285000, 0.110000, -0.027500, 0.247500, 0.337500, 0.117500
  537. #*# 0.477500, -0.025000, -0.197500, 0.220000, 0.452500, 0.165000
  538. #*# 0.392500, -0.122500, -0.290000, 0.145000, 0.470000, 0.222500
  539. #*# 0.257500, -0.205000, -0.347500, 0.127500, 0.515000, 0.255000
  540. #*# 0.330000, 0.010000, -0.107500, 0.335000, 0.627500, 0.310000
  541. #*# 0.402500, 0.117500, 0.027500, 0.345000, 0.500000, 0.167500
  542. #*# tension = 0.2
  543. #*# min_x = 15.0
  544. #*# algo = lagrange
  545. #*# y_count = 6
  546. #*# mesh_y_pps = 2
  547. #*# min_y = 20.0
  548. #*# x_count = 6
  549. #*# max_y = 380.0
  550. #*# mesh_x_pps = 2
  551. #*# max_x = 360.0
  552.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement