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 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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! Make sure you have 'Arduino Due' selected from the 'Tools -> Boards' menu."
  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. // Extension Board V2
  92. // http://doku.radds.org/dokumentation/extension-board
  93. //
  94. //#define RADDS_EXTENSION
  95. #if ENABLED(RADDS_EXTENSION)
  96. #define E3_STEP_PIN 35
  97. #define E3_DIR_PIN 33
  98. #define E3_ENABLE_PIN 37
  99. #ifndef E3_CS_PIN
  100. #define E3_CS_PIN 6
  101. #endif
  102. #define E3_MS1_PIN 67
  103. #define E3_MS2_PIN 68
  104. #define E3_MS3_PIN 69
  105. #define Z2_STEP_PIN 29
  106. #define Z2_DIR_PIN 27
  107. #define Z2_ENABLE_PIN 31
  108. #ifndef Z2_CS_PIN
  109. #define Z2_CS_PIN 39
  110. #endif
  111. #define Z2_MS1_PIN 67 // shared with E3_MS1_PIN
  112. #define Z2_MS2_PIN 68 // shared with E3_MS2_PIN
  113. #define Z2_MS3_PIN 69 // shared with E3_MS3_PIN
  114. #define RADDS_EXT_VDD1_PIN 25
  115. #define RADDS_EXT_VDD2_PIN 66
  116. #define BOARD_INIT() OUT_WRITE(RADDS_EXT_VDD1_PIN, HIGH); OUT_WRITE(RADDS_EXT_VDD2_PIN, HIGH)
  117. #endif
  118. //
  119. // Temperature Sensors
  120. //
  121. #define TEMP_0_PIN 0 // Analog Input
  122. #define TEMP_1_PIN 1 // Analog Input
  123. #define TEMP_2_PIN 2 // Analog Input
  124. #define TEMP_3_PIN 3 // Analog Input
  125. #define TEMP_4_PIN 5 // dummy so will compile when PINS_DEBUGGING is enabled
  126. #define TEMP_BED_PIN 4 // Analog Input
  127. // SPI for Max6675 or Max31855 Thermocouple
  128. #if DISABLED(SDSUPPORT)
  129. #define MAX6675_SS 53
  130. #else
  131. #define MAX6675_SS 49
  132. #endif
  133. //
  134. // Heaters / Fans
  135. //
  136. #define HEATER_0_PIN 13
  137. #define HEATER_1_PIN 12
  138. #define HEATER_2_PIN 11
  139. #define HEATER_BED_PIN 7 // BED
  140. #ifndef FAN_PIN
  141. #define FAN_PIN 9
  142. #endif
  143. #define FAN1_PIN 8
  144. //
  145. // Misc. Functions
  146. //
  147. #define SDSS 4
  148. #define PS_ON_PIN 40 // SERVO3_PIN
  149. #ifndef FIL_RUNOUT_PIN
  150. #define FIL_RUNOUT_PIN 39 // SERVO2_PIN
  151. #endif
  152. // I2C EEPROM with 8K of space
  153. #define I2C_EEPROM
  154. #define E2END 0x1FFF
  155. //
  156. // LCD / Controller
  157. //
  158. #if ENABLED(ULTRA_LCD)
  159. #if ENABLED(RADDS_DISPLAY)
  160. #define LCD_PINS_RS 42
  161. #define LCD_PINS_ENABLE 43
  162. #define LCD_PINS_D4 44
  163. #define LCD_PINS_D5 45
  164. #define LCD_PINS_D6 46
  165. #define LCD_PINS_D7 47
  166. #define BEEPER_PIN 41
  167. #define BTN_EN1 50
  168. #define BTN_EN2 52
  169. #define BTN_ENC 48
  170. #define BTN_BACK 71
  171. #undef SDSS
  172. #define SDSS 10
  173. #define SD_DETECT_PIN 14
  174. #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  175. #define LCD_PINS_RS 46
  176. #define LCD_PINS_ENABLE 47
  177. #define LCD_PINS_D4 44
  178. #define BEEPER_PIN 41
  179. #define BTN_EN1 50
  180. #define BTN_EN2 52
  181. #define BTN_ENC 48
  182. #elif ENABLED(SSD1306_OLED_I2C_CONTROLLER)
  183. #define BTN_EN1 50
  184. #define BTN_EN2 52
  185. #define BTN_ENC 48
  186. #define BEEPER_PIN 41
  187. #define LCD_SDSS 10
  188. #define SD_DETECT_PIN 14
  189. #elif ENABLED(SPARK_FULL_GRAPHICS)
  190. #define LCD_PINS_D4 29
  191. #define LCD_PINS_ENABLE 27
  192. #define LCD_PINS_RS 25
  193. #define BTN_EN1 35
  194. #define BTN_EN2 33
  195. #define BTN_ENC 37
  196. #endif // SPARK_FULL_GRAPHICS
  197. #endif // ULTRA_LCD