Guest User

Untitled

a guest
Jun 27th, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.16 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.  
  6. [force_move]
  7. enable_force_move: True
  8. [include mainsail.cfg]
  9. [include purge.cfg]
  10. [exclude_object]
  11. [virtual_sdcard]
  12. path: ~/printer_data/gcodes
  13. [display_status]
  14. [pause_resume]
  15. [mcu]
  16. ## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
  17. ##--------------------------------------------------------------------
  18. serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_300023001450535556323420-if00
  19. restart_method: command
  20. ##--------------------------------------------------------------------
  21.  
  22.  
  23. [printer]
  24. kinematics: corexy
  25. max_velocity: 250
  26. max_accel: 3000 #Max 4000
  27. max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V
  28. max_z_accel: 350
  29. square_corner_velocity: 5.0
  30.  
  31. [beacon]
  32. serial: /dev/serial/by-id/usb-Beacon_Beacon_RevH_BF8C39D55154354D38202020FF0A392E-if00
  33. x_offset: 0 # update with offset from nozzle on your machine
  34. y_offset: 27.3 # update with offset from nozzle on your machine
  35. mesh_main_direction:x
  36. mesh_runs: 2
  37. default_model_name: default
  38.  
  39. #####################################################################
  40. # X/Y Stepper Settings
  41. #####################################################################
  42.  
  43. ## B Stepper - Left
  44. ## Connected to MOTOR_0
  45. ## Endstop connected to DIAG_0
  46. [stepper_x]
  47. step_pin: PF13
  48. dir_pin: PF12
  49. enable_pin: !PF14
  50. rotation_distance: 40
  51. microsteps: 32
  52. full_steps_per_rotation:400
  53. endstop_pin: tmc2209_stepper_x:virtual_endstop #X_STOP
  54. position_min: 0
  55. position_endstop: 350
  56. position_max: 350
  57. homing_speed: 40 #50
  58. homing_retract_dist: 0
  59. homing_positive_dir: true
  60. ##--------------------------------------------------------------------
  61.  
  62.  
  63.  
  64. ## Uncomment for 350mm build
  65. position_endstop: 350
  66. position_max: 350
  67.  
  68. ##--------------------------------------------------------------------
  69. homing_speed: 25 #Max 100
  70. homing_retract_dist: 5
  71. homing_positive_dir: true
  72.  
  73. ## Make sure to update below for your relevant driver (2208 or 2209)
  74. [tmc2209 stepper_x]
  75. uart_pin: PC4
  76. interpolate: False
  77. run_current: 1
  78. sense_resistor: 0.110
  79. stealthchop_threshold: 0 #always on, 0 is off
  80. diag_pin: PG6 # use the same pin that was previously the endstop_pin!
  81. driver_SGTHRS: 82
  82.  
  83. ## A Stepper - Right
  84. ## Connected to MOTOR_1
  85. ## Endstop connected to DIAG_1
  86. [stepper_y]
  87. step_pin: PG0
  88. dir_pin: PG1
  89. enable_pin: !PF15
  90. rotation_distance: 40
  91. microsteps: 32
  92. full_steps_per_rotation:400
  93. endstop_pin: tmc2209_stepper_y:virtual_endstop #Y_STOP
  94. position_min: 0
  95. position_endstop: 350
  96. position_max: 350
  97. homing_speed: 40 #50
  98. homing_retract_dist: 0
  99. homing_positive_dir: true
  100. ##--------------------------------------------------------------------
  101.  
  102.  
  103. ## Uncomment for 350mm build
  104. position_endstop: 350
  105. position_max: 350
  106.  
  107. ##--------------------------------------------------------------------
  108. homing_speed: 25 #Max 100
  109. homing_retract_dist: 5
  110. homing_positive_dir: true
  111.  
  112. ## Make sure to update below for your relevant driver (2208 or 2209)
  113. [tmc2209 stepper_y]
  114. uart_pin: PD11
  115. interpolate: False
  116. run_current: 1
  117. sense_resistor: 0.110
  118. stealthchop_threshold: 0
  119. diag_pin: PG9 # use the same pin that was previously the endstop_pin!
  120. driver_SGTHRS: 89 #255 is most sensitive value, 0 is least sensitive
  121.  
  122. #####################################################################
  123. # Z Stepper Settings
  124. #####################################################################
  125.  
  126. ## Z0 Stepper - Front Left
  127. ## Connected to MOTOR_2
  128. ## Endstop connected to DIAG_2
  129. [stepper_z]
  130. step_pin: PE6
  131. dir_pin: PA14
  132. enable_pin: !PE0
  133. rotation_distance: 40
  134. gear_ratio: 80:16
  135. microsteps: 32
  136. endstop_pin: probe:z_virtual_endstop
  137. homing_retract_dist: 0 # beacon needs this to be set to 0
  138. ## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
  139. ## (+) value = endstop above Z0, (-) value = endstop below
  140. ## Increasing position_endstop brings nozzle closer to the bed
  141. ## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
  142. #position_endstop: -0.5
  143. ##--------------------------------------------------------------------
  144.  
  145. ## Uncomment below for 350mm build
  146. position_max: 310
  147.  
  148. ##--------------------------------------------------------------------
  149. position_min: -5
  150. homing_speed: 8
  151. second_homing_speed: 3
  152. homing_retract_dist: 3
  153.  
  154. ## Make sure to update below for your relevant driver (2208 or 2209)
  155. [tmc2209 stepper_z]
  156. uart_pin: PD3
  157. interpolate: false
  158. run_current: 0.8
  159. sense_resistor: 0.110
  160. stealthchop_threshold: 0
  161.  
  162. ## Z1 Stepper - Rear Left
  163. ## Connected to MOTOR_3
  164. [stepper_z1]
  165. step_pin: PG4
  166. dir_pin: !PC1
  167. enable_pin: !PA0
  168. rotation_distance: 40
  169. gear_ratio: 80:16
  170. microsteps: 32
  171.  
  172. ## Make sure to update below for your relevant driver (2208 or 2209)
  173. [tmc2209 stepper_z1]
  174. uart_pin: PC7
  175. interpolate: false
  176. run_current: 0.8
  177. sense_resistor: 0.110
  178. stealthchop_threshold: 0
  179.  
  180. ## Z2 Stepper - Rear Right
  181. ## Connected to MOTOR_4
  182. [stepper_z2]
  183. step_pin: PF9
  184. dir_pin: PF10
  185. enable_pin: !PG2
  186. rotation_distance: 40
  187. gear_ratio: 80:16
  188. microsteps: 32
  189.  
  190. ## Make sure to update below for your relevant driver (2208 or 2209)
  191. [tmc2209 stepper_z2]
  192. uart_pin: PF2
  193. interpolate: false
  194. run_current: 0.8
  195. sense_resistor: 0.110
  196. stealthchop_threshold: 0
  197.  
  198. ## Z3 Stepper - Front Right
  199. ## Connected to MOTOR_5
  200. [stepper_z3]
  201. step_pin: PC13
  202. dir_pin: !PF0
  203. enable_pin: !PF1
  204. rotation_distance: 40
  205. gear_ratio: 80:16
  206. microsteps: 32
  207.  
  208. ## Make sure to update below for your relevant driver (2208 or 2209)
  209. [tmc2209 stepper_z3]
  210. uart_pin: PE4
  211. interpolate: false
  212. run_current: 0.8
  213. sense_resistor: 0.110
  214. stealthchop_threshold: 0
  215.  
  216.  
  217. #####################################################################
  218. # Extruder
  219. #####################################################################
  220.  
  221. ## Connected to MOTOR_6
  222. ## Heater - HE0
  223. ## Thermistor - T0
  224. [extruder]
  225. step_pin: gpio23
  226. dir_pin: gpio24
  227. enable_pin: gpio25
  228. ## Update value below when you perform extruder calibration
  229. ## If you ask for 100mm of filament, but in reality it is 98mm:
  230. ## rotation_distance = <previous_rotation_distance> * <actual_extrude_distance> / 100
  231. ## 22.6789511 is a good starting point
  232. rotation_distance: 22.6789511 #Bondtech 5mm Drive Gears
  233. ## Update Gear Ratio depending on your Extruder Type
  234. ## Use 50:10 for Stealthburner/Clockwork 2
  235. ## Use 50:17 for Afterburner/Clockwork (BMG Gear Ratio)
  236. ## Use 80:20 for M4, M3.1
  237. gear_ratio: 50:10 #BMG Gear Ratio
  238. microsteps: 32
  239. full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
  240. nozzle_diameter: 0.400
  241. filament_diameter: 1.75
  242. heater_pin: gpio9
  243. ## Check what thermistor type you have. See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types.
  244. ## Use "Generic 3950" for NTC 100k 3950 thermistors
  245. sensor_type: ATC Semitec 104NT-4-R025H42G
  246. sensor_pin: gpio29
  247. min_temp: 10
  248. max_temp: 270
  249. max_power: 1.0
  250. min_extrude_temp: 170
  251. control = pid
  252. pid_kp = 26.213
  253. pid_ki = 1.304
  254. pid_kd = 131.721
  255. ## Try to keep pressure_advance below 1.0
  256. #pressure_advance: 0.05
  257. ## Default is 0.040, leave stock
  258. #pressure_advance_smooth_time: 0.040
  259.  
  260. ## E0 on MOTOR6
  261. ## Make sure to update below for your relevant driver (2208 or 2209)
  262. [tmc2209 extruder]
  263. uart_pin: PE1
  264. interpolate: false
  265. run_current: 0.5
  266. sense_resistor: 0.110
  267. stealthchop_threshold: 0
  268.  
  269.  
  270.  
  271.  
  272.  
  273. #####################################################################
  274. # Bed Heater
  275. #####################################################################
  276.  
  277.  
  278. ## SSR Pin - HE1
  279. ## Thermistor - TB
  280. [heater_bed]
  281. heater_pin: PA1
  282. ## Validate the following thermistor type to make sure it is correct
  283. ## Keenovo branded bed heaters should use Generic 3950
  284. ## LDO branded bed heaters will have the sensor type labelled on the heater
  285. ## Check what thermistor type you have. See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types.
  286. ## Use "Generic 3950" for Keenovo heaters
  287. sensor_type: ATC Semitec 104NT-4-R025H42G
  288. sensor_pin: PF3
  289. ## Adjust Max Power so your heater doesn't warp your bed. Rule of thumb is 0.4 watts / cm^2 .
  290. max_power: 0.9
  291. min_temp: 0
  292. max_temp: 120
  293. control: pid
  294. pid_kp: 58.437
  295. pid_ki: 2.347
  296. pid_kd: 363.769
  297.  
  298. #####################################################################
  299. # Probe
  300. #####################################################################
  301.  
  302.  
  303. [bed_mesh]
  304. mesh_min = 30, 30
  305. mesh_max = 295, 295
  306. speed = 900
  307. horizontal_move_z = 2
  308. probe_count = 6,6
  309. algorithm = bicubic
  310. ##[(7x7)-1] / 2 = 24
  311. ##[(5x5)-1] / 2 = 12
  312. ##[(9x9)-1] / 2 = 40
  313. #relative_reference_index: 40
  314. zero_reference_position: 175, 175
  315. #relative_reference_index: 15
  316. split_delta_z = 0.0125
  317. move_check_distance = 3
  318. mesh_pps = 4,4
  319. fade_start = 0
  320. fade_end = 2
  321. fade_target = 0
  322.  
  323.  
  324.  
  325. #####################################################################
  326. # Fan Control
  327. #####################################################################
  328.  
  329. ## Print Cooling Fan - FAN0
  330. [fan]
  331. pin: gpio6
  332. kick_start_time: 0.5
  333. ## Depending on your fan, you may need to increase this value
  334. ## if your fan will not start. Can change cycle_time (increase)
  335. ## if your fan is not able to slow down effectively
  336. off_below: 0.10
  337.  
  338.  
  339. ## Hotend Fan - FAN1
  340. [heater_fan hotend_fan]
  341. pin: gpio5
  342. max_power: 1.0
  343. kick_start_time: 0.5
  344. heater: extruder
  345. heater_temp: 50.0
  346. ## If you are experiencing back flow, you can reduce fan_speed
  347. #fan_speed: 1.0
  348.  
  349. ## Controller fan - FAN2
  350. [controller_fan controller_fan]
  351. pin: PD12
  352. kick_start_time: 0.5
  353. heater: heater_bed
  354. fan_speed: 0.5
  355.  
  356. ## Exhaust fan - FAN3
  357. #[heater_fan exhaust_fan]
  358. #pin: PD13
  359. #max_power: 1.0
  360. #shutdown_speed: 0.0
  361. #kick_start_time: 5.0
  362. #heater: heater_bed
  363. #heater_temp: 60
  364. #fan_speed: 1.0
  365.  
  366. #####################################################################
  367. # LED Control
  368. #####################################################################
  369.  
  370. [output_pin caselight]
  371. ## Chamber Lighting - CNC_FAN5
  372. pin: PD15
  373. pwm:true
  374. shutdown_value: 0
  375. value:0
  376. cycle_time: 0.01
  377.  
  378. [neopixel headlight]
  379. ## Stealthburner lighting - RGB_LED
  380. pin: PB0
  381. chain_count: 3
  382. color_order: GRBW
  383. initial_RED: 0.0
  384. initial_GREEN: 0.0
  385. initial_BLUE: 0.0
  386. initial_WHITE: 0.0
  387.  
  388. #####################################################################
  389. # Additional Sensors
  390. #####################################################################
  391.  
  392.  
  393.  
  394. #####################################################################
  395. # Homing and Gantry Adjustment Routines
  396. #####################################################################
  397.  
  398. [idle_timeout]
  399. timeout: 1800
  400.  
  401. [safe_z_home]
  402. ## XY Location of the Z Endstop Switch
  403. ## Update -10,-10 to the XY coordinates of your endstop pin
  404. ## (such as 157,305) after going through Z Endstop Pin
  405. ## Location Definition step.
  406. home_xy_position:175,175
  407. speed:100
  408. z_hop:10
  409. z_hop_speed:10
  410.  
  411.  
  412. [resonance_tester]
  413. accel_chip: beacon
  414. probe_points: 90, 90, 20
  415.  
  416.  
  417. ## Use QUAD_GANTRY_LEVEL to level a gantry.
  418. ## Min & Max gantry corners - measure from nozzle at MIN (0,0) and
  419. ## MAX (250, 250), (300,300), or (350,350) depending on your printer size
  420. ## to respective belt positions
  421. [quad_gantry_level]
  422.  
  423. #--------------------------------------------------------------------
  424. ## Gantry Corners for 250mm Build
  425. ## Uncomment for 250mm build
  426. #gantry_corners:
  427. # -60,-10
  428. # 310, 320
  429. ## Probe points
  430. #points:
  431. # 50,25
  432. # 50,175
  433. # 200,175
  434. # 200,25
  435.  
  436. ## Gantry Corners for 300mm Build
  437. ## Uncomment for 300mm build
  438. #gantry_corners:
  439. # -60,-10
  440. # 360,370
  441. ## Probe points
  442. #points:
  443. # 50,25
  444. # 50,225
  445. # 250,225
  446. # 250,25
  447.  
  448. ## Gantry Corners for 350mm Build
  449. ## Uncomment for 350mm build
  450. gantry_corners:
  451. -60,-10
  452. 410,420
  453. ## Probe points
  454. points:
  455. 50,25
  456. 50,275
  457. 300,275
  458. 300,25
  459.  
  460. #--------------------------------------------------------------------
  461. speed: 100
  462. horizontal_move_z: 10
  463. retries: 5
  464. retry_tolerance: 0.0075
  465. max_adjust: 10
  466.  
  467. ########################################
  468. # EXP1 / EXP2 (display) pins
  469. ########################################
  470.  
  471. [board_pins]
  472. aliases:
  473. # EXP1 header
  474. EXP1_1=PE8, EXP1_2=PE7,
  475. EXP1_3=PE9, EXP1_4=PE10,
  476. EXP1_5=PE12, EXP1_6=PE13, # Slot in the socket on this side
  477. EXP1_7=PE14, EXP1_8=PE15,
  478. EXP1_9=<GND>, EXP1_10=<5V>,
  479.  
  480. # EXP2 header
  481. EXP2_1=PA6, EXP2_2=PA5,
  482. EXP2_3=PB1, EXP2_4=PA4,
  483. EXP2_5=PB2, EXP2_6=PA7, # Slot in the socket on this side
  484. EXP2_7=PC15, EXP2_8=<RST>,
  485. EXP2_9=<GND>, EXP2_10=<5V>
  486.  
  487. #####################################################################
  488. # Displays
  489. #####################################################################
  490.  
  491. [display]
  492. ## mini12864 LCD Display
  493. lcd_type: uc1701
  494. cs_pin: EXP1_3
  495. a0_pin: EXP1_4
  496. rst_pin: EXP1_5
  497. encoder_pins: ^EXP2_5, ^EXP2_3
  498. click_pin: ^!EXP1_2
  499. contrast: 63
  500. spi_software_miso_pin: EXP2_1
  501. spi_software_mosi_pin: EXP2_6
  502. spi_software_sclk_pin: EXP2_2
  503.  
  504. [neopixel btt_mini12864]
  505. ## To control Neopixel RGB in mini12864 display
  506. pin: EXP1_6
  507. chain_count: 3
  508. initial_RED: 0.1
  509. initial_GREEN: 0.5
  510. initial_BLUE: 0.0
  511. color_order: RGB
  512.  
  513. ### Set RGB values on boot up for each Neopixel.
  514. ### Index 1 = display, Index 2 and 3 = Knob
  515. [delayed_gcode setdisplayneopixel]
  516. initial_duration: 1
  517. gcode:
  518. SET_LED LED=btt_mini12864 RED=1 GREEN=1 BLUE=1 INDEX=1 TRANSMIT=0
  519. # SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0
  520. # SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3
  521.  
  522. #--------------------------------------------------------------------
  523.  
  524.  
  525. #####################################################################
  526. # Macros
  527. #####################################################################
  528.  
  529. [gcode_macro G32]
  530. gcode:
  531. SAVE_GCODE_STATE NAME=STATE_G32
  532. G90
  533. G28
  534. QUAD_GANTRY_LEVEL
  535. G28
  536. ## Uncomment for for your size printer:
  537. #--------------------------------------------------------------------
  538. ## Uncomment for 250mm build
  539. #G0 X125 Y125 Z30 F3600
  540.  
  541. ## Uncomment for 300 build
  542. #G0 X150 Y150 Z30 F3600
  543.  
  544. ## Uncomment for 350mm build
  545. G0 X175 Y175 Z30 F3600
  546. #--------------------------------------------------------------------
  547. RESTORE_GCODE_STATE NAME=STATE_G32
  548.  
  549.  
  550. # Use PRINT_START for the slicer starting script - please customise for your slicer of choice
  551. #####################################################################
  552. # print_start macro
  553. #####################################################################
  554.  
  555. ## *** THINGS TO UNCOMMENT: ***
  556. ## Bed mesh (2 lines at 2 locations)
  557. ## Z_TILT_ADJUST if your printer is a Trident
  558. ## Quad gantry level if your printer is a V2
  559. ## Nevermore - if you have one
  560.  
  561. [gcode_macro PRINT_START]
  562. gcode:
  563. # This part fetches data from your slicer. Such as bed temp, extruder temp, chamber temp and size of your printer.
  564. {% set target_bed = params.BED|int %}
  565. {% set target_extruder = params.EXTRUDER|int %}
  566. {% set target_chamber = params.CHAMBER|default("40")|int %}
  567. {% set x_wait = printer.toolhead.axis_maximum.x|float / 2 %}
  568. {% set y_wait = printer.toolhead.axis_maximum.y|float / 2 %}
  569.  
  570. # Homes the printer, sets absolute positioning and updates the Stealthburner leds.
  571. STATUS_HOMING # Sets SB-leds to homing-mode
  572. G28 # Full home (XYZ)
  573. G90 # Absolut position
  574.  
  575. ## Uncomment for bed mesh (1 of 2)
  576. BED_MESH_CLEAR # Clears old saved bed mesh (if any)
  577.  
  578.  
  579. # Heating nozzle to 150 degrees. This helps with getting a correct Z-home
  580. SET_DISPLAY_TEXT MSG="Hotend: 150c" # Displays info
  581. M109 S150 # Heats the nozzle to 150c
  582.  
  583. ## Uncomment for Trident (Z_TILT_ADJUST)
  584. #SET_DISPLAY_TEXT MSG="Z-tilt adjust" # Displays info
  585. #STATUS_LEVELING # Sets SB-leds to leveling-mode
  586. #Z_TILT_ADJUST # Levels the buildplate via z_tilt_adjust
  587. #G28 Z # Homes Z again after z_tilt_adjust
  588.  
  589. ## Uncomment for V2 (Quad gantry level AKA QGL)
  590. SET_DISPLAY_TEXT MSG="QGL" # Displays info
  591. STATUS_LEVELING # Sets SB-leds to leveling-mode
  592. quad_gantry_level # Levels the buildplate via QGL
  593. G28 Z # Homes Z again after QGL
  594.  
  595. ## Uncomment for Klicky auto-z
  596. #CALIBRATE_Z # Calibrates Z-offset with klicky
  597. #SET_DISPLAY_TEXT MSG="Z-offset" # Displays info
  598.  
  599. ## Uncomment for bed mesh (2 of 2)
  600. SET_DISPLAY_TEXT MSG="Bed mesh" # Displays info
  601. STATUS_MESHING # Sets SB-leds to bed mesh-mode
  602. bed_mesh_calibrate # Starts bed mesh
  603.  
  604. # Heats up the nozzle up to target via data from slicer
  605. SET_DISPLAY_TEXT MSG="Hotend: {target_extruder}c" # Displays info
  606. STATUS_HEATING # Sets SB-leds to heating-mode
  607. G1 X{x_wait} Y{y_wait} Z15 F9000 # Goes to center of the bed
  608. M107 # Turns off partcooling fan
  609. M109 S{target_extruder} # Heats the nozzle to printing temp
  610.  
  611. # Gets ready to print by doing a purge line and updating the SB-leds
  612. SET_DISPLAY_TEXT MSG="Printer goes brr" # Displays info
  613. STATUS_PRINTING # Sets SB-leds to printing-mode
  614. G0 X{x_wait - 50} Y4 F10000 # Moves to starting point
  615. G0 Z0.4 # Raises Z to 0.4
  616. G91 # Incremental positioning
  617. G1 X100 E20 F1000 # Purge line
  618. G90 # Absolut position
  619.  
  620. # Use PRINT_END for the slicer ending script - please customise for your slicer of choice
  621. [gcode_macro PRINT_END]
  622. gcode:
  623. # safe anti-stringing move coords
  624. {% set th = printer.toolhead %}
  625. {% set x_safe = th.position.x + 20 * (1 if th.axis_maximum.x - th.position.x > 20 else -1) %}
  626. {% set y_safe = th.position.y + 20 * (1 if th.axis_maximum.y - th.position.y > 20 else -1) %}
  627. {% set z_safe = [th.position.z + 2, th.axis_maximum.z]|min %}
  628.  
  629. SAVE_GCODE_STATE NAME=STATE_PRINT_END
  630.  
  631. M400 ; wait for buffer to clear
  632. G92 E0 ; zero the extruder
  633. G1 E-5.0 F1800 ; retract filament
  634.  
  635. TURN_OFF_HEATERS
  636.  
  637. G90 ; absolute positioning
  638. G0 X{x_safe} Y{y_safe} Z{z_safe} F20000 ; move nozzle to remove stringing
  639. G0 X{th.axis_maximum.x//2} Y{th.axis_maximum.y - 2} F3600 ; park nozzle at rear
  640. M107 ; turn off fan
  641.  
  642. BED_MESH_CLEAR
  643. RESTORE_GCODE_STATE NAME=STATE_PRINT_END
  644.  
  645.  
  646.  
  647.  
  648. [mcu nhk]
  649. ## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
  650. ##--------------------------------------------------------------------
  651. serial: /dev/serial/by-id/usb-Klipper_rp2040_313436333211796A-if00
  652. restart_method: command
  653. ##--------------------------------------------------------------------
  654.  
  655. #####################################################################
  656. # Endstops
  657. #####################################################################
  658.  
  659. ## XES - Toolhead PCB
  660. [stepper_x]
  661. endstop_pin: nhk:gpio13
  662.  
  663. ## YES - Toolhead PCB
  664. [stepper_y]
  665. endstop_pin: nhk:gpio12
  666.  
  667. #####################################################################
  668. # Extruder
  669. #####################################################################
  670. [extruder]
  671. step_pin: nhk:gpio23
  672. dir_pin: nhk:gpio24
  673. enable_pin: !nhk:gpio25
  674. heater_pin: nhk:gpio9
  675. sensor_pin: nhk:gpio29
  676. pullup_resistor: 2200
  677.  
  678. [tmc2209 extruder]
  679. sense_resistor: 0.100
  680. uart_pin: nhk:gpio0
  681. tx_pin: nhk:gpio1
  682. interpolate: false
  683.  
  684. #####################################################################
  685. # Fans
  686. #####################################################################
  687. ## PCF
  688. [fan]
  689. pin: nhk:gpio6
  690. #tachometer_pin: nhk:gpio17
  691. #tachometer_ppr: 2
  692.  
  693. ## HEF
  694. [heater_fan hotend_fan]
  695. pin: nhk:gpio5
  696. tachometer_pin: nhk:gpio16
  697. tachometer_ppr: 2
  698.  
  699.  
  700.  
  701. ## PCB Activity Light
  702. [output_pin act_led]
  703. pin: !nhk:gpio8
  704.  
  705.  
  706. #####################################################################
  707. # Thermistors
  708. # #####################################################################
  709. ## External Chamber Thermistor Port
  710.  
  711. [thermistor CMFB103F3950FANT]
  712. temperature1: 0.0
  713. resistance1: 32116.0
  714. temperature2: 40.0
  715. resistance2: 5309.0
  716. temperature3: 80.0
  717. resistance3: 1228.0
  718.  
  719. [temperature_sensor nh_temp]
  720. ## Nitehawk PCB Sensor
  721. sensor_type: CMFB103F3950FANT
  722. sensor_pin: nhk:gpio26
  723. pullup_resistor: 2200
  724. min_temp: 0
  725. max_temp: 100
  726. gcode_id: chamber_th
  727.  
  728. #*# <---------------------- SAVE_CONFIG ---------------------->
  729. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  730. #*#
  731. #*# [beacon model default]
  732. #*# model_coef = 1.6478839473914852,
  733. #*# 1.9467779544072956,
  734. #*# 0.7212364879516693,
  735. #*# 0.2811082387089127,
  736. #*# 0.16328178300599183,
  737. #*# 0.2724025459824913,
  738. #*# -0.01140209795231883,
  739. #*# -0.2301198281923885,
  740. #*# 0.0806970626357878,
  741. #*# 0.13307840798655726
  742. #*# model_domain = 1.9049728156189387e-07,1.944283939074804e-07
  743. #*# model_range = 0.200000,5.000000
  744. #*# model_temp = 45.817695
  745. #*# model_offset = 0.00000
  746. #*#
  747. #*# [bed_mesh default]
  748. #*# version = 1
  749. #*# points =
  750. #*# 0.098862, 0.096155, 0.104575, 0.096329, 0.093065, 0.102383
  751. #*# 0.035219, 0.022542, 0.021482, 0.015301, 0.007202, 0.011950
  752. #*# 0.027324, 0.007928, 0.001779, -0.005535, -0.013939, -0.004387
  753. #*# 0.036510, 0.021771, 0.009904, -0.002113, -0.013570, 0.010890
  754. #*# 0.016059, 0.005885, -0.007592, -0.012728, -0.020932, 0.003691
  755. #*# 0.050819, 0.033966, 0.018609, 0.011417, 0.012440, 0.042889
  756. #*# x_count = 6
  757. #*# y_count = 6
  758. #*# mesh_x_pps = 4
  759. #*# mesh_y_pps = 4
  760. #*# algo = bicubic
  761. #*# tension = 0.2
  762. #*# min_x = 30.0
  763. #*# max_x = 300.0
  764. #*# min_y = 30.0
  765. #*# max_y = 300.0
  766.  
Advertisement
Add Comment
Please, Sign In to add comment