My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_FYSETC_F6_13.h 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. //
  24. // FYSETC F6 1.3 (and 1.4) pin assignments
  25. //
  26. #ifndef __AVR_ATmega2560__
  27. #error "Oops! Select 'FYSETC F6' in 'Tools > Board.'"
  28. #endif
  29. #if ENABLED(SD_DETECT_INVERTED)
  30. //#error "SD_DETECT_INVERTED must be disabled for the FYSETC_F6_13 board."
  31. #endif
  32. #ifndef BOARD_INFO_NAME
  33. #define BOARD_INFO_NAME "FYSETC F6 1.3"
  34. #endif
  35. #define RESET_PIN 30
  36. #define SPI_FLASH_CS 83
  37. //
  38. // Servos
  39. //
  40. #define SERVO0_PIN 13
  41. #define SERVO1_PIN 11 // (PS_ON_PIN)
  42. #define SERVO2_PIN 10 // (FIL_RUNOUT_PIN)
  43. #define SERVO3_PIN 4 // (RGB_LED_G_PIN)
  44. //
  45. // Limit Switches
  46. //
  47. #define X_MIN_PIN 63
  48. #define X_MAX_PIN 64
  49. #define Y_MIN_PIN 14
  50. #define Y_MAX_PIN 15
  51. #define Z_MIN_PIN 12
  52. #ifndef Z_MAX_PIN
  53. #define Z_MAX_PIN 9
  54. #endif
  55. #ifndef FIL_RUNOUT_PIN
  56. #define FIL_RUNOUT_PIN SERVO2_PIN
  57. #endif
  58. //
  59. // Z Probe (when not Z_MIN_PIN)
  60. //
  61. #ifndef Z_MIN_PROBE_PIN
  62. #define Z_MIN_PROBE_PIN 9 // Servos pin
  63. #endif
  64. //
  65. // Steppers
  66. //
  67. #define X_STEP_PIN 54
  68. #define X_DIR_PIN 55
  69. #define X_ENABLE_PIN 38
  70. #ifndef X_CS_PIN
  71. #define X_CS_PIN 70
  72. #endif
  73. #define Y_STEP_PIN 60
  74. #define Y_DIR_PIN 61
  75. #define Y_ENABLE_PIN 56
  76. #ifndef Y_CS_PIN
  77. #define Y_CS_PIN 39
  78. #endif
  79. #define Z_STEP_PIN 43
  80. #define Z_DIR_PIN 48
  81. #define Z_ENABLE_PIN 58
  82. #ifndef Z_CS_PIN
  83. #define Z_CS_PIN 74
  84. #endif
  85. #define E0_STEP_PIN 26
  86. #define E0_DIR_PIN 28
  87. #define E0_ENABLE_PIN 24
  88. #ifndef E0_CS_PIN
  89. #define E0_CS_PIN 47
  90. #endif
  91. #define E1_STEP_PIN 36
  92. #define E1_DIR_PIN 34
  93. #define E1_ENABLE_PIN 30
  94. #ifndef E1_CS_PIN
  95. #define E1_CS_PIN 32
  96. #endif
  97. #define E2_STEP_PIN 59
  98. #define E2_DIR_PIN 57
  99. #define E2_ENABLE_PIN 40
  100. #ifndef E2_CS_PIN
  101. #define E2_CS_PIN 42
  102. #endif
  103. //
  104. // Sensorless homing DIAG pin is not directly connected to the MCU. Close
  105. // the jumper next to the limit switch socket when using sensorless homing.
  106. //
  107. #if HAS_TMC220x
  108. /**
  109. * TMC2208/TMC2209 stepper drivers
  110. *
  111. * Software serial communication pins.
  112. * At the moment, F6 rx pins are not pc interrupt pins
  113. */
  114. #ifndef X_SERIAL_RX_PIN
  115. #define X_SERIAL_RX_PIN -1 // 71
  116. #endif
  117. #ifndef X_SERIAL_TX_PIN
  118. #define X_SERIAL_TX_PIN 72
  119. #endif
  120. #ifndef Y_SERIAL_RX_PIN
  121. #define Y_SERIAL_RX_PIN -1 // 73
  122. #endif
  123. #ifndef Y_SERIAL_TX_PIN
  124. #define Y_SERIAL_TX_PIN 75
  125. #endif
  126. #ifndef Z_SERIAL_RX_PIN
  127. #define Z_SERIAL_RX_PIN -1 // 78
  128. #endif
  129. #ifndef Z_SERIAL_TX_PIN
  130. #define Z_SERIAL_TX_PIN 79
  131. #endif
  132. #ifndef E0_SERIAL_RX_PIN
  133. #define E0_SERIAL_RX_PIN -1 // 76
  134. #endif
  135. #ifndef E0_SERIAL_TX_PIN
  136. #define E0_SERIAL_TX_PIN 77
  137. #endif
  138. #ifndef E1_SERIAL_RX_PIN
  139. #define E1_SERIAL_RX_PIN -1 // 80
  140. #endif
  141. #ifndef E1_SERIAL_TX_PIN
  142. #define E1_SERIAL_TX_PIN 81
  143. #endif
  144. #ifndef E2_SERIAL_RX_PIN
  145. #define E2_SERIAL_RX_PIN -1 // 22
  146. #endif
  147. #ifndef E2_SERIAL_TX_PIN
  148. #define E2_SERIAL_TX_PIN 82
  149. #endif
  150. #endif
  151. //
  152. // Temperature Sensors
  153. //
  154. #define TEMP_0_PIN 12 // Analog Input
  155. #define TEMP_1_PIN 13 // Analog Input
  156. #define TEMP_2_PIN 14 // Analog Input
  157. #define TEMP_BED_PIN 15 // Analog Input
  158. #ifndef FILWIDTH_PIN
  159. #define FILWIDTH_PIN 9 // Analog Input on X+ endstop
  160. #endif
  161. //
  162. // Heaters / Fans
  163. //
  164. #define HEATER_0_PIN 5
  165. #define HEATER_1_PIN 6
  166. #define HEATER_2_PIN 7
  167. #define HEATER_BED_PIN 8
  168. #define FAN_PIN 44
  169. #define FAN1_PIN 45
  170. #define FAN2_PIN 46
  171. //
  172. // Misc. Functions
  173. //
  174. #define SDSS 53
  175. #define LED_PIN 13
  176. #define KILL_PIN 41
  177. #ifndef PS_ON_PIN
  178. #define PS_ON_PIN SERVO1_PIN
  179. #endif
  180. /**
  181. * ----- -----
  182. * 5V/D41 | · · | GND 5V | · · | GND
  183. * RESET | · · | D49 (SD_DETECT) (LCD_D7) D29 | · · | D27 (LCD_D6)
  184. * (MOSI) D51 | · · | D33 (BTN_EN2) (LCD_D5) D25 | · · | D23 (LCD_D4)
  185. * (SD_SS) D53 | · · | D31 (BTN_EN1) (LCD_RS) D16 | · · | D17 (LCD_EN)
  186. * (SCK) D52 | · · | D50 (MISO) (BTN_ENC) D35 | · · | D37 (BEEPER)
  187. * ----- -----
  188. * EXP2 EXP1
  189. */
  190. //
  191. // LCDs and Controllers
  192. //
  193. #define BEEPER_PIN 37
  194. #define SD_DETECT_PIN 49
  195. #if ENABLED(FYSETC_MINI_12864)
  196. //
  197. // See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
  198. //
  199. #define DOGLCD_A0 16
  200. #define DOGLCD_CS 17
  201. #if ENABLED(FYSETC_GENERIC_12864_1_1)
  202. #define LCD_BACKLIGHT_PIN 27
  203. #endif
  204. #define KILL_PIN 41
  205. #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
  206. // Seems to work best if left open.
  207. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  208. #ifndef RGB_LED_R_PIN
  209. #define RGB_LED_R_PIN 25
  210. #endif
  211. #ifndef RGB_LED_G_PIN
  212. #define RGB_LED_G_PIN 27
  213. #endif
  214. #ifndef RGB_LED_B_PIN
  215. #define RGB_LED_B_PIN 29
  216. #endif
  217. #elif ENABLED(FYSETC_MINI_12864_2_1)
  218. #define NEOPIXEL_PIN 25
  219. #endif
  220. #elif HAS_GRAPHICAL_LCD
  221. #define LCD_PINS_RS 16
  222. #define LCD_PINS_ENABLE 17
  223. #define LCD_PINS_D4 23
  224. #define LCD_PINS_D5 25
  225. #define LCD_PINS_D6 27
  226. #define LCD_PINS_D7 29
  227. #if ENABLED(MKS_MINI_12864)
  228. #define DOGLCD_CS 25
  229. #define DOGLCD_A0 27
  230. #endif
  231. #endif
  232. #if ENABLED(NEWPANEL)
  233. #define BTN_EN1 31
  234. #define BTN_EN2 33
  235. #define BTN_ENC 35
  236. #endif
  237. #ifndef RGB_LED_R_PIN
  238. #define RGB_LED_R_PIN 3
  239. #endif
  240. #ifndef RGB_LED_G_PIN
  241. #define RGB_LED_G_PIN 4
  242. #endif
  243. #ifndef RGB_LED_B_PIN
  244. #define RGB_LED_B_PIN 9
  245. #endif
  246. #ifndef RGB_LED_W_PIN
  247. #define RGB_LED_W_PIN -1
  248. #endif