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_MIGHTYBOARD_REVE.h 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. * Mightyboard Rev.E pin assignments
  24. */
  25. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  26. #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
  27. #endif
  28. #define DEFAULT_MACHINE_NAME "MB Replicator"
  29. #define BOARD_NAME "Mightyboard"
  30. #define LARGE_FLASH true
  31. //
  32. // Servos
  33. //
  34. #define SERVO0_PIN 36 // C1 (1280-EX1)
  35. #define SERVO1_PIN 37 // C0 (1280-EX2)
  36. #define SERVO2_PIN 40 // G1 (1280-EX3)
  37. #define SERVO3_PIN 41 // G0 (1280-EX4)
  38. //
  39. // Limit Switches
  40. //
  41. #define X_MIN_PIN 49 // L0
  42. #define X_MAX_PIN 48 // L1
  43. #define Y_MIN_PIN 47 // L2
  44. #define Y_MAX_PIN 46 // L3
  45. #define Z_MIN_PIN 43 // L6
  46. #define Z_MAX_PIN 42 // L7
  47. //
  48. // Z Probe (when not Z_MIN_PIN)
  49. //
  50. #ifndef Z_MIN_PROBE_PIN
  51. #define Z_MIN_PROBE_PIN 42
  52. #endif
  53. //
  54. // Steppers
  55. //
  56. #define X_STEP_PIN 55 // F1
  57. #define X_DIR_PIN 54 // F0
  58. #define X_ENABLE_PIN 56 // F2
  59. #define Y_STEP_PIN 59 // F5
  60. #define Y_DIR_PIN 58 // F4
  61. #define Y_ENABLE_PIN 60 // F6
  62. #define Z_STEP_PIN 63 // K1
  63. #define Z_DIR_PIN 62 // K0
  64. #define Z_ENABLE_PIN 64 // K2
  65. #define E0_STEP_PIN 25 // A3
  66. #define E0_DIR_PIN 24 // A2
  67. #define E0_ENABLE_PIN 26 // A4
  68. #define E1_STEP_PIN 29 // A7
  69. #define E1_DIR_PIN 28 // A6
  70. #define E1_ENABLE_PIN 39 // G2
  71. //
  72. // I2C Digipots - MCP4018
  73. // Address 5E (2F << 1)
  74. // Set from 0 - 127 with stop bit.
  75. // (Ex. 3F << 1 | 1)
  76. //
  77. #define DIGIPOTS_I2C_SCL 76 // J5
  78. #define DIGIPOTS_I2C_SDA_X 57 // F3
  79. #define DIGIPOTS_I2C_SDA_Y 61 // F7
  80. #define DIGIPOTS_I2C_SDA_Z 65 // K3
  81. #define DIGIPOTS_I2C_SDA_E0 27 // A5
  82. #define DIGIPOTS_I2C_SDA_E1 77 // J6
  83. //
  84. // Temperature Sensors
  85. //
  86. #define TEMP_BED_PIN 69 // K7
  87. // SPI for Max6675 or Max31855 Thermocouple
  88. // Uses a separate SPI bus
  89. //
  90. // 3 E5 DO (SO)
  91. // 5 E3 CS1
  92. // 2 E4 CS2
  93. // 78 E2 SCK
  94. //
  95. #define THERMO_SCK_PIN 78 // E2
  96. #define THERMO_DO_PIN 3 // E5
  97. #define THERMO_CS1 5 // E3
  98. #define THERMO_CS2 2 // E4
  99. //
  100. // Augmentation for auto-assigning plugs
  101. //
  102. // Two thermocouple connectors allows for either
  103. // 2 extruders or 1 extruder and a heated bed.
  104. // With no heated bed, an additional 24V fan is possible.
  105. //
  106. #define MOSFET_A_PIN 6 // H3
  107. #define MOSFET_B_PIN 9 // B5
  108. #define MOSFET_C_PIN 45 // L4
  109. #define MOSFET_D_PIN 44 // L5
  110. #if HOTENDS > 1
  111. #if TEMP_SENSOR_BED
  112. #define IS_EEB
  113. #else
  114. #define IS_EEF
  115. #endif
  116. #elif TEMP_SENSOR_BED
  117. #define IS_EFB
  118. #else
  119. #define IS_EFF
  120. #endif
  121. //
  122. // Heaters / Fans (24V)
  123. //
  124. #define HEATER_0_PIN MOSFET_A_PIN
  125. #if ENABLED(IS_EFB) // Hotend, Fan, Bed
  126. #define FAN_PIN MOSFET_B_PIN
  127. #define HEATER_BED_PIN MOSFET_C_PIN
  128. #elif ENABLED(IS_EEF) // Hotend, Hotend, Fan
  129. #define HEATER_1_PIN MOSFET_B_PIN
  130. #define FAN_PIN MOSFET_C_PIN
  131. #elif ENABLED(IS_EEB) // Hotend, Hotend, Bed
  132. #define HEATER_1_PIN MOSFET_B_PIN
  133. #define HEATER_BED_PIN MOSFET_C_PIN
  134. #elif ENABLED(IS_EFF) // Hotend, Fan, Fan
  135. #define FAN_PIN MOSFET_B_PIN
  136. #define FAN1_PIN MOSFET_C_PIN
  137. #elif ENABLED(IS_SF) // Spindle, Fan
  138. #define FAN_PIN MOSFET_C_PIN
  139. #endif
  140. #ifndef FAN_PIN
  141. #define FAN_PIN MOSFET_D_PIN
  142. #endif
  143. //
  144. // Extruder Auto Fan Pins
  145. //
  146. #define EXTRUDER_0_AUTO_FAN 7 // H4
  147. #define EXTRUDER_1_AUTO_FAN 12 // B6
  148. //
  149. // Misc. Functions
  150. //
  151. #define LED_PIN 13 // B7
  152. #define CUTOFF_RESET_PIN 16 // H1
  153. #define CUTOFF_TEST_PIN 17 // H0
  154. //
  155. // LCD / Controller
  156. //
  157. // Replicator uses a 3-wire SR controller with HD44780
  158. // For now, pretend it's the SAV
  159. //
  160. #define SAV_3DLCD
  161. #define SR_DATA_PIN 34 // C3
  162. #define SR_CLK_PIN 35 // C2
  163. #define SR_STROBE_PIN 33 // C4
  164. #define BTN_UP 75 // J4
  165. #define BTN_DOWN 73 // J3
  166. #define BTN_LEFT 72 // J2
  167. #define BTN_RIGHT 14 // J1
  168. #define BTN_CENTER 15 // J0
  169. #define BTN_ENC BTN_CENTER
  170. #define BEEPER_PIN 4 // G5
  171. #define STAT_LED_RED 32 // C5
  172. #define STAT_LED_BLUE 31 // C6 (Actually green)
  173. //
  174. // SD Card
  175. //
  176. #define SDSS 53 // B0
  177. #define SD_DETECT_PIN 30 // C7