My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

pins_MIGHTYBOARD_REVE.h 5.9KB

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