nero150

Config

Nov 25th, 2023
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 16.46 KB | Software | 0 0
  1. # This file contains common pin mappings for the Fysetc Spider board.
  2. # To use this config, the firmware should be compiled for the STM32F446.
  3. # When calling "menuconfig", enable "extra low-level configuration setup"
  4. # and select the "12MHz crystal" as clock reference
  5. # For flashing, write the compiled klipper.bin to memory location 0x08000000
  6.  
  7. # See docs/Config_Reference.md for a description of parameters.
  8.  
  9. ## Voron Design VORON2 250/300/350mm Spider TMC2209 UART config
  10.  
  11. ## *** THINGS TO CHANGE/CHECK: ***
  12. ## Spider version                       Please search this file for "SpiderVersion" and uncomment the appropriate line for each
  13. ## MCU paths                            [mcu] section
  14. ## Thermistor types                     [extruder] and [heater_bed] sections - See 'sensor types' list at end of file
  15. ## Z Endstop Switch location            [safe_z_home] section
  16. ## Homing end position                  [gcode_macro G32] section
  17. ## Z Endstop Switch  offset for Z0      [stepper_z] section
  18. ## Probe points                         [quad_gantry_level] section
  19. ## Min & Max gantry corner postions     [quad_gantry_level] section
  20. ## PID tune                             [extruder] and [heater_bed] sections
  21. ## Fine tune E steps                    [extruder] section
  22.  
  23. [mcu]
  24. ## Uncomment below if you're using the Raspberry uart0 to communicate with Spider
  25. #restart_method: command
  26.  
  27. ##  You need to select 'Communication interface' to USB in 'make menuconfig'
  28. ##  when you compile Klipper for Spider
  29. ##  Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
  30. ##--------------------------------------------------------------------
  31. serial: /dev/serial/by-id usb-Klipper_stm32f446xx_5C0033000F51303530323539-if00
  32. ##  If you want to use the Raspberry uart0 to communicate with Spider,
  33. ##  you need to select 'Communication interface' to 'Serial (on USART1 PA10/PA9)'
  34. ##  in 'make menuconfig' when you compile klipper and set the serial as below
  35. ##--------------------------------------------------------------------
  36. #serial: /dev/ttyAMA0
  37. ##--------------------------------------------------------------------
  38.  
  39. [printer]
  40. kinematics: corexy
  41. max_velocity: 300  
  42. max_accel: 5000                 #Max 4000
  43. max_z_velocity: 15          #Max 15 for 12V TMC Drivers, can increase for 24V
  44. max_z_accel: 350
  45. square_corner_velocity: 5.0
  46.  
  47. #####################################################################
  48. #      X/Y Stepper Settings
  49. #####################################################################
  50.  
  51. [stepper_x]
  52. ##  Connected to X-MOT (B Motor)
  53. step_pin: PE11
  54. dir_pin: !PE10
  55. enable_pin: !PE9
  56. rotation_distance: 40
  57. microsteps: 16
  58. full_steps_per_rotation:200  #set to 400 for 0.9 degree stepper
  59. endstop_pin: ^PB14
  60. position_min: 0
  61.  
  62. ##--------------------------------------------------------------------
  63.  
  64. ##  Uncomment below for 250mm build
  65. #position_endstop: 250
  66. #position_max: 250
  67.  
  68. ##  Uncomment for 300mm build
  69. position_endstop: 300
  70. position_max: 300
  71.  
  72. ##  Uncomment for 350mm build
  73. #position_endstop: 350
  74. #position_max: 350
  75.  
  76. ##--------------------------------------------------------------------
  77. homing_speed: 25   #Max 100
  78. homing_retract_dist: 5
  79. homing_positive_dir: true
  80.  
  81. ##  Make sure to update below for your relevant driver (2208 or 2209)
  82. [tmc2209 stepper_x]
  83. uart_pin: PE7
  84. interpolate: True
  85. run_current: 0.7
  86. hold_current: 0.4
  87. sense_resistor: 0.110
  88. stealthchop_threshold: 0
  89.  
  90. ##  Make sure to update below for your relevant driver (5160)
  91. #[tmc5160 stepper_x]
  92. ## Soft SPI
  93. #spi_software_mosi_pin: PE14
  94. #spi_software_miso_pin: PE13
  95. #spi_software_sclk_pin: PE12
  96. #cs_pin: PE7
  97. #interpolate: True
  98. #diag1_pin: PB14
  99. #run_current: 0.800
  100. #hold_current: 0.500
  101. ##stealthchop_threshold: 0
  102.  
  103. [stepper_y]
  104. ##  Connected to Y-MOT (A Motor)
  105. step_pin: PD8
  106. dir_pin: !PB12
  107. enable_pin: !PD9
  108. rotation_distance: 40
  109. microsteps: 16
  110. full_steps_per_rotation:200  #set to 400 for 0.9 degree stepper
  111. endstop_pin: ^PB13
  112. position_min: 0
  113. ##--------------------------------------------------------------------
  114.  
  115. ##  Uncomment for 250mm build
  116. #position_endstop: 250
  117. #position_max: 250
  118.  
  119. ##  Uncomment for 300mm build
  120. position_endstop: 300
  121. position_max: 300
  122.  
  123. ##  Uncomment for 350mm build
  124. #position_endstop: 350
  125. #position_max: 350
  126.  
  127. ##--------------------------------------------------------------------
  128. homing_speed: 25  #Max 100
  129. homing_retract_dist: 5
  130. homing_positive_dir: true
  131.  
  132. ##  Make sure to update below for your relevant driver (2208 or 2209)
  133. [tmc2209 stepper_y]
  134. uart_pin: PE15
  135. interpolate: True
  136. run_current: 0.7
  137. hold_current: 0.4
  138. sense_resistor: 0.110
  139. stealthchop_threshold: 0
  140.  
  141. ##  Make sure to update below for your relevant driver (5160)
  142. #[tmc5160 stepper_y]
  143. ## Soft SPI
  144. #spi_software_mosi_pin: PE14
  145. #spi_software_miso_pin: PE13
  146. #spi_software_sclk_pin: PE12
  147. #cs_pin: PE15
  148. ##diag1_pin: PB13
  149. #interpolate: True
  150. #run_current: 0.8
  151. #hold_current: 0.7
  152. ##stealthchop_threshold: 0
  153.  
  154. #####################################################################
  155. #   Z Stepper Settings
  156. #####################################################################
  157.  
  158. ## In Z-MOT Position
  159. ## Z0 Stepper - Front Left
  160. [stepper_z]
  161. step_pin: PD14
  162. dir_pin: !PD13
  163. enable_pin: !PD15
  164. rotation_distance: 40
  165. gear_ratio: 80:16
  166. microsteps: 16
  167. ##  In Z- Position
  168. endstop_pin: ^PA0
  169. ##  Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
  170. ##  (+) value = endstop above Z0, (-) value = endstop below
  171. ##  Increasing position_endstop brings nozzle closer to the bed
  172. ##  After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
  173. position_endstop: -0.5
  174. ##--------------------------------------------------------------------
  175.  
  176. ##  Uncomment below for 250mm build
  177. #position_max: 240
  178.  
  179. ##  Uncomment below for 300mm build
  180. position_max: 290
  181.  
  182. ##  Uncomment below for 350mm build
  183. #position_max: 340
  184.  
  185. ##--------------------------------------------------------------------
  186. position_min: -5
  187. homing_speed: 8
  188. second_homing_speed: 3
  189. homing_retract_dist: 3
  190.  
  191. ##  Make sure to update below for your relevant driver (2208 or 2209)
  192. [tmc2209 stepper_z]
  193. uart_pin: PD10
  194. interpolate: True
  195. run_current: 0.7
  196. hold_current: 0.4
  197. sense_resistor: 0.110
  198. stealthchop_threshold: 0
  199.  
  200. ##  In E1-MOT Position
  201. ##  Z1 Stepper - Rear Left
  202. [stepper_z1]
  203. step_pin: PE6
  204. dir_pin: PC13
  205. enable_pin: !PE5
  206. rotation_distance: 40
  207. gear_ratio: 80:16
  208. microsteps: 16
  209.  
  210. ##  Make sure to update below for your relevant driver (2208 or 2209)
  211. [tmc2209 stepper_z1]
  212. uart_pin: PC14
  213. interpolate: True
  214. run_current: 0.7
  215. hold_current: 0.4
  216. sense_resistor: 0.110
  217. stealthchop_threshold: 0
  218.  
  219. ##  In E2-MOT Position
  220. ##  Z2 Stepper - Rear Right
  221. [stepper_z2]
  222. step_pin: PE2
  223. dir_pin: !PE4
  224. enable_pin: !PE3
  225. rotation_distance: 40
  226. gear_ratio: 80:16
  227. microsteps: 16
  228.  
  229. ##  Make sure to update below for your relevant driver (2208 or 2209)
  230. [tmc2209 stepper_z2]
  231. uart_pin: PC15
  232. interpolate: true
  233. run_current: 0.7
  234. hold_current: 0.4
  235. sense_resistor: 0.110
  236. stealthchop_threshold: 0
  237.  
  238. ##  In E3-MOT Position
  239. ##  Z3 Stepper - Front Right
  240. [stepper_z3]
  241. step_pin: PD12
  242. dir_pin: PC4
  243. enable_pin: !PE8
  244. rotation_distance: 40
  245. gear_ratio: 80:16
  246. microsteps: 16
  247.  
  248. [tmc2209 stepper_z3]
  249. uart_pin: PA15
  250. interpolate: true
  251. run_current: 0.7
  252. hold_current: 0.4
  253. sense_resistor: 0.110
  254. stealthchop_threshold: 0
  255.  
  256. #####################################################################
  257. #   Extruder
  258. #####################################################################
  259.  
  260. ##  In E0-MOT Position
  261. [extruder]
  262. step_pin: PD5
  263. dir_pin: !PD6
  264. enable_pin: !PD4
  265.  
  266. ##  Update value below when you perform extruder calibration
  267. ##  If you ask for 100mm of filament, but in reality it is 98mm:
  268. ##  rotation_distance = <previous_rotation_distance> * <actual_extrude_distance> / 100
  269. ##  22.6789511 is a good starting point
  270. rotation_distance: 22.6789511   #Bondtech 5mm Drive Gears
  271. ##  Update Gear Ratio depending on your Extruder Type
  272. ##  Use 50:17 for Afterburner/Clockwork (BMG Gear Ratio)
  273. ##  Use 80:20 for M4, M3.1
  274. gear_ratio: 50:17               #BMG Gear Ratio
  275. microsteps: 16
  276. full_steps_per_rotation: 200    #200 for 1.8 degree, 400 for 0.9 degree
  277. nozzle_diameter: 0.400
  278. filament_diameter: 1.75
  279. ##      In E0 OUT Position
  280. heater_pin: PB15
  281. ##  Validate the following thermistor type to make sure it is correct
  282. sensor_type: Generic 3950#ATC Semitec 104GT-2
  283. sensor_pin: PC0 # TE0 Position
  284. min_temp: 10
  285. max_temp: 270
  286. max_power: 1.0
  287. min_extrude_temp: 170
  288. control = pid
  289. pid_kp = 26.213
  290. pid_ki = 1.304
  291. pid_kd = 131.721
  292. ##  Try to keep pressure_advance below 1.0
  293. pressure_advance: 0.05
  294. ##  Default is 0.040, leave stock
  295. pressure_advance_smooth_time: 0.040
  296.  
  297. ##  In E0-MOT Position
  298. ##  Make sure to update below for your relevant driver (2208 or 2209)
  299. [tmc2209 extruder]
  300. uart_pin: PD7
  301. interpolate: false
  302. run_current: 0.5
  303. hold_current: 0.2
  304. sense_resistor: 0.110
  305. stealthchop_threshold: 0
  306.  
  307. #####################################################################
  308. #   Bed Heater
  309. #####################################################################
  310. [heater_bed]
  311. ##  SSR Pin - In BED OUT position
  312. heater_pin: PB4
  313. sensor_type: Generic 3950 # NTC 100K MGB18-104F39050L32
  314. ##  Uncomment below for SpiderVersion 1.x
  315. #sensor_pin: PC3 # TB Position
  316. ##  Uncomment below for SpiderVersion 2.2
  317. sensor_pin: PB0 # TB Position
  318. ##  Adjust Max Power so your heater doesn't warp your bed
  319. max_power: 0.6
  320. min_temp: 0
  321. max_temp: 120
  322. control: pid
  323. pid_kp: 58.437
  324. pid_ki: 2.347
  325. pid_kd: 363.769
  326.  
  327. #####################################################################
  328. #   Probe
  329. #####################################################################
  330.  
  331. [probe]
  332. ##  Inductive Probe - If you use this section , please comment the [bltouch] section
  333. ##  This probe is not used for Z height, only Quad Gantry Leveling
  334. ##  In Z+ position
  335. ##  If your probe is NC instead of NO, add change pin to ^PA3
  336. pin: ^!PA3
  337. x_offset: 0
  338. y_offset: 25.0
  339. z_offset: 0
  340. speed: 10.0
  341. samples: 3
  342. samples_result: median
  343. sample_retract_dist: 3.0
  344. samples_tolerance: 0.006
  345. samples_tolerance_retries: 3
  346.  
  347. #####################################################################
  348. #   Bltouch
  349. #####################################################################
  350.  
  351. #[bltouch]
  352. ##  Bltouch - If you use this section , please comment the [probe] section
  353. ##  More infomation at : https://www.klipper3d.org/BLTouch.html
  354. ##  This bltouch is not used for Z height, only Quad Gantry Leveling
  355. ##  In Z+ Position
  356. #sensor_pin: PA0
  357. ##  In Y+ Position
  358. #control_pin: PA2
  359. #x_offset: 0
  360. #y_offset: 25.0
  361. #z_offset: 0
  362. #speed: 10.0
  363. #samples: 3
  364. #samples_result: median
  365. #sample_retract_dist: 3.0
  366. #samples_tolerance: 0.006
  367. #samples_tolerance_retries: 3
  368.  
  369. #####################################################################
  370. #   Fan Control
  371. #####################################################################
  372.  
  373. [heater_fan hotend_fan]
  374. ##  Hotend Fan - FAN0 Connector
  375. ##  Uncomment below for SpiderVersion 1.x
  376. #pin: PB0
  377. ##  Uncomment below for SpiderVersion 2.2
  378. pin: PA13
  379. max_power: 1.0
  380. kick_start_time: 0.5
  381. heater: extruder
  382. heater_temp: 50.0
  383. ##  If you are experiencing back flow, you can reduce fan_speed
  384. #fan_speed: 1.0
  385.  
  386. [fan]
  387. ##  Print Cooling Fan - FAN1 Connector
  388. ##  Uncomment below for SpiderVersion 1.x
  389. #pin: PB1
  390. ##  Uncomment below for SpiderVersion 2.2
  391. pin: PA14
  392. max_power: 0.4
  393. kick_start_time: 0.5
  394. ##  Depending on your fan, you may need to increase this value
  395. ##  if your fan will not start. Can change cycle_time (increase)
  396. ##  if your fan is not able to slow down effectively
  397. off_below: 0.10
  398.  
  399. [heater_fan controller_fan]
  400. ##  Controller fan - FAN2 Connector
  401. pin: PB2
  402. kick_start_time: 0.5
  403. heater: heater_bed
  404. heater_temp: 45.0
  405.  
  406. #[heater_fan exhaust_fan]
  407. ##  Exhaust fan - In E2 OUT Positon
  408. #pin: PB3
  409. #max_power: 1.0
  410. #shutdown_speed: 0.0
  411. #kick_start_time: 5.0
  412. #heater: heater_bed
  413. #heater_temp: 60
  414. #fan_speed: 1.0
  415.  
  416. #[controller_fan nevermore]
  417. # Nevermore - In E1 OUT Position
  418. #pin: PC8
  419. #kick_start_time: 0.500
  420. #fan_speed: 0.5
  421.  
  422. #####################################################################
  423. #   LED Control
  424. #####################################################################
  425.  
  426. #[output_pin caselight ]
  427. ##  Chamber Lighting - In 5V-RGB Position
  428. #pin: PD3
  429. #pwm: true
  430. #shutdown_value: 0
  431. #value:100
  432. #cycle_time: 0.01
  433.  
  434. #####################################################################
  435. #   Homing and Gantry Adjustment Routines
  436. #####################################################################
  437.  
  438. [idle_timeout]
  439. timeout: 1800
  440.  
  441. [safe_z_home]
  442. ##  XY Location of the Z Endstop Switch
  443. ##  Update -100,-100 to the XY coordinates of your endstop pin
  444. ##  (such as 157,305) after going through Z Endstop Pin
  445. ##  Location Definition step.
  446. home_xy_position:-100,-100
  447. speed:100
  448. z_hop:10
  449.    
  450. [quad_gantry_level]
  451. ##  Use QUAD_GANTRY_LEVEL to level a gantry.
  452. ##  Min & Max gantry corners - measure from nozzle at MIN (0,0) and
  453. ##  MAX (250, 250), (300,300), or (350,350) depending on your printer size
  454. ##  to respective belt positions
  455.  
  456. #--------------------------------------------------------------------
  457. ##  Gantry Corners for 250mm Build
  458. ##  Uncomment for 250mm build
  459. #gantry_corners:
  460. #   -60,-10
  461. #   310, 320
  462. ##  Probe points
  463. #points:
  464. #   50,25
  465. #   50,175
  466. #   200,175
  467. #   200,25
  468.    
  469. ##  Gantry Corners for 300mm Build
  470. ##  Uncomment for 300mm build
  471. gantry_corners:
  472.     -60,-10
  473.     360,370
  474. ##  Probe points
  475. points:
  476.     50,25
  477.     50,225
  478.     250,225
  479.     250,25
  480.  
  481. ##  Gantry Corners for 350mm Build
  482. ##  Uncomment for 350mm build
  483. #gantry_corners:
  484. #   -60,-10
  485. #   410,420
  486. ##  Probe points
  487. #points:
  488. #   50,25
  489. #   50,275
  490. #   300,275
  491. #   300,25
  492.  
  493. #--------------------------------------------------------------------
  494. speed: 100
  495. horizontal_move_z: 10
  496. retries: 5
  497. retry_tolerance: 0.0075
  498. max_adjust: 10
  499.  
  500. #####################################################################
  501. #   Displays
  502. #####################################################################
  503.  
  504. #--------------------------------------------------------------------
  505.  
  506. [display]
  507. #   mini12864 LCD Display
  508. lcd_type: uc1701
  509. cs_pin: PC11
  510. a0_pin: PD2
  511. rst_pin: PC10
  512. encoder_pins: ^PC6,^PC7
  513. click_pin: ^!PA8
  514. contrast: 63
  515. #spi_bus: spi1
  516. spi_software_mosi_pin: PA7
  517. spi_software_miso_pin: PA6
  518. spi_software_sclk_pin: PA5
  519.  
  520. [neopixel fysetc_mini12864]
  521. #   To control Neopixel RGB in mini12864 display
  522. pin: PC12
  523. chain_count: 3
  524. initial_RED: 0.1
  525. initial_GREEN: 0.5
  526. initial_BLUE: 0.0
  527. color_order: RGB
  528.  
  529. #   Set RGB values on boot up for each Neopixel.
  530. #   Index 1 = display, Index 2 and 3 = Knob
  531. [delayed_gcode setdisplayneopixel]
  532. initial_duration: 1
  533. gcode:
  534.         SET_LED LED=fysetc_mini12864 RED=1 GREEN=1 BLUE=1 INDEX=1 TRANSMIT=0
  535.         SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0
  536.         SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3
  537.  
  538. #--------------------------------------------------------------------
  539.  
  540.  
  541. #####################################################################
  542. #   Macros
  543. #####################################################################
  544.  
  545. [gcode_macro G32]
  546. gcode:
  547.     BED_MESH_CLEAR
  548.     G28
  549.     QUAD_GANTRY_LEVEL
  550.     G28
  551.     ##  Uncomment for for your size printer:
  552.     #--------------------------------------------------------------------
  553.     ##  Uncomment for 250mm build
  554.     #G0 X125 Y125 Z30 F3600
  555.    
  556.     ##  Uncomment for 300 build
  557.     G0 X150 Y150 Z30 F3600
  558.    
  559.     ##  Uncomment for 350mm build
  560.     #G0 X175 Y175 Z30 F3600
  561.     #--------------------------------------------------------------------
  562.    
  563. [gcode_macro PRINT_START]
  564. #   Use PRINT_START for the slicer starting script - please customise for your slicer of choice
  565. gcode:
  566.     G32                            ; home all axes
  567.     G1 Z20 F3000                   ; move nozzle away from bed
  568.  
  569. [gcode_macro PRINT_END]
  570. #   Use PRINT_END for the slicer ending script - please customise for your slicer of choice
  571. gcode:
  572.     M400                           ; wait for buffer to clear
  573.     G92 E0                         ; zero the extruder
  574.     G1 E-1.0 F3600                 ; retract filament
  575.     G91                            ; relative positioning
  576.     G0 Z1.00 X20.0 Y20.0 F20000    ; move nozzle to remove stringing
  577.     TURN_OFF_HEATERS
  578.     M107                           ; turn off fan
  579.     G1 Z2 F3000                    ; move nozzle up 2mm
  580.     G90                            ; absolute positioning
  581.     G0  X125 Y250 F3600            ; park nozzle at rear
  582.     BED_MESH_CLEAR
  583.    
  584. ##  Thermistor Types
  585. ##   "EPCOS 100K B57560G104F"
  586. ##   "ATC Semitec 104GT-2"
  587. ##   "NTC 100K beta 3950"
  588. ##   "Honeywell 100K 135-104LAG-J01"
  589. ##   "NTC 100K MGB18-104F39050L32" (Keenovo Heater Pad)
  590. ##   "AD595"
  591. ##   "PT100 INA826"
  592.  
Advertisement
Add Comment
Please, Sign In to add comment