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_EINSY_RETRO.h 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. * Einsy-Retro pin assignments
  25. */
  26. #if NOT_TARGET(__AVR_ATmega2560__)
  27. #error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
  28. #endif
  29. #define BOARD_INFO_NAME "Einsy Retro"
  30. //
  31. // TMC2130 Configuration_adv defaults for EinsyRetro
  32. //
  33. #if !AXIS_DRIVER_TYPE_X(TMC2130) || !AXIS_DRIVER_TYPE_Y(TMC2130) || !AXIS_DRIVER_TYPE_Z(TMC2130) || !AXIS_DRIVER_TYPE_E0(TMC2130)
  34. #error "You must set ([XYZ]|E0)_DRIVER_TYPE to TMC2130 in Configuration.h for EinsyRetro."
  35. #endif
  36. // TMC2130 Diag Pins
  37. #define X_DIAG_PIN 64
  38. #define Y_DIAG_PIN 69
  39. #define Z_DIAG_PIN 68
  40. #define E0_DIAG_PIN 65
  41. //
  42. // Limit Switches
  43. //
  44. // Only use Diag Pins when SENSORLESS_HOMING is enabled for the TMC2130 drivers.
  45. // Otherwise use a physical endstop based configuration.
  46. //
  47. // SERVO0_PIN and Z_MIN_PIN configuration for BLTOUCH sensor when combined with SENSORLESS_HOMING.
  48. //
  49. #if DISABLED(SENSORLESS_HOMING)
  50. #define X_MIN_PIN 12 // X-
  51. #define Y_MIN_PIN 11 // Y-
  52. #define Z_MIN_PIN 10 // Z-
  53. #define X_MAX_PIN 81 // X+
  54. #define Y_MAX_PIN 57 // Y+
  55. #else
  56. #if X_HOME_DIR < 0
  57. #define X_MIN_PIN X_DIAG_PIN
  58. #define X_MAX_PIN 81 // X+
  59. #else
  60. #define X_MIN_PIN 12 // X-
  61. #define X_MAX_PIN X_DIAG_PIN
  62. #endif
  63. #if Y_HOME_DIR < 0
  64. #define Y_MIN_PIN Y_DIAG_PIN
  65. #define Y_MAX_PIN 57 // Y+
  66. #else
  67. #define Y_MIN_PIN 11 // Y-
  68. #define Y_MAX_PIN Y_DIAG_PIN
  69. #endif
  70. #if ENABLED(BLTOUCH)
  71. #define Z_MIN_PIN 11 // Y-MIN
  72. #define SERVO0_PIN 10 // Z-MIN
  73. #else
  74. #define Z_MIN_PIN 10
  75. #endif
  76. #endif
  77. #define Z_MAX_PIN 7
  78. //
  79. // Z Probe (when not Z_MIN_PIN)
  80. //
  81. #ifndef Z_MIN_PROBE_PIN
  82. #define Z_MIN_PROBE_PIN 10
  83. #endif
  84. //
  85. // Steppers
  86. //
  87. #define X_STEP_PIN 37
  88. #define X_DIR_PIN 49
  89. #define X_ENABLE_PIN 29
  90. #define X_CS_PIN 41
  91. #define Y_STEP_PIN 36
  92. #define Y_DIR_PIN 48
  93. #define Y_ENABLE_PIN 28
  94. #define Y_CS_PIN 39
  95. #define Z_STEP_PIN 35
  96. #define Z_DIR_PIN 47
  97. #define Z_ENABLE_PIN 27
  98. #define Z_CS_PIN 67
  99. #define E0_STEP_PIN 34
  100. #define E0_DIR_PIN 43
  101. #define E0_ENABLE_PIN 26
  102. #define E0_CS_PIN 66
  103. //
  104. // Temperature Sensors
  105. //
  106. #define TEMP_0_PIN 0 // Analog Input
  107. #define TEMP_1_PIN 1 // Analog Input
  108. #define TEMP_BED_PIN 2 // Analog Input
  109. //
  110. // Heaters / Fans
  111. //
  112. #define HEATER_0_PIN 3
  113. #define HEATER_BED_PIN 4
  114. #ifndef FAN_PIN
  115. #define FAN_PIN 8
  116. #endif
  117. #define FAN1_PIN 6
  118. //
  119. // Misc. Functions
  120. //
  121. #define SDSS 53
  122. #define LED_PIN 13
  123. #ifndef CASE_LIGHT_PIN
  124. #define CASE_LIGHT_PIN 9
  125. #endif
  126. //
  127. // M3/M4/M5 - Spindle/Laser Control
  128. //
  129. // use P1 connector for spindle pins
  130. #define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
  131. #define SPINDLE_LASER_ENA_PIN 18 // Pullup!
  132. #define SPINDLE_DIR_PIN 19
  133. //
  134. // Průša i3 MK2 Multiplexer Support
  135. //
  136. #define E_MUX0_PIN 17
  137. #define E_MUX1_PIN 16
  138. #define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
  139. //
  140. // LCD / Controller
  141. //
  142. #if ANY(HAS_WIRED_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
  143. #define KILL_PIN 32
  144. #if ANY(IS_ULTIPANEL, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
  145. #if ENABLED(CR10_STOCKDISPLAY)
  146. #define LCD_PINS_RS 85
  147. #define LCD_PINS_ENABLE 71
  148. #define LCD_PINS_D4 70
  149. #define BTN_EN1 18
  150. #define BTN_EN2 19
  151. #else
  152. #define LCD_PINS_RS 82
  153. #define LCD_PINS_ENABLE 18 // On 0.6b, use 61
  154. #define LCD_PINS_D4 19 // On 0.6b, use 59
  155. #define LCD_PINS_D5 70
  156. #define LCD_PINS_D6 85
  157. #define LCD_PINS_D7 71
  158. #define BTN_EN1 14
  159. #define BTN_EN2 72
  160. #endif
  161. #define BTN_ENC 9 // AUX-2
  162. #define BEEPER_PIN 84 // AUX-4
  163. #define SD_DETECT_PIN 15
  164. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  165. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  166. #endif
  167. #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
  168. #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE