Guest User

Untitled

a guest
Apr 29th, 2025
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. # This file contains pin mappings for the Creality "v4.2.10" 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. [stepper_x]
  19. step_pin: PC2
  20. dir_pin: !PB9
  21. enable_pin: !PC3
  22. microsteps: 16
  23. rotation_distance: 40
  24. endstop_pin: ^!PA3
  25. position_endstop: 0
  26. position_max: 220
  27. homing_speed: 50
  28.  
  29. [stepper_y]
  30. step_pin: PB8
  31. dir_pin: !PB7
  32. enable_pin: !PC3
  33. microsteps: 16
  34. rotation_distance: 40
  35. endstop_pin: ^!PA7
  36. position_endstop: 0
  37. position_max: 240
  38. homing_speed: 50
  39.  
  40. [stepper_z]
  41. step_pin: PB6
  42. dir_pin: !PB5
  43. enable_pin: !PC3
  44. microsteps: 16
  45. rotation_distance: 2.75
  46. endstop_pin: ^!PA5
  47. position_endstop: 0
  48. position_min: -250
  49. position_max: 1000000
  50.  
  51. [extruder]
  52. max_extrude_only_distance: 100.0
  53. max_extrude_cross_section: 2.0
  54. step_pin: PB4
  55. dir_pin: !PB3
  56. enable_pin: !PC3
  57. microsteps: 16
  58. rotation_distance: 23.0
  59. nozzle_diameter: 0.400
  60. filament_diameter: 1.750
  61. heater_pin: PA0
  62. sensor_type: EPCOS 100K B57560G104F
  63. sensor_pin: PC5
  64. min_temp: 0
  65. max_temp: 260
  66. pressure_advance: 0.50
  67.  
  68. [force_move]
  69. enable_force_move: True
  70.  
  71. [filament_switch_sensor spool]
  72. pause_on_runout: True
  73. switch_pin: ^!PA6
  74.  
  75. [heater_bed]
  76. heater_pin: PA1
  77. sensor_type: EPCOS 100K B57560G104F
  78. sensor_pin: PC4
  79. min_temp: 0
  80. max_temp: 130
  81.  
  82. # old K-FAN1
  83. [fan]
  84. pin: PA2
  85.  
  86. # old K-FAN2
  87. [heater_fan extruder]
  88. pin: PC0
  89. heater: extruder
  90. heater_temp: 50.0
  91.  
  92. # old K-FAN3
  93. [temperature_fan mcu]
  94. pin: PC1
  95. sensor_type: temperature_mcu
  96. control: watermark
  97. min_temp: 0
  98. max_temp: 100
  99. target_temp: 0
  100.  
  101. ; Neopixel LED support
  102. ; [neopixel led_neopixel]
  103. ; pin: PC14
  104.  
  105. ; BL-touch
  106. ; [bltouch]
  107. ; control_pin: PB0
  108. ; sensor_pin: PB1
  109.  
  110. ; TMC Uart Mod Pins:
  111. ; https://github.com/adelyser/Marlin-CR30/wiki
  112. ; [tmc2208 stepper_x]
  113. ; uart_pin: PB0
  114. ;
  115. ; [tmc2208 stepper_y]
  116. ; uart_pin: PB1
  117. ;
  118. ; [tmc2208 stepper_z]
  119. ; uart_pin: PA13
  120. ;
  121. ; [tmc2208 extruder]
  122. ; uart_pin: PA14
  123.  
  124. [mcu]
  125. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  126. baud: 250000
  127. restart_method: command
  128.  
  129. [display]
  130. lcd_type: st7920
  131. cs_pin: PB12
  132. sclk_pin: PB13
  133. sid_pin: PB15
  134. encoder_pins: ^PB14, ^PB10
  135. click_pin: ^!PB2
  136.  
  137. [output_pin beeper]
  138. pin: PC6
  139.  
  140. [printer]
  141. kinematics: corexy
  142. max_velocity: 300
  143. max_accel: 3000
  144. max_z_velocity: 5
  145. max_z_accel: 100
  146.  
  147. # Override to support unlimited belt size
  148. # (homing Z simply resets its virtual position to 0.0)
  149. [homing_override]
  150. axes: z
  151. set_position_z: 0
  152. gcode:
  153. {% if params.X is not defined and params.Y is not defined and params.Z is not defined %}G28 X0 Y0{% endif %}
  154. {% if params.X is defined %}G28 X0{% endif %}
  155. {% if params.Y is defined %}G28 Y0{% endif %}
  156. G92 Z0
  157.  
  158. # Eject all printed parts from the belt
  159. [gcode_macro BED_EJECT]
  160. gcode:
  161. TURN_OFF_HEATERS
  162. G28 ; Re-home
  163. G1 X50 Y50 F6000 ; Move hotend out of the way of the belt
  164. G1 Z420 F4000 ; Unload belt
  165. G28 Z0 ; Re-home Z
  166.  
  167. [virtual_sdcard]
  168. # for gcode upload
  169. path: /home/lonlygamerx/printer_data/gcodes
  170.  
  171. [display_status]
  172. # for display messages in status panel
  173.  
  174. [pause_resume]
  175. # for pause/resume functionality.
  176. # Mainsail/fluidd needs gcode macros for PAUSE, RESUME and CANCEL_PRINT to make the buttons work.
  177.  
  178. [gcode_macro PAUSE]
  179. rename_existing: BASE_PAUSE
  180. description: "Pause the print"
  181. gcode:
  182. {% set x = params.X|default(100)|float %}
  183. {% set y = params.Y|default(100)|float %}
  184. {% set e = params.E|default(1)|float %}
  185. SAVE_GCODE_STATE NAME=PAUSE_state
  186. BASE_PAUSE
  187. G91
  188. G1 E-{e} F2100
  189. G90
  190. G1 X{x} Y{y} F6000
  191.  
  192.  
  193. [gcode_macro RESUME]
  194. rename_existing: BASE_RESUME
  195. gcode:
  196. {% set e = params.E|default(1)|float %}
  197. G91
  198. G1 E{e} F2100
  199. G90
  200. RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
  201. BASE_RESUME
  202.  
  203.  
  204. [gcode_macro CANCEL_PRINT]
  205. rename_existing: BASE_CANCEL_PRINT
  206. gcode:
  207. TURN_OFF_HEATERS
  208. CLEAR_PAUSE
  209. SDCARD_RESET_FILE
  210. BASE_CANCEL_PRINT
  211.  
  212. [menu __main __octoprint]
  213. type: disabled
  214.  
  215. [menu __main __control __eject]
  216. type: command
  217. enable: {not printer.idle_timeout.state == "Printing"}
  218. name: Bed Eject
  219. gcode:
  220. BED_EJECT
  221.  
  222. # Enable SD file loop support
  223. [sdcard_loop]
  224.  
  225. # 'Marlin' style M808 compatibility macro for SDCard looping
  226. [gcode_macro M808]
  227. gcode:
  228. {% if params.K is not defined and params.L is defined %}SDCARD_LOOP_BEGIN COUNT={params.L|int}{% endif %}
  229. {% if params.K is not defined and params.L is not defined %}SDCARD_LOOP_END{% endif %}
  230. {% if params.K is defined and params.L is not defined %}SDCARD_LOOP_DESIST{% endif %}
  231.  
  232. #*# <---------------------- SAVE_CONFIG ---------------------->
  233. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  234. #*#
  235. #*# [extruder]
  236. #*# control = pid
  237. #*# pid_kp = 22.120
  238. #*# pid_ki = 1.460
  239. #*# pid_kd = 83.778
  240. #*#
  241. #*# [heater_bed]
  242. #*# control = pid
  243. #*# pid_kp = 66.633
  244. #*# pid_ki = 1.516
  245. #*# pid_kd = 732.132
Advertisement
Add Comment
Please, Sign In to add comment