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_13.h 7.8KB

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