My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pins_RAMPS_FD_V1.h 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. * RAMPS-FD
  24. *
  25. * No EEPROM
  26. * Use 4k7 thermistor tables
  27. */
  28. #ifndef __SAM3X8E__
  29. #error "Oops! Make sure you have 'Arduino Due' selected from the 'Tools -> Boards' menu."
  30. #endif
  31. #ifndef BOARD_NAME
  32. #define BOARD_NAME "RAMPS-FD"
  33. #endif
  34. #define INVERTED_HEATER_PINS
  35. #define INVERTED_BED_PINS
  36. #define INVERTED_FAN_PINS
  37. //
  38. // Servos
  39. //
  40. #define SERVO0_PIN 7
  41. #define SERVO1_PIN 6
  42. #define SERVO2_PIN 5
  43. #define SERVO3_PIN 3
  44. //
  45. // Limit Switches
  46. //
  47. #define X_MIN_PIN 22
  48. #define X_MAX_PIN 30
  49. #define Y_MIN_PIN 24
  50. #define Y_MAX_PIN 38
  51. #define Z_MIN_PIN 26
  52. #define Z_MAX_PIN 34
  53. //
  54. // Steppers
  55. //
  56. #define X_STEP_PIN 63
  57. #define X_DIR_PIN 62
  58. #define X_ENABLE_PIN 48
  59. #ifndef X_CS_PIN
  60. #define X_CS_PIN 68
  61. #endif
  62. #define Y_STEP_PIN 65
  63. #define Y_DIR_PIN 64
  64. #define Y_ENABLE_PIN 46
  65. #ifndef Y_CS_PIN
  66. #define Y_CS_PIN 60
  67. #endif
  68. #define Z_STEP_PIN 67
  69. #define Z_DIR_PIN 66
  70. #define Z_ENABLE_PIN 44
  71. #ifndef Z_CS_PIN
  72. #define Z_CS_PIN 58
  73. #endif
  74. #define E0_STEP_PIN 36
  75. #define E0_DIR_PIN 28
  76. #define E0_ENABLE_PIN 42
  77. #ifndef E0_CS_PIN
  78. #define E0_CS_PIN 67
  79. #endif
  80. #define E1_STEP_PIN 43
  81. #define E1_DIR_PIN 41
  82. #define E1_ENABLE_PIN 39
  83. #ifndef E1_CS_PIN
  84. #define E1_CS_PIN 61
  85. #endif
  86. #define E2_STEP_PIN 32
  87. #define E2_DIR_PIN 47
  88. #define E2_ENABLE_PIN 45
  89. #ifndef E2_CS_PIN
  90. #define E2_CS_PIN 59
  91. #endif
  92. //
  93. // Temperature Sensors
  94. //
  95. #define TEMP_0_PIN 1 // Analog Input
  96. #define TEMP_1_PIN 2 // Analog Input
  97. #define TEMP_2_PIN 3 // Analog Input
  98. #define TEMP_3_PIN -1 // fewer compiler warnings
  99. #define TEMP_4_PIN -1 // fewer compiler warnings
  100. #define TEMP_BED_PIN 0 // Analog Input
  101. // SPI for Max6675 or Max31855 Thermocouple
  102. #if DISABLED(SDSUPPORT)
  103. #define MAX6675_SS 53
  104. #else
  105. #define MAX6675_SS 49
  106. #endif
  107. //
  108. // Heaters / Fans
  109. //
  110. #define HEATER_0_PIN 9
  111. #define HEATER_1_PIN 10
  112. #define HEATER_2_PIN 11
  113. #define HEATER_BED_PIN 8
  114. #ifndef FAN_PIN
  115. #define FAN_PIN 12
  116. #endif
  117. #define CONTROLLER_FAN_PIN -1
  118. //
  119. // Misc. Functions
  120. //
  121. #define SDSS 4
  122. #define LED_PIN 13
  123. //
  124. // LCD / Controller
  125. //
  126. #if ENABLED(ULTRA_LCD)
  127. // ramps-fd lcd adaptor
  128. #define BEEPER_PIN 37
  129. #define BTN_EN1 33
  130. #define BTN_EN2 31
  131. #define BTN_ENC 35
  132. #define SD_DETECT_PIN 49
  133. #if ENABLED(NEWPANEL)
  134. #define LCD_PINS_RS 16
  135. #define LCD_PINS_ENABLE 17
  136. #define LCD_PINS_D4 23
  137. #define LCD_PINS_D5 25
  138. #define LCD_PINS_D6 27
  139. #define LCD_PINS_D7 29
  140. #endif
  141. #if ENABLED(MINIPANEL)
  142. #define DOGLCD_CS 25
  143. #define DOGLCD_A0 27
  144. #endif
  145. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  146. #define DOGLCD_A0 16
  147. #define KILL_PIN 51
  148. #define STAT_LED_BLUE_PIN 29
  149. #define STAT_LED_RED_PIN 23
  150. #define DOGLCD_CS 17
  151. #define DOGLCD_SCK 76 //SCK_PIN - required so that the DUE hardware SPI will be used
  152. #define DOGLCD_MOSI 75 //MOSI_PIN - required so that the DUE hardware SPI will be used
  153. #define DOGLCD_MISO 74 //MISO_PIN
  154. #endif
  155. #endif // ULTRA_LCD
  156. #if ENABLED(HAVE_TMC2208)
  157. /**
  158. * TMC2208 stepper drivers
  159. *
  160. * Hardware serial communication ports.
  161. * If undefined software serial is used according to the pins below
  162. */
  163. //#define X_HARDWARE_SERIAL Serial1
  164. //#define X2_HARDWARE_SERIAL Serial1
  165. //#define Y_HARDWARE_SERIAL Serial1
  166. //#define Y2_HARDWARE_SERIAL Serial1
  167. //#define Z_HARDWARE_SERIAL Serial1
  168. //#define Z2_HARDWARE_SERIAL Serial1
  169. //#define E0_HARDWARE_SERIAL Serial1
  170. //#define E1_HARDWARE_SERIAL Serial1
  171. //#define E2_HARDWARE_SERIAL Serial1
  172. //#define E3_HARDWARE_SERIAL Serial1
  173. //#define E4_HARDWARE_SERIAL Serial1
  174. #endif
  175. //
  176. // M3/M4/M5 - Spindle/Laser Control
  177. //
  178. #if ENABLED(SPINDLE_LASER_ENABLE) && !PIN_EXISTS(SPINDLE_LASER_ENABLE)
  179. #if HOTENDS < 3
  180. #define SPINDLE_LASER_ENABLE_PIN 45 // Use E2 ENA
  181. #define SPINDLE_LASER_PWM_PIN 12 // MUST BE HARDWARE PWM
  182. #define SPINDLE_DIR_PIN 47 // Use E2 DIR
  183. #endif
  184. #endif