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_COHESION3D_REMIX.h 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. * Copyright (C) 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  5. *
  6. * Based on Sprinter and grbl.
  7. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation, either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. */
  23. /**
  24. * Cohesion3D ReMix pin assignments
  25. */
  26. #ifndef TARGET_LPC1768
  27. #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
  28. #endif
  29. #ifndef BOARD_NAME
  30. #define BOARD_NAME "Cohesion3D ReMix"
  31. #endif
  32. //
  33. // Servos
  34. //
  35. #define SERVO0_PIN P2_04
  36. //
  37. // Limit Switches
  38. //
  39. #define X_MIN_PIN P1_24 // 10k pullup to 3.3V
  40. #define X_MAX_PIN P1_25 // 10k pullup to 3.3V
  41. #define Y_MIN_PIN P1_26 // 10k pullup to 3.3V
  42. #define Y_MAX_PIN P1_27 // 10k pullup to 3.3V
  43. #define Z_MIN_PIN P1_28 // 10k pullup to 3.3V
  44. #define Z_MAX_PIN P1_29 // 10k pullup to 3.3V
  45. //
  46. // Steppers
  47. //
  48. #define X_STEP_PIN P2_00
  49. #define X_DIR_PIN P0_05
  50. #define X_ENABLE_PIN P0_04
  51. #define X_CS_PIN P1_10 // Ethernet Expansion - Pin 9
  52. #define Y_STEP_PIN P2_01
  53. #define Y_DIR_PIN P0_11
  54. #define Y_ENABLE_PIN P0_10
  55. #define Y_CS_PIN P1_09 // Ethernet Expansion - Pin 10
  56. #define Z_STEP_PIN P2_02
  57. #define Z_DIR_PIN P0_20
  58. #define Z_ENABLE_PIN P0_19
  59. #define Z_CS_PIN P1_00 // Ethernet Expansion - Pin 11
  60. #define E0_STEP_PIN P2_03
  61. #define E0_DIR_PIN P0_22
  62. #define E0_ENABLE_PIN P0_21
  63. #define E0_CS_PIN P1_04 // Ethernet Expansion - Pin 12
  64. #define E1_STEP_PIN P2_08
  65. #define E1_DIR_PIN P2_13
  66. #define E1_ENABLE_PIN P4_29
  67. #define E1_CS_PIN P1_01 // Ethernet Expansion - Pin 14
  68. #define E2_STEP_PIN P1_20
  69. #define E2_DIR_PIN P1_19
  70. #define E2_ENABLE_PIN P1_21
  71. #define E2_CS_PIN P1_18 // FET 6
  72. //
  73. // Default pins for TMC software SPI
  74. //
  75. #if ENABLED(TMC_USE_SW_SPI)
  76. #ifndef TMC_SW_MOSI
  77. #define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
  78. #endif
  79. #ifndef TMC_SW_MISO
  80. #define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6
  81. #endif
  82. #ifndef TMC_SW_SCK
  83. #define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
  84. #endif
  85. #endif
  86. //
  87. // Analog Inputs
  88. // 3.3V max when defined as an analog input
  89. //
  90. #define TEMP_0_PIN 0 // P0_23
  91. #define TEMP_BED_PIN 1 // P0_24
  92. #define TEMP_1_PIN 2 // P0_25
  93. #if ENABLED(FILAMENT_WIDTH_SENSOR)
  94. #define FILWIDTH_PIN 3 // P0_26
  95. #else
  96. #define TEMP_2_PIN 3 // P0_26
  97. #endif
  98. //
  99. // Heaters / Fans
  100. //
  101. #define HEATER_BED_PIN P2_05
  102. #define HEATER_0_PIN P2_07 // FET 1
  103. #define HEATER_1_PIN P1_23 // FET 2
  104. #define HEATER_2_PIN P1_22 // FET 3
  105. #ifndef FAN_PIN
  106. #define FAN_PIN P2_06 // ReMix FET 4, Mini FET 3
  107. #endif
  108. //
  109. // Auto fans
  110. //
  111. #if HOTENDS == 3
  112. #define AUTO_FAN_PIN P1_18 // FET 6
  113. #else
  114. #define AUTO_FAN_PIN P1_22 // FET 3
  115. #endif
  116. #define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
  117. #define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
  118. #define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
  119. //
  120. // Misc. Functions
  121. //
  122. #define LED_PIN P4_28 // Play LED
  123. //
  124. // M3/M4/M5 - Spindle/Laser Control
  125. //
  126. #if ENABLED(SPINDLE_LASER_ENABLE)
  127. #undef HEATER_0_PIN
  128. #define SPINDLE_LASER_ENABLE_PIN P2_07 // FET 1
  129. #undef HEATER_BED_PIN
  130. #define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
  131. #undef FAN_PIN
  132. #define SPINDLE_DIR_PIN P2_06 // ReMix FET 4, Mini FET 3
  133. #endif
  134. //
  135. // LCD / Controller
  136. //
  137. // LCD_PINS_D5, D6, and D7 are not present in the EXP1 connector, and will need to be
  138. // defined to use the REPRAP_DISCOUNT_SMART_CONTROLLER.
  139. //
  140. // A remote SD card is currently not supported because the pins routed to the EXP2
  141. // connector are shared with the onboard SD card, and Marlin does not support reading
  142. // G-code files from the onboard SD card.
  143. //
  144. #if ENABLED(ULTRA_LCD)
  145. #define BEEPER_PIN P1_31 // EXP1-1
  146. #define SD_DETECT_PIN P0_27 // EXP2-7
  147. #define BTN_EN1 P3_26 // EXP2-5
  148. #define BTN_EN2 P3_25 // EXP2-3
  149. #define BTN_ENC P1_30 // EXP1-2
  150. #define LCD_PINS_RS P0_16 // EXP1-4
  151. #define LCD_SDSS P0_28 // EXP2-4
  152. #define LCD_PINS_ENABLE P0_18 // EXP1-3
  153. #define LCD_PINS_D4 P0_15 // EXP1-5
  154. #define KILL_PIN P2_11 // EXP2-10
  155. #if ENABLED(SDSUPPORT)
  156. #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
  157. #endif
  158. #endif // ULTRA_LCD
  159. //
  160. // Ethernet pins
  161. //
  162. #define ENET_MDIO P1_17
  163. #define ENET_RX_ER P1_14
  164. #define ENET_RXD1 P1_10
  165. #define ENET_MOC P1_16
  166. #define REF_CLK P1_15
  167. #define ENET_RXD0 P1_09
  168. #define ENET_CRS P1_08
  169. #define ENET_TX_EN P1_04
  170. #define ENET_TXD0 P1_00
  171. #define ENET_TXD1 P1_01