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

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