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_RURAMPS4D_11.h 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. * Ported sys0724 & Vynt
  22. */
  23. /**
  24. * Arduino Mega? or Due with RuRAMPS4DUE pin assignments
  25. *
  26. * Applies to the following boards:
  27. * RURAMPS4DUE (Hotend0, Hotend1, Hotend2, Fan0, Fan1, Bed)
  28. *
  29. * Differences between
  30. * RADDS | RuRAMPS4DUE
  31. * |
  32. */
  33. #if NOT_TARGET(__SAM3X8E__)
  34. #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
  35. #endif
  36. #define BOARD_INFO_NAME "RuRAMPS4Due v1.1"
  37. //
  38. // Servos
  39. //
  40. #define SERVO0_PIN 5
  41. #define SERVO1_PIN 3
  42. //
  43. // Limit Switches
  44. //
  45. #define X_MIN_PIN 45
  46. #define X_MAX_PIN 39
  47. #define Y_MIN_PIN 46
  48. #define Y_MAX_PIN 41
  49. #define Z_MIN_PIN 47
  50. #define Z_MAX_PIN 43
  51. //
  52. // Z Probe (when not Z_MIN_PIN)
  53. //
  54. #ifndef Z_MIN_PROBE_PIN
  55. #define Z_MIN_PROBE_PIN 43
  56. #endif
  57. //
  58. // Steppers
  59. //
  60. #define X_STEP_PIN 37 // Support Extension Board
  61. #define X_DIR_PIN 36
  62. #define X_ENABLE_PIN 38
  63. #ifndef X_CS_PIN
  64. #define X_CS_PIN -1
  65. #endif
  66. #define Y_STEP_PIN 32 // Support Extension Board
  67. #define Y_DIR_PIN 35
  68. #define Y_ENABLE_PIN 34
  69. #ifndef Y_CS_PIN
  70. #define Y_CS_PIN -1
  71. #endif
  72. #define Z_STEP_PIN 30 // Support Extension Board
  73. #define Z_DIR_PIN 2
  74. #define Z_ENABLE_PIN 33
  75. #ifndef Z_CS_PIN
  76. #define Z_CS_PIN -1
  77. #endif
  78. #define E0_STEP_PIN 29
  79. #define E0_DIR_PIN 28
  80. #define E0_ENABLE_PIN 31
  81. #ifndef E0_CS_PIN
  82. #define E0_CS_PIN -1
  83. #endif
  84. #define E1_STEP_PIN 22
  85. #define E1_DIR_PIN 24
  86. #define E1_ENABLE_PIN 26
  87. #ifndef E1_CS_PIN
  88. #define E1_CS_PIN -1
  89. #endif
  90. #define E2_STEP_PIN 25
  91. #define E2_DIR_PIN 23
  92. #define E2_ENABLE_PIN 27
  93. #ifndef E2_CS_PIN
  94. #define E2_CS_PIN -1
  95. #endif
  96. #define E3_STEP_PIN 15 // Only For Extension Board
  97. #define E3_DIR_PIN 14
  98. #define E3_ENABLE_PIN 61
  99. #ifndef E3_CS_PIN
  100. #define E3_CS_PIN -1
  101. #endif
  102. // For Future: Microstepping pins - Mapping not from fastio.h (?)
  103. //#define E3_MS1_PIN ?
  104. //#define E3_MS2_PIN ?
  105. //#define E3_MS3_PIN ?
  106. #if HAS_CUSTOM_PROBE_PIN
  107. #define Z_MIN_PROBE_PIN 49
  108. #endif
  109. #if HAS_FILAMENT_SENSOR
  110. #ifndef FIL_RUNOUT_PIN
  111. #define FIL_RUNOUT_PIN Y_MIN_PIN
  112. #endif
  113. #endif
  114. //
  115. // Heaters / Fans
  116. //
  117. #define HEATER_0_PIN 13
  118. #define HEATER_1_PIN 12
  119. #define HEATER_2_PIN 11
  120. #define HEATER_BED_PIN 7 // BED H1
  121. #ifndef FAN_PIN
  122. #define FAN_PIN 9
  123. #endif
  124. #define FAN1_PIN 8
  125. #define CONTROLLER_FAN_PIN -1
  126. //
  127. // Temperature Sensors
  128. //
  129. #define TEMP_0_PIN 0 // ANALOG A0
  130. #define TEMP_1_PIN 1 // ANALOG A1
  131. #define TEMP_2_PIN 2 // ANALOG A2
  132. #define TEMP_3_PIN 3 // ANALOG A3
  133. #define TEMP_BED_PIN 4 // ANALOG A4
  134. // The thermocouple uses Analog pins
  135. #if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
  136. #define TEMP_4_PIN 5 // A5
  137. #define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
  138. #endif
  139. // SPI for Max6675 or Max31855 Thermocouple
  140. /*
  141. #if DISABLED(SDSUPPORT)
  142. #define MAX6675_SS_PIN 53
  143. #else
  144. #define MAX6675_SS_PIN 49
  145. #endif
  146. */
  147. //
  148. // Misc. Functions
  149. //
  150. #define SDSS 4 // 4,10,52 if using HW SPI.
  151. #define LED_PIN -1 // 13 - HEATER_0_PIN
  152. #define PS_ON_PIN -1 // 65
  153. // MKS TFT / Nextion Use internal USART-1
  154. #define TFT_LCD_MODULE_COM 1
  155. #define TFT_LCD_MODULE_BAUDRATE 115600
  156. // ESP WiFi Use internal USART-2
  157. #define ESP_WIFI_MODULE_COM 2
  158. #define ESP_WIFI_MODULE_BAUDRATE 115600
  159. #define ESP_WIFI_MODULE_RESET_PIN -1
  160. #define PIGGY_GPIO_PIN -1
  161. //
  162. // EEPROM
  163. //
  164. #define MARLIN_EEPROM_SIZE 0x8000 // 32Kb (24lc256)
  165. #define I2C_EEPROM // EEPROM on I2C-0
  166. //#define EEPROM_SD // EEPROM on SDCARD
  167. //#define SPI_EEPROM // EEPROM on SPI-0
  168. //#define SPI_CHAN_EEPROM1 ?
  169. //#define SPI_EEPROM1_CS ?
  170. // 2K EEPROM
  171. //#define SPI_EEPROM2_CS ?
  172. // 32Mb FLASH
  173. //#define SPI_FLASH_CS ?
  174. //
  175. // LCD / Controller
  176. //
  177. #if HAS_WIRED_LCD
  178. #if ANY(RADDS_DISPLAY, IS_RRD_SC, IS_RRD_FG_SC)
  179. #define BEEPER_PIN 62
  180. #define LCD_PINS_D4 48
  181. #define LCD_PINS_D5 50
  182. #define LCD_PINS_D6 52
  183. #define LCD_PINS_D7 53
  184. #define SD_DETECT_PIN 51
  185. #endif
  186. #if EITHER(RADDS_DISPLAY, IS_RRD_SC)
  187. #define LCD_PINS_RS 63
  188. #define LCD_PINS_ENABLE 64
  189. #elif IS_RRD_FG_SC
  190. #define LCD_PINS_RS 52
  191. #define LCD_PINS_ENABLE 53
  192. #elif HAS_U8GLIB_I2C_OLED
  193. #define BEEPER_PIN 62
  194. #define LCD_SDSS 10
  195. #define SD_DETECT_PIN 51
  196. #elif ENABLED(FYSETC_MINI_12864)
  197. #define BEEPER_PIN 62
  198. #define DOGLCD_CS 64
  199. #define DOGLCD_A0 63
  200. //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
  201. // results in LCD soft SPI mode 3, SD soft SPI mode 0
  202. #define LCD_RESET_PIN 48 // Must be high or open for LCD to operate normally.
  203. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  204. #ifndef RGB_LED_R_PIN
  205. #define RGB_LED_R_PIN 50 // D5
  206. #endif
  207. #ifndef RGB_LED_G_PIN
  208. #define RGB_LED_G_PIN 52 // D6
  209. #endif
  210. #ifndef RGB_LED_B_PIN
  211. #define RGB_LED_B_PIN 53 // D7
  212. #endif
  213. #elif ENABLED(FYSETC_MINI_12864_2_1)
  214. #define NEOPIXEL_PIN 50 // D5
  215. #endif
  216. #elif ENABLED(SPARK_FULL_GRAPHICS)
  217. //http://doku.radds.org/dokumentation/other-electronics/sparklcd/
  218. #error "Oops! SPARK_FULL_GRAPHICS not supported with RURAMPS4D."
  219. //#define LCD_PINS_D4 29 //?
  220. //#define LCD_PINS_ENABLE 27 //?
  221. //#define LCD_PINS_RS 25 //?
  222. //#define BTN_EN1 35 //?
  223. //#define BTN_EN2 33 //?
  224. //#define BTN_ENC 37 //?
  225. #endif // SPARK_FULL_GRAPHICS
  226. #if IS_NEWPANEL
  227. #define BTN_EN1 44
  228. #define BTN_EN2 42
  229. #define BTN_ENC 40
  230. #endif
  231. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  232. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  233. #endif
  234. #endif // HAS_WIRED_LCD