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_RAMPS_FD_V1.h 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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. * RAMPS-FD
  25. *
  26. * No EEPROM
  27. * Use 4k7 thermistor tables
  28. */
  29. #if NOT_TARGET(__SAM3X8E__)
  30. #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
  31. #endif
  32. #ifndef BOARD_INFO_NAME
  33. #define BOARD_INFO_NAME "RAMPS-FD v1"
  34. #endif
  35. #define INVERTED_HEATER_PINS
  36. #define INVERTED_BED_PINS
  37. #define INVERTED_FAN_PINS
  38. //
  39. // Servos
  40. //
  41. #define SERVO0_PIN 7
  42. #define SERVO1_PIN 6
  43. #define SERVO2_PIN 5
  44. #define SERVO3_PIN 3
  45. //
  46. // Limit Switches
  47. //
  48. #define X_MIN_PIN 22
  49. #define X_MAX_PIN 30
  50. #define Y_MIN_PIN 24
  51. #define Y_MAX_PIN 38
  52. #define Z_MIN_PIN 26
  53. #define Z_MAX_PIN 34
  54. //
  55. // Steppers
  56. //
  57. #define X_STEP_PIN 63
  58. #define X_DIR_PIN 62
  59. #define X_ENABLE_PIN 48
  60. #ifndef X_CS_PIN
  61. #define X_CS_PIN 68
  62. #endif
  63. #define Y_STEP_PIN 65
  64. #define Y_DIR_PIN 64
  65. #define Y_ENABLE_PIN 46
  66. #ifndef Y_CS_PIN
  67. #define Y_CS_PIN 60
  68. #endif
  69. #define Z_STEP_PIN 67
  70. #define Z_DIR_PIN 66
  71. #define Z_ENABLE_PIN 44
  72. #ifndef Z_CS_PIN
  73. #define Z_CS_PIN 58
  74. #endif
  75. #define E0_STEP_PIN 36
  76. #define E0_DIR_PIN 28
  77. #define E0_ENABLE_PIN 42
  78. #ifndef E0_CS_PIN
  79. #define E0_CS_PIN 67
  80. #endif
  81. #define E1_STEP_PIN 43
  82. #define E1_DIR_PIN 41
  83. #define E1_ENABLE_PIN 39
  84. #ifndef E1_CS_PIN
  85. #define E1_CS_PIN 61
  86. #endif
  87. #define E2_STEP_PIN 32
  88. #define E2_DIR_PIN 47
  89. #define E2_ENABLE_PIN 45
  90. #ifndef E2_CS_PIN
  91. #define E2_CS_PIN 59
  92. #endif
  93. //
  94. // Temperature Sensors
  95. //
  96. #define TEMP_0_PIN 1 // Analog Input
  97. #define TEMP_1_PIN 2 // Analog Input
  98. #define TEMP_2_PIN 3 // Analog Input
  99. #define TEMP_BED_PIN 0 // Analog Input
  100. // SPI for Max6675 or Max31855 Thermocouple
  101. #if DISABLED(SDSUPPORT)
  102. #define MAX6675_SS_PIN 53
  103. #else
  104. #define MAX6675_SS_PIN 49
  105. #endif
  106. //
  107. // Heaters / Fans
  108. //
  109. #define HEATER_0_PIN 9
  110. #define HEATER_1_PIN 10
  111. #define HEATER_2_PIN 11
  112. #define HEATER_BED_PIN 8
  113. #ifndef FAN_PIN
  114. #define FAN_PIN 12
  115. #endif
  116. //
  117. // Misc. Functions
  118. //
  119. #define SDSS 4
  120. #define LED_PIN 13
  121. //
  122. // LCD / Controller
  123. //
  124. #if HAS_WIRED_LCD
  125. // ramps-fd lcd adaptor
  126. #define BEEPER_PIN 37
  127. #define BTN_EN1 33
  128. #define BTN_EN2 31
  129. #define BTN_ENC 35
  130. #define SD_DETECT_PIN 49
  131. #if IS_NEWPANEL
  132. #define LCD_PINS_RS 16
  133. #define LCD_PINS_ENABLE 17
  134. #endif
  135. #if ENABLED(FYSETC_MINI_12864)
  136. #define DOGLCD_CS LCD_PINS_ENABLE
  137. #define DOGLCD_A0 LCD_PINS_RS
  138. #define DOGLCD_SCK 76
  139. #define DOGLCD_MOSI 75
  140. //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
  141. // results in LCD soft SPI mode 3, SD soft SPI mode 0
  142. #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
  143. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  144. #ifndef RGB_LED_R_PIN
  145. #define RGB_LED_R_PIN 25
  146. #endif
  147. #ifndef RGB_LED_G_PIN
  148. #define RGB_LED_G_PIN 27
  149. #endif
  150. #ifndef RGB_LED_B_PIN
  151. #define RGB_LED_B_PIN 29
  152. #endif
  153. #elif ENABLED(FYSETC_MINI_12864_2_1)
  154. #define NEOPIXEL_PIN 25
  155. #endif
  156. #elif IS_NEWPANEL
  157. #define LCD_PINS_D4 23
  158. #define LCD_PINS_D5 25
  159. #define LCD_PINS_D6 27
  160. #define LCD_PINS_D7 29
  161. #if ENABLED(MINIPANEL)
  162. #define DOGLCD_CS 25
  163. #define DOGLCD_A0 27
  164. #endif
  165. #endif
  166. #if ANY(VIKI2, miniVIKI)
  167. #define DOGLCD_A0 16
  168. #define KILL_PIN 51
  169. #define STAT_LED_BLUE_PIN 29
  170. #define STAT_LED_RED_PIN 23
  171. #define DOGLCD_CS 17
  172. #define DOGLCD_SCK 76 // SCK_PIN - Required for DUE Hardware SPI
  173. #define DOGLCD_MOSI 75 // MOSI_PIN
  174. #define DOGLCD_MISO 74 // MISO_PIN
  175. #endif
  176. #endif // HAS_WIRED_LCD
  177. #if HAS_TMC_UART
  178. /**
  179. * TMC2208/TMC2209 stepper drivers
  180. *
  181. * Hardware serial communication ports.
  182. * If undefined software serial is used according to the pins below
  183. */
  184. //#define X_HARDWARE_SERIAL Serial1
  185. //#define X2_HARDWARE_SERIAL Serial1
  186. //#define Y_HARDWARE_SERIAL Serial1
  187. //#define Y2_HARDWARE_SERIAL Serial1
  188. //#define Z_HARDWARE_SERIAL Serial1
  189. //#define Z2_HARDWARE_SERIAL Serial1
  190. //#define E0_HARDWARE_SERIAL Serial1
  191. //#define E1_HARDWARE_SERIAL Serial1
  192. //#define E2_HARDWARE_SERIAL Serial1
  193. //#define E3_HARDWARE_SERIAL Serial1
  194. //#define E4_HARDWARE_SERIAL Serial1
  195. #endif
  196. //
  197. // M3/M4/M5 - Spindle/Laser Control
  198. //
  199. #if HOTENDS < 3 && HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
  200. #define SPINDLE_LASER_ENA_PIN 45 // Use E2 ENA
  201. #define SPINDLE_LASER_PWM_PIN 12 // Hardware PWM
  202. #define SPINDLE_DIR_PIN 47 // Use E2 DIR
  203. #endif