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

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