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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. // Steppers
  47. //
  48. #define X_STEP_PIN 24
  49. #define X_DIR_PIN 23
  50. #define X_ENABLE_PIN 26
  51. #ifndef X_CS_PIN
  52. #define X_CS_PIN 25
  53. #endif
  54. #define Y_STEP_PIN 17
  55. #define Y_DIR_PIN 16
  56. #define Y_ENABLE_PIN 22
  57. #ifndef Y_CS_PIN
  58. #define Y_CS_PIN 27
  59. #endif
  60. #define Z_STEP_PIN 2
  61. #define Z_DIR_PIN 3
  62. #define Z_ENABLE_PIN 15
  63. #ifndef Z_CS_PIN
  64. #define Z_CS_PIN 29
  65. #endif
  66. #define E0_STEP_PIN 61
  67. #define E0_DIR_PIN 60
  68. #define E0_ENABLE_PIN 62
  69. #ifndef E0_CS_PIN
  70. #define E0_CS_PIN 31
  71. #endif
  72. #define E1_STEP_PIN 64
  73. #define E1_DIR_PIN 63
  74. #define E1_ENABLE_PIN 65
  75. #ifndef E1_CS_PIN
  76. #define E1_CS_PIN 33
  77. #endif
  78. #define E2_STEP_PIN 51
  79. #define E2_DIR_PIN 53
  80. #define E2_ENABLE_PIN 49
  81. #ifndef E2_CS_PIN
  82. #define E2_CS_PIN 35
  83. #endif
  84. // For Extension Board V2
  85. // http://doku.radds.org/dokumentation/extension-board
  86. //#define E3_STEP_PIN 35
  87. //#define E3_DIR_PIN 33
  88. //#define E3_ENABLE_PIN 37
  89. //#ifndef E3_CS_PIN
  90. // #define E3_CS_PIN 6
  91. //#endif
  92. //#define Z2_STEP_PIN 29
  93. //#define Z2_DIR_PIN 27
  94. //#define Z2_ENABLE_PIN 31
  95. //#ifndef Z2_CS_PIN
  96. // #define Z2_CS_PIN 39
  97. //#endif
  98. // Microstepping pins - Mapping not from fastio.h (?)
  99. //#define E3_MS1_PIN 67
  100. //#define E3_MS2_PIN 68
  101. //#define E3_MS3_PIN 69
  102. //#define Z2_MS1_PIN 67 // shared with E3_MS1_PIN
  103. //#define Z2_MS2_PIN 68 // shared with E3_MS2_PIN
  104. //#define Z2_MS3_PIN 69 // shared with E3_MS3_PIN
  105. //
  106. // Temperature Sensors
  107. //
  108. #define TEMP_0_PIN 0 // Analog Input
  109. #define TEMP_1_PIN 1 // Analog Input
  110. #define TEMP_2_PIN 2 // Analog Input
  111. #define TEMP_3_PIN 3 // Analog Input
  112. #define TEMP_4_PIN 5 // dummy so will compile when PINS_DEBUGGING is enabled
  113. #define TEMP_BED_PIN 4 // Analog Input
  114. // SPI for Max6675 or Max31855 Thermocouple
  115. #if DISABLED(SDSUPPORT)
  116. #define MAX6675_SS 53
  117. #else
  118. #define MAX6675_SS 49
  119. #endif
  120. //
  121. // Heaters / Fans
  122. //
  123. #define HEATER_0_PIN 13
  124. #define HEATER_1_PIN 12
  125. #define HEATER_2_PIN 11
  126. #define HEATER_BED_PIN 7 // BED
  127. #define FAN_PIN 9
  128. #define FAN1_PIN 8
  129. //
  130. // Misc. Functions
  131. //
  132. #define SDSS 4
  133. #define PS_ON_PIN 40
  134. // I2C EEPROM with 8K of space
  135. #define I2C_EEPROM
  136. #define E2END 0x1FFF
  137. //
  138. // LCD / Controller
  139. //
  140. #if ENABLED(ULTRA_LCD)
  141. #if ENABLED(RADDS_DISPLAY)
  142. #define LCD_PINS_RS 42
  143. #define LCD_PINS_ENABLE 43
  144. #define LCD_PINS_D4 44
  145. #define LCD_PINS_D5 45
  146. #define LCD_PINS_D6 46
  147. #define LCD_PINS_D7 47
  148. #define BEEPER_PIN 41
  149. #define BTN_EN1 50
  150. #define BTN_EN2 52
  151. #define BTN_ENC 48
  152. #define BTN_BACK 71
  153. #undef SDSS
  154. #define SDSS 10
  155. #define SD_DETECT_PIN 14
  156. #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  157. #define LCD_PINS_RS 46
  158. #define LCD_PINS_ENABLE 47
  159. #define LCD_PINS_D4 44
  160. #define BEEPER_PIN 41
  161. #define BTN_EN1 50
  162. #define BTN_EN2 52
  163. #define BTN_ENC 48
  164. #elif ENABLED(SSD1306_OLED_I2C_CONTROLLER)
  165. #define BTN_EN1 50
  166. #define BTN_EN2 52
  167. #define BTN_ENC 48
  168. #define BEEPER_PIN 41
  169. #define LCD_SDSS 10
  170. #define SD_DETECT_PIN 14
  171. #elif ENABLED(SPARK_FULL_GRAPHICS)
  172. #define LCD_PINS_D4 29
  173. #define LCD_PINS_ENABLE 27
  174. #define LCD_PINS_RS 25
  175. #define BTN_EN1 35
  176. #define BTN_EN2 33
  177. #define BTN_ENC 37
  178. #endif // SPARK_FULL_GRAPHICS
  179. #endif // ULTRA_LCD