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 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2018 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. //
  23. // Fysetc F6 pin assignments
  24. //
  25. #ifndef __AVR_ATmega2560__
  26. #error "Oops! Select 'FYSETC_F6' in 'Tools > Board.'"
  27. #endif
  28. #ifndef BOARD_NAME
  29. #define BOARD_NAME "FYSETC_F6_13"
  30. #endif
  31. //
  32. // Servos
  33. //
  34. #define SERVO0_PIN 13
  35. #define SERVO1_PIN 11 // (PS_ON_PIN)
  36. #define SERVO2_PIN 10 // (FIL_RUNOUT_PIN)
  37. #define SERVO3_PIN 4 // (RGB_LED_G_PIN)
  38. //
  39. // Limit Switches
  40. //
  41. #define X_MIN_PIN 63
  42. #define X_MAX_PIN 64
  43. #define Y_MIN_PIN 14
  44. #define Y_MAX_PIN 15
  45. #define Z_MIN_PIN 12
  46. #define Z_MAX_PIN 9
  47. #ifndef FIL_RUNOUT_PIN
  48. #define FIL_RUNOUT_PIN SERVO2_PIN
  49. #endif
  50. //
  51. // Z Probe (when not Z_MIN_PIN)
  52. //
  53. #ifndef Z_MIN_PROBE_PIN
  54. #define Z_MIN_PROBE_PIN 9 // Servos pin
  55. #endif
  56. //
  57. // Steppers
  58. //
  59. #define X_STEP_PIN 54
  60. #define X_DIR_PIN 55
  61. #define X_ENABLE_PIN 38
  62. #ifndef X_CS_PIN
  63. #define X_CS_PIN 70
  64. #endif
  65. #define Y_STEP_PIN 60
  66. #define Y_DIR_PIN 61
  67. #define Y_ENABLE_PIN 56
  68. #ifndef Y_CS_PIN
  69. #define Y_CS_PIN 39
  70. #endif
  71. #define Z_STEP_PIN 43
  72. #define Z_DIR_PIN 48
  73. #define Z_ENABLE_PIN 58
  74. #ifndef Z_CS_PIN
  75. #define Z_CS_PIN 74
  76. #endif
  77. #define E0_STEP_PIN 26
  78. #define E0_DIR_PIN 28
  79. #define E0_ENABLE_PIN 24
  80. #ifndef E0_CS_PIN
  81. #define E0_CS_PIN 47
  82. #endif
  83. #define E1_STEP_PIN 36
  84. #define E1_DIR_PIN 34
  85. #define E1_ENABLE_PIN 30
  86. #ifndef E1_CS_PIN
  87. #define E1_CS_PIN 32
  88. #endif
  89. #define E2_STEP_PIN 59
  90. #define E2_DIR_PIN 57
  91. #define E2_ENABLE_PIN 40
  92. #ifndef E2_CS_PIN
  93. #define E2_CS_PIN 42
  94. #endif
  95. //
  96. // Sensorless homing DIAG pin is not directly connected to the MCU. Close
  97. // the jumper next to the limit switch socket when using sensorless homing.
  98. //
  99. #define X_TMC2130_DIAG -1
  100. #define Y_TMC2130_DIAG -1
  101. #define Z_TMC2130_DIAG -1
  102. #define E0_TMC2130_DIAG -1
  103. #define E1_TMC2130_DIAG -1
  104. #define E2_TMC2130_DIAG -1
  105. #if HAS_DRIVER(TMC2208)
  106. // Software serial
  107. #define X_SERIAL_RX_PIN 71
  108. #define X_SERIAL_TX_PIN 72
  109. #define Y_SERIAL_RX_PIN 73
  110. #define Y_SERIAL_TX_PIN 75
  111. #define Z_SERIAL_RX_PIN 78
  112. #define Z_SERIAL_TX_PIN 79
  113. #define E0_SERIAL_RX_PIN 76
  114. #define E0_SERIAL_TX_PIN 77
  115. #define E1_SERIAL_RX_PIN 80
  116. #define E1_SERIAL_TX_PIN 81
  117. #define E2_SERIAL_RX_PIN 22
  118. #define E2_SERIAL_TX_PIN 83
  119. #endif
  120. //
  121. // Temperature Sensors
  122. //
  123. #define TEMP_0_PIN 12 // Analog Input
  124. #define TEMP_1_PIN 13 // Analog Input
  125. #define TEMP_2_PIN 14 // Analog Input
  126. #define TEMP_BED_PIN 15 // Analog Input
  127. #ifndef FILWIDTH_PIN
  128. #define FILWIDTH_PIN 9 // Analog Input on X+ endstop
  129. #endif
  130. //
  131. // Heaters / Fans
  132. //
  133. #define HEATER_0_PIN 5
  134. #define HEATER_1_PIN 6
  135. #define HEATER_2_PIN 7
  136. #define HEATER_BED_PIN 8
  137. #define FAN_PIN 44
  138. #define FAN1_PIN 45
  139. #define FAN2_PIN 46
  140. //
  141. // Misc. Functions
  142. //
  143. #define SDSS 53
  144. #define LED_PIN 13
  145. #define KILL_PIN 41
  146. #ifndef PS_ON_PIN
  147. #define PS_ON_PIN SERVO1_PIN
  148. #endif
  149. #ifndef RGB_LED_R_PIN
  150. #define RGB_LED_R_PIN 3
  151. #endif
  152. #ifndef RGB_LED_G_PIN
  153. #define RGB_LED_G_PIN SERVO3_PIN
  154. #endif
  155. #ifndef RGB_LED_B_PIN
  156. #define RGB_LED_B_PIN 9
  157. #endif
  158. #ifndef RGB_LED_W_PIN
  159. #define RGB_LED_W_PIN -1
  160. #endif
  161. //
  162. // LCDs and Controllers
  163. //
  164. #define BEEPER_PIN 37
  165. #define SD_DETECT_PIN 49
  166. #define LCD_PINS_RS 16
  167. #define LCD_PINS_ENABLE 17
  168. #define LCD_PINS_D4 23
  169. #define LCD_PINS_D5 25
  170. #define LCD_PINS_D6 27
  171. #define LCD_PINS_D7 29
  172. #if ENABLED(NEWPANEL)
  173. #define BTN_EN1 31
  174. #define BTN_EN2 33
  175. #define BTN_ENC 35
  176. #endif