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_MKS_BASE_14.h 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. * MKS BASE v1.4
  24. */
  25. #if HOTENDS > 2 || E_STEPPERS > 2
  26. #error "MKS BASE 1.4 only supports up to 2 hotends / E-steppers. Comment out this line to continue."
  27. #endif
  28. #define BOARD_NAME "MKS BASE 1.4"
  29. //
  30. // Heaters / Fans
  31. //
  32. #define MOSFET_D_PIN 7 // PH4 ** Pin16 ** PWM7 //E1
  33. #define FAN_PIN 9 // PH6 ** Pin18 ** PWM9
  34. // Other Mods
  35. #define CASE_LIGHT_PIN 11 // PB5 ** Pin24 ** PWM11
  36. #define SERVO3_PIN 12 // PB6 ** Pin25 ** D12
  37. #define PS_ON_PIN 2 // X+ // PE4 ** Pin6 ** PWM2 **MUST BE HARDWARE PWM
  38. #define FILWIDTH_PIN 15 // Y+ // PJ0 ** Pin63 ** USART3_RX **Pin should have a pullup!
  39. #define FIL_RUNOUT_PIN 19 // Z+ // PD2 ** Pin45 ** USART1_RX
  40. //
  41. // M3/M4/M5 - Spindle/Laser Control
  42. //
  43. #define SPINDLE_LASER_PWM_PIN 2 // X+ // PE4 ** Pin6 ** PWM2 **MUST BE HARDWARE PWM
  44. #define SPINDLE_LASER_ENABLE_PIN 15 // Y+ // PJ0 ** Pin63 ** USART3_RX **Pin should have a pullup!
  45. #define SPINDLE_DIR_PIN 19 // Z+ // PD2 ** Pin45 ** USART1_RX
  46. //
  47. // Microstepping pins
  48. //
  49. #define X_MS1_PIN 5 // PE3 ** Pin5 ** PWM5
  50. #define X_MS2_PIN 6 // PH3 ** Pin15 ** PWM6
  51. #define Y_MS1_PIN 59 // PF5 ** Pin92 ** A5
  52. #define Y_MS2_PIN 58 // PF4 ** Pin93 ** A4
  53. #define Z_MS1_PIN 22 // PA0 ** Pin78 ** D22
  54. #define Z_MS2_PIN 39 // PG2 ** Pin70 ** D39
  55. #define E0_MS1_PIN 64 // PK2 ** Pin87 ** A10
  56. #define E0_MS2_PIN 63 // PK1 ** Pin88 ** A9
  57. #define E1_MS1_PIN 57 // PF3 ** Pin94 ** A3
  58. #define E1_MS2_PIN 4 // PG5 ** Pin1 ** PWM4
  59. #include "pins_RAMPS.h"
  60. /*
  61. Available connectors on MKS BASE v1.4
  62. =======
  63. | GND |
  64. |-----| E0
  65. | 10 | (10) PB4 ** Pin23 ** PWM10
  66. |-----|
  67. | GND |
  68. |-----| E1
  69. | 7 | ( 7) PH4 ** Pin16 ** PWM7
  70. |-----|
  71. | GND |
  72. |-----| FAN
  73. | 9 | ( 9) PH6 ** Pin18 ** PWM9
  74. =======
  75. =======
  76. | GND |
  77. |-----| Heated Bed
  78. | 8 | ( 8) PH5 ** Pin17 ** PWM8
  79. =======
  80. ==========
  81. | 12-24V |
  82. |--------| Power
  83. | GND |
  84. ==========
  85. XS3 Connector
  86. =================
  87. | 65 | GND | 5V | (65) PK3 ** Pin86 ** A11
  88. |----|-----|----|
  89. | 66 | GND | 5V | (66) PK4 ** Pin85 ** A12
  90. =================
  91. Servos Connector
  92. =================
  93. | 11 | GND | 5V | (11) PB5 ** Pin24 ** PWM11
  94. |----|-----|----|
  95. | 12 | GND | 5V | (12) PB6 ** Pin25 ** PWM12
  96. =================
  97. ICSP
  98. =================
  99. | 5V | 51 | GND | (51) PB2 ** Pin21 ** SPI_MOSI
  100. |----|----|-----|
  101. | 50 | 52 | RST | (50) PB3 ** Pin22 ** SPI_MISO
  102. ================= (52) PB1 ** Pin20 ** SPI_SCK
  103. XS6/AUX-1 Connector
  104. ======================
  105. | 5V | GND | NC | 20 | (20) PD1 ** Pin44 ** I2C_SDA
  106. |----|-----|----|----|
  107. | 50 | 51 | 52 | 21 | (50) PB3 ** Pin22 ** SPI_MISO
  108. ====================== (51) PB2 ** Pin21 ** SPI_MOSI
  109. (52) PB1 ** Pin20 ** SPI_SCK
  110. (21) PD0 ** Pin43 ** I2C_SCL
  111. Temperature
  112. ==================================
  113. | GND | 69 | GND | 68 | GND | 67 |
  114. ==================================
  115. (69) PK7 ** Pin82 ** A15
  116. (68) PK6 ** Pin83 ** A14
  117. (67) PK5 ** Pin84 ** A13
  118. Limit Switches
  119. ============
  120. | 2 | GND | X+ ( 2) PE4 ** Pin6 ** PWM2
  121. |----|-----|
  122. | 3 | GND | X- ( 3) PE5 ** Pin7 ** PWM3
  123. |----|-----|
  124. | 15 | GND | Y+ (15) PJ0 ** Pin63 ** USART3_RX
  125. |----|-----|
  126. | 14 | GND | Y- (14) PJ1 ** Pin64 ** USART3_TX
  127. |----|-----|
  128. | 19 | GND | Z+ (19) PD2 ** Pin45 ** USART1_RX
  129. |----|-----|
  130. | 18 | GND | Z- (18) PD3 ** Pin46 ** USART1_TX
  131. ============
  132. EXP1
  133. ============
  134. | 37 | 35 | (37) PC0 ** Pin53 ** D37
  135. |-----|----| (35) PC2 ** Pin55 ** D35
  136. | 17 | 16 | (17) PH0 ** Pin12 ** USART2_RX
  137. |-----|----| (16) PH1 ** Pin13 ** USART2_TX
  138. | 23 | 25 | (23) PA1 ** Pin77 ** D23
  139. |-----|----| (25) PA3 ** Pin75 ** D25
  140. | 27 | 29 | (27) PA5 ** Pin73 ** D27
  141. |-----|----| (29) PA7 ** Pin71 ** D29
  142. | GND | 5V |
  143. ============
  144. EXP2
  145. ============
  146. | 50 | 52 | (50) PB3 ** Pin22 ** SPI_MISO
  147. |-----|----| (52) PB1 ** Pin20 ** SPI_SCK
  148. | 31 | 53 | (31) PC6 ** Pin59 ** D31
  149. |-----|----| (53) PB0 ** Pin19 ** SPI_SS
  150. | 33 | 51 | (33) PC4 ** Pin57 ** D33
  151. |-----|----| (51) PB2 ** Pin21 ** SPI_MOSI
  152. | 49 | 41 | (49) PL0 ** Pin35 ** D49
  153. |-----|----| (41) PG0 ** Pin51 ** D41
  154. | GND | NC |
  155. ============
  156. */