My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pins_RURAMPS4D.h 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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. * 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. #ifndef __SAM3X8E__
  34. #error "Oops! Make sure you have 'Arduino Due' selected from the 'Tools -> Boards' menu."
  35. #endif
  36. #ifndef BOARD_NAME
  37. #define BOARD_NAME "RuRAMPS4Due"
  38. #endif
  39. //
  40. // Limit Switches
  41. //
  42. #define X_MIN_PIN 45
  43. #define X_MAX_PIN 39
  44. #define Y_MIN_PIN 46
  45. #define Y_MAX_PIN 41
  46. #define Z_MIN_PIN 47
  47. #define Z_MAX_PIN 43
  48. //
  49. // Z Probe (when not Z_MIN_PIN)
  50. //
  51. #ifndef Z_MIN_PROBE_PIN
  52. #define Z_MIN_PROBE_PIN 43
  53. #endif
  54. //
  55. // Steppers
  56. //
  57. #define X_STEP_PIN 37 // Support Extension Board
  58. #define X_DIR_PIN 36
  59. #define X_ENABLE_PIN 38
  60. #define Y_STEP_PIN 32 // Support Extension Board
  61. #define Y_DIR_PIN 35
  62. #define Y_ENABLE_PIN 34
  63. #define Z_STEP_PIN 30 // Support Extension Board
  64. #define Z_DIR_PIN 2
  65. #define Z_ENABLE_PIN 33
  66. #define E0_STEP_PIN 29
  67. #define E0_DIR_PIN 28
  68. #define E0_ENABLE_PIN 31
  69. #define E1_STEP_PIN 22
  70. #define E1_DIR_PIN 24
  71. #define E1_ENABLE_PIN 26
  72. #define E2_STEP_PIN 25
  73. #define E2_DIR_PIN 23
  74. #define E2_ENABLE_PIN 27
  75. #define E3_STEP_PIN 15 // Only For Extension Board
  76. #define E3_DIR_PIN 14
  77. #define E3_ENABLE_PIN 61
  78. //#define X_CS_PIN -1
  79. //#define Y_CS_PIN -1
  80. //#define Z_CS_PIN -1
  81. //#define E0_CS_PIN -1
  82. //#define E1_CS_PIN -1
  83. //#define E2_CS_PIN -1
  84. //#define E3_CS_PIN -1
  85. // For Future: Microstepping pins - Mapping not from fastio.h (?)
  86. //#define E3_MS1_PIN ?
  87. //#define E3_MS2_PIN ?
  88. //#define E3_MS3_PIN ?
  89. //#define Z2_MS1_PIN ? // shared with E3_MS1_PIN
  90. //#define Z2_MS2_PIN ? // shared with E3_MS2_PIN
  91. //#define Z2_MS3_PIN ? // shared with E3_MS3_PIN
  92. #if DISABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
  93. #define Z_MIN_PROBE_PIN 49
  94. #endif
  95. #if ENABLED(FILAMENT_RUNOUT_SENSOR)
  96. #ifndef FIL_RUNOUT_PIN
  97. #define FIL_RUNOUT_PIN Y_MIN_PIN
  98. #endif
  99. #endif
  100. //
  101. // Heaters / Fans
  102. //
  103. #define HEATER_0_PIN 13
  104. #define HEATER_1_PIN 12
  105. #define HEATER_2_PIN 11
  106. #define HEATER_BED_PIN 7 // BED H1
  107. #ifndef FAN_PIN
  108. #define FAN_PIN 9
  109. #endif
  110. #define FAN1_PIN 8
  111. #define CONTROLLER_FAN_PIN -1
  112. //
  113. // Temperature Sensors
  114. //
  115. #define TEMP_0_PIN 0 // ANALOG A0
  116. #define TEMP_1_PIN 1 // ANALOG A1
  117. #define TEMP_2_PIN 2 // ANALOG A2
  118. #define TEMP_3_PIN 3 // ANALOG A2
  119. #define TEMP_BED_PIN 4 // ANALOG A3
  120. //Thermocouple Use Analog Pins
  121. #if ENABLED(VER_WITH_THERMOCOUPLE) // If Nead, define is in Configuration.h
  122. #define TEMP_4_PIN 5 // A5
  123. #define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
  124. #endif
  125. // SPI for Max6675 or Max31855 Thermocouple
  126. //#if DISABLED(SDSUPPORT)
  127. // #define MAX6675_SS 53
  128. //#else
  129. // #define MAX6675_SS 49
  130. //#endif
  131. //
  132. // Servos
  133. //
  134. #define SERVO0_PIN 5
  135. #define SERVO1_PIN 3
  136. #define SERVO2_PIN -1
  137. #define SERVO3_PIN -1
  138. //
  139. // Misc. Functions
  140. //
  141. #define SDSS 4 // 4,10,52 if using HW SPI.
  142. #define LED_PIN -1 // 13 - HEATER_0_PIN
  143. #define PS_ON_PIN -1 // 65
  144. // MKS TFT / Nextion Use internal USART-1
  145. #define TFT_LCD_MODULE_COM 1
  146. #define TFT_LCD_MODULE_BAUDRATE 115600
  147. // ESP WiFi Use internal USART-2
  148. #define ESP_WIFI_MODULE_COM 2
  149. #define ESP_WIFI_MODULE_BAUDRATE 115600
  150. #define ESP_WIFI_MODULE_RESET_PIN -1
  151. #define PIGGY_GPIO_PIN -1
  152. //
  153. // EEPROM
  154. //
  155. #define E2END 0x7FFF // 32Kb (24lc256)
  156. #define I2C_EEPROM // EEPROM on I2C-0
  157. //#define EEPROM_SD // EEPROM on SDCARD
  158. //#define SPI_EEPROM // EEPROM on SPI-0
  159. //#define SPI_CHAN_EEPROM1 ?
  160. //#define SPI_EEPROM1_CS ?
  161. // 2K EEPROM
  162. //#define SPI_EEPROM2_CS ?
  163. // 32Mb FLASH
  164. //#define SPI_FLASH_CS ?
  165. //
  166. // LCD / Controller
  167. //
  168. #if ENABLED(ULTRA_LCD)
  169. #if ENABLED(RADDS_DISPLAY) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  170. #define LCD_PINS_RS 63
  171. #define LCD_PINS_ENABLE 64
  172. #define LCD_PINS_D4 48
  173. #define LCD_PINS_D5 50
  174. #define LCD_PINS_D6 52
  175. #define LCD_PINS_D7 53
  176. #define BEEPER_PIN 62
  177. #define BTN_EN1 44
  178. #define BTN_EN2 42
  179. #define BTN_ENC 40
  180. #define SD_DETECT_PIN 51
  181. #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  182. #define LCD_PINS_RS 52
  183. #define LCD_PINS_ENABLE 53
  184. #define LCD_PINS_D4 48
  185. #define LCD_PINS_D5 50
  186. #define LCD_PINS_D6 52
  187. #define LCD_PINS_D7 53
  188. #define BEEPER_PIN 62
  189. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  190. #define BTN_EN1 44
  191. #define BTN_EN2 42
  192. #define BTN_ENC 40
  193. #define SD_DETECT_PIN 51
  194. #endif
  195. #elif ENABLED(SSD1306_OLED_I2C_CONTROLLER)
  196. #define BTN_EN1 44
  197. #define BTN_EN2 42
  198. #define BTN_ENC 40
  199. #define BEEPER_PIN 62
  200. #define LCD_SDSS 10
  201. #define SD_DETECT_PIN 51
  202. #elif ENABLED(SPARK_FULL_GRAPHICS)
  203. //http://doku.radds.org/dokumentation/other-electronics/sparklcd/
  204. #error "Oops! SPARK_FULL_GRAPHICS not supported with RURAMPS4D."
  205. //#define LCD_PINS_D4 29//?
  206. //#define LCD_PINS_ENABLE 27//?
  207. //#define LCD_PINS_RS 25//?
  208. //#define BTN_EN1 35//?
  209. //#define BTN_EN2 33//?
  210. //#define BTN_ENC 37//?
  211. #endif // SPARK_FULL_GRAPHICS
  212. #endif // ULTRA_LCD