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_Z_BOLT_X_SERIES.h 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Z-Bolt X Series board – based on Arduino Mega2560
  25. */
  26. #define REQUIRE_MEGA2560
  27. #include "env_validate.h"
  28. #if HOTENDS > 4 || E_STEPPERS > 4
  29. #error "Z-Bolt X Series supports up to 4 hotends / E steppers."
  30. #endif
  31. #define BOARD_INFO_NAME "Z-Bolt X Series"
  32. //
  33. // Servos
  34. //
  35. #ifndef SERVO0_PIN
  36. #define SERVO0_PIN 11
  37. #endif
  38. #ifndef SERVO3_PIN
  39. #define SERVO3_PIN 4
  40. #endif
  41. //
  42. // Limit Switches
  43. //
  44. #define X_MIN_PIN 3
  45. #ifndef X_MAX_PIN
  46. #define X_MAX_PIN 2
  47. #endif
  48. #define Y_MIN_PIN 14
  49. #define Y_MAX_PIN 15
  50. #define Z_MIN_PIN 18
  51. #define Z_MAX_PIN 19
  52. //
  53. // Z Probe (when not Z_MIN_PIN)
  54. //
  55. #ifndef Z_MIN_PROBE_PIN
  56. #define Z_MIN_PROBE_PIN 32
  57. #endif
  58. //
  59. // Steppers
  60. //
  61. #define X_STEP_PIN 54
  62. #define X_DIR_PIN 55
  63. #define X_ENABLE_PIN 38
  64. #ifndef X_CS_PIN
  65. #define X_CS_PIN -1
  66. #endif
  67. #define Y_STEP_PIN 60
  68. #define Y_DIR_PIN 61
  69. #define Y_ENABLE_PIN 56
  70. #ifndef Y_CS_PIN
  71. #define Y_CS_PIN -1
  72. #endif
  73. #define Z_STEP_PIN 46
  74. #define Z_DIR_PIN 48
  75. #define Z_ENABLE_PIN 62
  76. #ifndef Z_CS_PIN
  77. #define Z_CS_PIN -1
  78. #endif
  79. #define E0_STEP_PIN 26
  80. #define E0_DIR_PIN 28
  81. #define E0_ENABLE_PIN 24
  82. #ifndef E0_CS_PIN
  83. #define E0_CS_PIN -1
  84. #endif
  85. #define E1_STEP_PIN 36
  86. #define E1_DIR_PIN 34
  87. #define E1_ENABLE_PIN 30
  88. #ifndef E1_CS_PIN
  89. #define E1_CS_PIN -1
  90. #endif
  91. // Red
  92. #define E2_STEP_PIN 42
  93. #define E2_DIR_PIN 40
  94. #define E2_ENABLE_PIN 65
  95. #ifndef E2_CS_PIN
  96. #define E2_CS_PIN -1
  97. #endif
  98. // Black
  99. #define E3_STEP_PIN 44
  100. #define E3_DIR_PIN 64
  101. #define E3_ENABLE_PIN 66
  102. #ifndef E3_CS_PIN
  103. #define E3_CS_PIN -1
  104. #endif
  105. //
  106. // Temperature Sensors
  107. //
  108. #define TEMP_0_PIN 13 // Analog Input
  109. #define TEMP_1_PIN 15 // Analog Input
  110. #define TEMP_2_PIN 5 // Analog Input (BLACK)
  111. #define TEMP_3_PIN 9 // Analog Input (RED)
  112. #define TEMP_BED_PIN 14 // Analog Input
  113. //
  114. // Heaters / Fans
  115. //
  116. #define HEATER_0_PIN 10
  117. #define HEATER_1_PIN 7
  118. #define HEATER_2_PIN 6
  119. #define HEATER_3_PIN 5
  120. #define HEATER_BED_PIN 8
  121. #define FAN_PIN 9
  122. //
  123. // Misc. Functions
  124. //
  125. #define SDSS 53
  126. #define LED_PIN 13
  127. #ifndef FILWIDTH_PIN
  128. #define FILWIDTH_PIN 5 // Analog Input on AUX2
  129. #endif
  130. // Оn the servos connector
  131. #ifndef FIL_RUNOUT_PIN
  132. #define FIL_RUNOUT_PIN 4
  133. #endif
  134. #ifndef PS_ON_PIN
  135. #define PS_ON_PIN 12
  136. #endif
  137. #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN)
  138. #if NUM_SERVOS <= 1 // Prefer the servo connector
  139. #define CASE_LIGHT_PIN 6 // Hardware PWM
  140. #elif HAS_FREE_AUX2_PINS
  141. #define CASE_LIGHT_PIN 44 // Hardware PWM
  142. #endif
  143. #endif
  144. //
  145. // M3/M4/M5 - Spindle/Laser Control
  146. //
  147. #if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
  148. #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // Prefer the servo connector
  149. #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
  150. #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
  151. #define SPINDLE_DIR_PIN 5
  152. #elif HAS_FREE_AUX2_PINS
  153. #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
  154. #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
  155. #define SPINDLE_DIR_PIN 65
  156. #endif
  157. #endif
  158. //
  159. // TMC software SPI
  160. //
  161. #if ENABLED(TMC_USE_SW_SPI)
  162. #ifndef TMC_SW_MOSI
  163. #define TMC_SW_MOSI 66
  164. #endif
  165. #ifndef TMC_SW_MISO
  166. #define TMC_SW_MISO 44
  167. #endif
  168. #ifndef TMC_SW_SCK
  169. #define TMC_SW_SCK 64
  170. #endif
  171. #endif
  172. #if HAS_TMC_UART
  173. /**
  174. * TMC220x stepper drivers
  175. *
  176. * Hardware serial communication ports.
  177. * If undefined software serial is used according to the pins below
  178. */
  179. //#define X_HARDWARE_SERIAL Serial1
  180. //#define X2_HARDWARE_SERIAL Serial1
  181. //#define Y_HARDWARE_SERIAL Serial1
  182. //#define Y2_HARDWARE_SERIAL Serial1
  183. //#define Z_HARDWARE_SERIAL Serial1
  184. //#define Z2_HARDWARE_SERIAL Serial1
  185. //#define E0_HARDWARE_SERIAL Serial1
  186. //#define E1_HARDWARE_SERIAL Serial1
  187. //#define E2_HARDWARE_SERIAL Serial1
  188. //#define E3_HARDWARE_SERIAL Serial1
  189. //#define E4_HARDWARE_SERIAL Serial1
  190. #ifndef X_SERIAL_TX_PIN
  191. #define X_SERIAL_TX_PIN 40
  192. #endif
  193. #ifndef X_SERIAL_RX_PIN
  194. #define X_SERIAL_RX_PIN 63
  195. #endif
  196. #ifndef X2_SERIAL_TX_PIN
  197. #define X2_SERIAL_TX_PIN -1
  198. #endif
  199. #ifndef X2_SERIAL_RX_PIN
  200. #define X2_SERIAL_RX_PIN -1
  201. #endif
  202. #ifndef Y_SERIAL_TX_PIN
  203. #define Y_SERIAL_TX_PIN 59
  204. #endif
  205. #ifndef Y_SERIAL_RX_PIN
  206. #define Y_SERIAL_RX_PIN 64
  207. #endif
  208. #ifndef Y2_SERIAL_TX_PIN
  209. #define Y2_SERIAL_TX_PIN -1
  210. #endif
  211. #ifndef Y2_SERIAL_RX_PIN
  212. #define Y2_SERIAL_RX_PIN -1
  213. #endif
  214. #ifndef Z_SERIAL_TX_PIN
  215. #define Z_SERIAL_TX_PIN 42
  216. #endif
  217. #ifndef Z_SERIAL_RX_PIN
  218. #define Z_SERIAL_RX_PIN 65
  219. #endif
  220. #ifndef Z2_SERIAL_TX_PIN
  221. #define Z2_SERIAL_TX_PIN -1
  222. #endif
  223. #ifndef Z2_SERIAL_RX_PIN
  224. #define Z2_SERIAL_RX_PIN -1
  225. #endif
  226. #ifndef E0_SERIAL_TX_PIN
  227. #define E0_SERIAL_TX_PIN 44
  228. #endif
  229. #ifndef E0_SERIAL_RX_PIN
  230. #define E0_SERIAL_RX_PIN 66
  231. #endif
  232. #ifndef E1_SERIAL_TX_PIN
  233. #define E1_SERIAL_TX_PIN -1
  234. #endif
  235. #ifndef E1_SERIAL_RX_PIN
  236. #define E1_SERIAL_RX_PIN -1
  237. #endif
  238. #ifndef E2_SERIAL_TX_PIN
  239. #define E2_SERIAL_TX_PIN -1
  240. #endif
  241. #ifndef E2_SERIAL_RX_PIN
  242. #define E2_SERIAL_RX_PIN -1
  243. #endif
  244. #ifndef E3_SERIAL_TX_PIN
  245. #define E3_SERIAL_TX_PIN -1
  246. #endif
  247. #ifndef E3_SERIAL_RX_PIN
  248. #define E3_SERIAL_RX_PIN -1
  249. #endif
  250. #ifndef E4_SERIAL_TX_PIN
  251. #define E4_SERIAL_TX_PIN -1
  252. #endif
  253. #ifndef E4_SERIAL_RX_PIN
  254. #define E4_SERIAL_RX_PIN -1
  255. #endif
  256. #ifndef E5_SERIAL_TX_PIN
  257. #define E5_SERIAL_TX_PIN -1
  258. #endif
  259. #ifndef E5_SERIAL_RX_PIN
  260. #define E5_SERIAL_RX_PIN -1
  261. #endif
  262. #ifndef E6_SERIAL_TX_PIN
  263. #define E6_SERIAL_TX_PIN -1
  264. #endif
  265. #ifndef E6_SERIAL_RX_PIN
  266. #define E6_SERIAL_RX_PIN -1
  267. #endif
  268. #ifndef E7_SERIAL_TX_PIN
  269. #define E7_SERIAL_TX_PIN -1
  270. #endif
  271. #ifndef E7_SERIAL_RX_PIN
  272. #define E7_SERIAL_RX_PIN -1
  273. #endif
  274. #endif