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_COHESION3D_MINI.h 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2019 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. * Cohesion3D Mini pin assignments
  24. */
  25. #ifndef LPC1769
  26. #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
  27. #endif
  28. #define BOARD_NAME "Cohesion3D Mini"
  29. //
  30. // Servos
  31. //
  32. #define SERVO0_PIN P1_23
  33. //
  34. // Limit Switches
  35. //
  36. #define X_MIN_PIN P1_24 // 10k pullup to 3.3V
  37. #define X_MAX_PIN P1_25 // 10k pullup to 3.3V
  38. #define Y_MIN_PIN P1_26 // 10k pullup to 3.3V
  39. #define Y_MAX_PIN P1_27 // 10k pullup to 3.3V
  40. #define Z_MIN_PIN P1_28 // 10k pullup to 3.3V
  41. #define Z_MAX_PIN P1_29 // 10k pullup to 3.3V
  42. //
  43. // Steppers
  44. //
  45. #define X_STEP_PIN P2_00
  46. #define X_DIR_PIN P0_05
  47. #define X_ENABLE_PIN P0_04
  48. #define X_CS_PIN P1_10 // Ethernet Expansion - Pin 9
  49. #define Y_STEP_PIN P2_01
  50. #define Y_DIR_PIN P0_11
  51. #define Y_ENABLE_PIN P0_10
  52. #define Y_CS_PIN P1_09 // Ethernet Expansion - Pin 10
  53. #define Z_STEP_PIN P2_02
  54. #define Z_DIR_PIN P0_20
  55. #define Z_ENABLE_PIN P0_19
  56. #define Z_CS_PIN P1_00 // Ethernet Expansion - Pin 11
  57. #define E0_STEP_PIN P2_03
  58. #define E0_DIR_PIN P0_22
  59. #define E0_ENABLE_PIN P0_21
  60. #define E0_CS_PIN P1_04 // Ethernet Expansion - Pin 12
  61. //
  62. // Default pins for TMC software SPI
  63. //
  64. #if ENABLED(TMC_USE_SW_SPI)
  65. #ifndef TMC_SW_MOSI
  66. #define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
  67. #endif
  68. #ifndef TMC_SW_MISO
  69. #define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6
  70. #endif
  71. #ifndef TMC_SW_SCK
  72. #define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
  73. #endif
  74. #endif
  75. //
  76. // Analog Inputs
  77. // 3.3V max when defined as an analog input
  78. //
  79. #define TEMP_0_PIN 0 // P0_23
  80. #define TEMP_BED_PIN 1 // P0_24
  81. //
  82. // Heaters / Fans
  83. //
  84. #define HEATER_BED_PIN P2_05
  85. #define HEATER_0_PIN P2_07 // FET 1
  86. #ifndef FAN_PIN
  87. #define FAN_PIN P2_06 // FET 3
  88. #endif
  89. //
  90. // Auto fans
  91. //
  92. #define AUTO_FAN_PIN P2_04 // FET 4
  93. #define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
  94. #define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
  95. #define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
  96. //
  97. // Misc. Functions
  98. //
  99. #define LED_PIN P4_28 // Play LED
  100. //
  101. // M3/M4/M5 - Spindle/Laser Control
  102. //
  103. #if HAS_CUTTER
  104. #undef HEATER_0_PIN
  105. #define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
  106. #undef HEATER_BED_PIN
  107. #define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
  108. #undef FAN_PIN
  109. #define SPINDLE_DIR_PIN P2_06 // FET 3
  110. #endif
  111. //
  112. // LCD / Controller
  113. //
  114. // LCD_PINS_D5, D6, and D7 are not present in the EXP1 connector, and will need to be
  115. // defined to use the REPRAP_DISCOUNT_SMART_CONTROLLER.
  116. //
  117. // A remote SD card is currently not supported because the pins routed to the EXP2
  118. // connector are shared with the onboard SD card, and Marlin does not support reading
  119. // G-code files from the onboard SD card.
  120. //
  121. #if HAS_SPI_LCD
  122. #define BEEPER_PIN P0_27 // EXP2-7 - open drain
  123. #define BTN_EN1 P3_26 // EXP2-5
  124. #define BTN_EN2 P3_25 // EXP2-3
  125. #define BTN_ENC P1_30 // EXP1-2
  126. #define LCD_PINS_RS P0_16 // EXP1-4
  127. #define LCD_SDSS P0_28 // EXP2-4
  128. #define LCD_PINS_ENABLE P0_18 // EXP1-3
  129. #define LCD_PINS_D4 P0_15 // EXP1-5
  130. #define KILL_PIN P2_11 // EXP2-10
  131. #if ENABLED(SDSUPPORT)
  132. #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
  133. #endif
  134. #endif // HAS_SPI_LCD
  135. //
  136. // Ethernet pins
  137. //
  138. #define ENET_MDIO P1_17
  139. #define ENET_RX_ER P1_14
  140. #define ENET_RXD1 P1_10
  141. #define ENET_MOC P1_16
  142. #define REF_CLK P1_15
  143. #define ENET_RXD0 P1_09
  144. #define ENET_CRS P1_08
  145. #define ENET_TX_EN P1_04
  146. #define ENET_TXD0 P1_00
  147. #define ENET_TXD1 P1_01