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_RADDS.h 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. */
  22. /**
  23. * RADDS
  24. */
  25. #ifndef __SAM3X8E__
  26. #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
  27. #endif
  28. #define BOARD_NAME "RADDS"
  29. //
  30. // Servos
  31. //
  32. #define SERVO0_PIN 5
  33. #define SERVO1_PIN 6
  34. #define SERVO2_PIN 39
  35. #define SERVO3_PIN 40
  36. //
  37. // Limit Switches
  38. //
  39. #define X_MIN_PIN 28
  40. #define X_MAX_PIN 34
  41. #define Y_MIN_PIN 30
  42. #define Y_MAX_PIN 36
  43. #define Z_MIN_PIN 32
  44. #define Z_MAX_PIN 38
  45. //
  46. // Z Probe (when not Z_MIN_PIN)
  47. //
  48. #ifndef Z_MIN_PROBE_PIN
  49. #define Z_MIN_PROBE_PIN 38
  50. #endif
  51. //
  52. // Steppers
  53. //
  54. #define X_STEP_PIN 24
  55. #define X_DIR_PIN 23
  56. #define X_ENABLE_PIN 26
  57. #ifndef X_CS_PIN
  58. #define X_CS_PIN 25
  59. #endif
  60. #define Y_STEP_PIN 17
  61. #define Y_DIR_PIN 16
  62. #define Y_ENABLE_PIN 22
  63. #ifndef Y_CS_PIN
  64. #define Y_CS_PIN 27
  65. #endif
  66. #define Z_STEP_PIN 2
  67. #define Z_DIR_PIN 3
  68. #define Z_ENABLE_PIN 15
  69. #ifndef Z_CS_PIN
  70. #define Z_CS_PIN 29
  71. #endif
  72. #define E0_STEP_PIN 61
  73. #define E0_DIR_PIN 60
  74. #define E0_ENABLE_PIN 62
  75. #ifndef E0_CS_PIN
  76. #define E0_CS_PIN 31
  77. #endif
  78. #define E1_STEP_PIN 64
  79. #define E1_DIR_PIN 63
  80. #define E1_ENABLE_PIN 65
  81. #ifndef E1_CS_PIN
  82. #define E1_CS_PIN 33
  83. #endif
  84. #define E2_STEP_PIN 51
  85. #define E2_DIR_PIN 53
  86. #define E2_ENABLE_PIN 49
  87. #ifndef E2_CS_PIN
  88. #define E2_CS_PIN 35
  89. #endif
  90. /**
  91. * RADDS Extension Board V2 / V3
  92. * http://doku.radds.org/dokumentation/extension-board
  93. */
  94. //#define RADDS_EXTENSION 2
  95. #if RADDS_EXTENSION >= 2
  96. #define E3_DIR_PIN 33
  97. #define E3_STEP_PIN 35
  98. #define E3_ENABLE_PIN 37
  99. #ifndef E3_CS_PIN
  100. #define E3_CS_PIN 6
  101. #endif
  102. #if RADDS_EXTENSION == 3
  103. #define E4_DIR_PIN 27
  104. #define E4_STEP_PIN 29
  105. #define E4_ENABLE_PIN 31
  106. #ifndef E4_CS_PIN
  107. #define E4_CS_PIN 39
  108. #endif
  109. #define E5_DIR_PIN 66
  110. #define E5_STEP_PIN 67
  111. #define E5_ENABLE_PIN 68
  112. #ifndef E5_CS_PIN
  113. #define E5_CS_PIN 6
  114. #endif
  115. #define RADDS_EXT_MSI_PIN 69
  116. #define BOARD_INIT() OUT_WRITE(RADDS_EXT_VDD_PIN, HIGH)
  117. #else
  118. #define E4_DIR_PIN 27
  119. #define E4_STEP_PIN 29
  120. #define E4_ENABLE_PIN 31
  121. #ifndef E4_CS_PIN
  122. #define E4_CS_PIN 39
  123. #endif
  124. // E3 and E4 share the same MSx pins
  125. #define E3_MS1_PIN 67
  126. #define E4_MS1_PIN 67
  127. #define E3_MS2_PIN 68
  128. #define E4_MS2_PIN 68
  129. #define E3_MS3_PIN 69
  130. #define E4_MS3_PIN 69
  131. #define RADDS_EXT_VDD2_PIN 66
  132. #define BOARD_INIT() do{ OUT_WRITE(RADDS_EXT_VDD_PIN, HIGH); OUT_WRITE(RADDS_EXT_VDD2_PIN, HIGH); }while(0)
  133. #endif
  134. #define RADDS_EXT_VDD_PIN 25
  135. #endif
  136. //
  137. // Temperature Sensors
  138. //
  139. #define TEMP_0_PIN 0 // Analog Input
  140. #define TEMP_1_PIN 1 // Analog Input
  141. #define TEMP_2_PIN 2 // Analog Input
  142. #define TEMP_3_PIN 3 // Analog Input
  143. #define TEMP_4_PIN 5 // dummy so will compile when PINS_DEBUGGING is enabled
  144. #define TEMP_BED_PIN 4 // Analog Input
  145. // SPI for Max6675 or Max31855 Thermocouple
  146. #if DISABLED(SDSUPPORT)
  147. #define MAX6675_SS 53
  148. #else
  149. #define MAX6675_SS 49
  150. #endif
  151. //
  152. // Heaters / Fans
  153. //
  154. #define HEATER_0_PIN 13
  155. #define HEATER_1_PIN 12
  156. #define HEATER_2_PIN 11
  157. #define HEATER_BED_PIN 7 // BED
  158. #ifndef FAN_PIN
  159. #define FAN_PIN 9
  160. #endif
  161. #define FAN1_PIN 8
  162. //
  163. // Misc. Functions
  164. //
  165. #define SDSS 4
  166. #define SD_DETECT_PIN 14
  167. #define PS_ON_PIN 40 // SERVO3_PIN
  168. #ifndef FIL_RUNOUT_PIN
  169. #define FIL_RUNOUT_PIN 39 // SERVO2_PIN
  170. #endif
  171. // I2C EEPROM with 8K of space
  172. #define I2C_EEPROM
  173. #define E2END 0x1FFF
  174. //
  175. // LCD / Controller
  176. //
  177. #if ENABLED(ULTRA_LCD)
  178. #if ENABLED(RADDS_DISPLAY)
  179. #define LCD_PINS_RS 42
  180. #define LCD_PINS_ENABLE 43
  181. #define LCD_PINS_D4 44
  182. #define LCD_PINS_D5 45
  183. #define LCD_PINS_D6 46
  184. #define LCD_PINS_D7 47
  185. #define BEEPER_PIN 41
  186. #define BTN_EN1 50
  187. #define BTN_EN2 52
  188. #define BTN_ENC 48
  189. #define BTN_BACK 71
  190. #undef SDSS
  191. #define SDSS 10
  192. #define SD_DETECT_PIN 14
  193. #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  194. // The REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER requires
  195. // an adapter such as https://www.thingiverse.com/thing:1740725
  196. #define LCD_PINS_RS 42
  197. #define LCD_PINS_ENABLE 43
  198. #define LCD_PINS_D4 44
  199. #define BEEPER_PIN 41
  200. #define BTN_EN1 50
  201. #define BTN_EN2 52
  202. #define BTN_ENC 48
  203. #elif ENABLED(SSD1306_OLED_I2C_CONTROLLER)
  204. #define BTN_EN1 50
  205. #define BTN_EN2 52
  206. #define BTN_ENC 48
  207. #define BEEPER_PIN 41
  208. #define LCD_SDSS 10
  209. #define SD_DETECT_PIN 14
  210. #elif ENABLED(SPARK_FULL_GRAPHICS)
  211. #define LCD_PINS_D4 29
  212. #define LCD_PINS_ENABLE 27
  213. #define LCD_PINS_RS 25
  214. #define BTN_EN1 35
  215. #define BTN_EN2 33
  216. #define BTN_ENC 37
  217. #endif // SPARK_FULL_GRAPHICS
  218. #endif // ULTRA_LCD