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_AZTEEG_X3_PRO.h 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. * AZTEEG_X3_PRO (Arduino Mega) pin assignments
  24. */
  25. #if HOTENDS > 5 || E_STEPPERS > 5
  26. #error "Azteeg X3 Pro supports up to 5 hotends / E-steppers. Comment out this line to continue."
  27. #endif
  28. #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
  29. #define CASE_LIGHT_PIN 44 // Define before RAMPS pins include
  30. #endif
  31. #define BOARD_NAME "Azteeg X3 Pro"
  32. #include "pins_RAMPS.h"
  33. #ifndef __AVR_ATmega2560__
  34. #error "Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu."
  35. #endif
  36. // DIGIPOT slave addresses
  37. #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
  38. #define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
  39. //
  40. // Servos
  41. //
  42. // Tested this pin with bed leveling on a Delta with 1 servo.
  43. // Physical wire attachment on EXT1: GND, 5V, D47.
  44. //
  45. #undef SERVO0_PIN
  46. #define SERVO0_PIN 47
  47. //
  48. // Limit Switches
  49. //
  50. // Swap the MIN and MAX endstop pins because the X3 Pro comes with only
  51. // MIN endstop pin headers soldered onto the board.
  52. //
  53. #if ENABLED(DELTA)
  54. #undef X_MIN_PIN
  55. #undef X_MAX_PIN
  56. #undef Y_MIN_PIN
  57. #undef Y_MAX_PIN
  58. #undef Z_MIN_PIN
  59. #undef Z_MAX_PIN
  60. #define X_MIN_PIN 2
  61. #define X_MAX_PIN 3
  62. #define Y_MIN_PIN 15
  63. #define Y_MAX_PIN 14
  64. #define Z_MIN_PIN 19
  65. #define Z_MAX_PIN 18
  66. #endif
  67. //
  68. // Z Probe (when not Z_MIN_PIN)
  69. //
  70. #ifndef Z_MIN_PROBE_PIN
  71. #define Z_MIN_PROBE_PIN 18
  72. #endif
  73. //
  74. // Steppers
  75. //
  76. #define E2_STEP_PIN 23
  77. #define E2_DIR_PIN 25
  78. #define E2_ENABLE_PIN 40
  79. #define E3_STEP_PIN 27
  80. #define E3_DIR_PIN 29
  81. #define E3_ENABLE_PIN 41
  82. #define E4_STEP_PIN 43
  83. #define E4_DIR_PIN 37
  84. #define E4_ENABLE_PIN 42
  85. //
  86. // Temperature Sensors
  87. //
  88. #define TEMP_2_PIN 12 // Analog Input
  89. #define TEMP_3_PIN 11 // Analog Input
  90. #define TEMP_4_PIN 10 // Analog Input
  91. #define TC1 4 // Analog Input (Thermo couple on Azteeg X3Pro)
  92. #define TC2 5 // Analog Input (Thermo couple on Azteeg X3Pro)
  93. //
  94. // Heaters / Fans
  95. //
  96. #define HEATER_2_PIN 16
  97. #define HEATER_3_PIN 17
  98. #define HEATER_4_PIN 4
  99. #define HEATER_5_PIN 5
  100. #define HEATER_6_PIN 6
  101. #define HEATER_7_PIN 11
  102. #undef FAN_PIN
  103. #define FAN_PIN 6 // Part Cooling System
  104. #ifndef CONTROLLER_FAN_PIN
  105. #define CONTROLLER_FAN_PIN 4 // Pin used for the fan to cool motherboard (-1 to disable)
  106. #endif
  107. // Fans/Water Pump to cool the hotend cool side.
  108. #define ORIG_E0_AUTO_FAN_PIN 5
  109. #define ORIG_E1_AUTO_FAN_PIN 5
  110. #define ORIG_E2_AUTO_FAN_PIN 5
  111. #define ORIG_E3_AUTO_FAN_PIN 5
  112. //
  113. // LCD / Controller
  114. //
  115. #undef BEEPER_PIN
  116. #define BEEPER_PIN 33
  117. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  118. #undef SD_DETECT_PIN
  119. #define SD_DETECT_PIN 49 // For easy adapter board
  120. #undef BEEPER_PIN
  121. #define BEEPER_PIN 12 // 33 isn't physically available to the LCD display
  122. #else
  123. #define STAT_LED_RED_PIN 32
  124. #define STAT_LED_BLUE_PIN 35
  125. #endif
  126. //
  127. // Misc. Functions
  128. //
  129. #if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && defined(DOGLCD_A0) && DOGLCD_A0 == CASE_LIGHT_PIN
  130. #undef DOGLCD_A0 // Steal pin 44 for the case light; if you have a Viki2 and have connected it
  131. #define DOGLCD_A0 57 // following the Panucatt wiring diagram, you may need to tweak these pin assignments
  132. // as the wiring diagram uses pin 44 for DOGLCD_A0
  133. #endif
  134. //
  135. // M3/M4/M5 - Spindle/Laser Control
  136. //
  137. #undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3pro board
  138. #undef SPINDLE_LASER_ENABLE_PIN
  139. #undef SPINDLE_DIR_PIN
  140. #if ENABLED(SPINDLE_LASER_ENABLE) // EXP2 header
  141. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  142. #undef BTN_EN2
  143. #define BTN_EN2 31 // need 7 for the spindle speed PWM
  144. #endif
  145. #define SPINDLE_LASER_PWM_PIN 7 // must have a hardware PWM
  146. #define SPINDLE_LASER_ENABLE_PIN 20 // Pin should have a pullup!
  147. #define SPINDLE_DIR_PIN 21
  148. #endif